Skip to content

Commit 83c04c4

Browse files
committed
fix: fix a tiny bit of y movement on home page
1 parent b44ca06 commit 83c04c4

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

src/Layouts/Global.elm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,16 @@ view layoutProps { content } =
8080
[ Tw.min_h_screen
8181
, Tw.w_full
8282
, Tw.overflow_x_hidden
83-
, Tw.overflow_y_hidden
8483
, Tw.bg_color Tw.dd_deepblue
8584
, Tw.text_color Tw.white
8685
, Tw.font_sans
8786
, Tw.antialiased
87+
, Tw.flex
88+
, Tw.flex_col
8889
]
8990
]
9091
[ viewNavbar layoutProps.activePage
91-
, Html.div [ css [ Tw.flex_grow ] ]
92+
, Html.div [ css [ Tw.flex_grow, Tw.flex, Tw.flex_col ] ]
9293
content.body
9394
]
9495
]
@@ -116,7 +117,7 @@ viewNavbar activePage =
116117
[ img
117118
[ Attr.src "/static/devden-logo.svg"
118119
, Attr.alt "Developer Den Logo"
119-
, css [ Tw.h_16, Tw.w_auto ]
120+
, css [ Tw.h_16, Tw.w_auto, Tw.block ]
120121
]
121122
[]
122123
]

src/Pages/Home_.elm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ view =
4848
, Tw.w_full
4949
, Tw.flex_grow
5050
, Tw.px_6
51-
, Tw.py_8
5251
]
5352
]
5453
[ viewBanner
@@ -60,7 +59,7 @@ view =
6059

6160
viewBanner : Html Msg
6261
viewBanner =
63-
div [ css [ Tw.text_center, Tw.mb_24 ] ]
62+
div [ css [ Tw.text_center ] ]
6463
[ img
6564
[ Attr.src "/static/devden-banner.svg"
6665
, Attr.alt "Developer Den Banner"
@@ -71,7 +70,9 @@ viewBanner =
7170
, Theming.textGradient
7271
, Tw.inline_block
7372
, Tw.tracking_widest
74-
, Tw.pb_3
73+
, Tw.pb_2
74+
, Tw.block
75+
, Tw.mx_auto
7576
]
7677
]
7778
[]

static/base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
html, body {
3535
background-color: var(--color-den-deepblue);
3636
color: #ffffff;
37+
margin: 0;
3738
}

0 commit comments

Comments
 (0)