Skip to content

Commit 4fb2df9

Browse files
committed
Add max-width to homepage
Signed-off-by: Nico Burns <nico@nicoburns.com>
1 parent 70d17cb commit 4fb2df9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/routes/home.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ pub fn HomePage() -> Element {
1616
align-items: center;
1717
background-color: #f4e8d2;
1818
background-color: white;
19+
max-width: 1600px;
20+
margin: 0 auto;
1921
",
2022

2123
div { style: "
@@ -95,6 +97,8 @@ pub fn HomePage() -> Element {
9597
flex-direction: column;
9698
align-items: center;
9799
padding: 40px 0;
100+
max-width: 1600px;
101+
margin: 0 auto;
98102
",
99103

100104
// div {
@@ -147,6 +151,9 @@ pub fn HomePage() -> Element {
147151
align-items: center;
148152
background-color: #f4e8d2;
149153
text-align: center;
154+
max-width: 1600px;
155+
margin: 0 auto;
156+
150157
",
151158

152159
div { style: "
@@ -182,6 +189,9 @@ pub fn HomePage() -> Element {
182189
div { style: "
183190
height: 48px;
184191
background: #f4e8d2;
192+
max-width: 1600px;
193+
margin: 0 auto;
194+
185195
" }
186196
}
187197
}

0 commit comments

Comments
 (0)