Skip to content

Commit

Permalink
Mobile layout (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladleesi committed Apr 9, 2024
1 parent e4663c6 commit d35a730
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import js.objects.jso
import pages.*
import pages.Error
import pages.HomePage
import react.FC
import react.create
import react.dom.client.createRoot
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/pages/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private fun ChildrenBuilder.buildProjectCell(project: Project) {
paddingRight = 0.5.em
paddingTop = 0.25.em
paddingBottom = 0.25.em
fontSize = 0.9.rem
fontSize = 14.px
}
+tag
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/style/Styles.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ val appStyle = document.createElement("style").apply {
backgroundColor = Color(backgroundBlack.toString())
color = Color(white.toString())

media("screen and (max-width: 767px)") {
media("screen and (max-width: 768px)") {
// mobile styles
width = LinearDimension("85%")
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Vladislav Kochetov - Mobile SWE</title>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vladislav Kochetov</title>
</head>
<body>
<script src="vladleesi-gh-pages.js"></script>
Expand Down

0 comments on commit d35a730

Please sign in to comment.