Skip to content

Commit

Permalink
fix: make the site layout consistent accross all pages:
Browse files Browse the repository at this point in the history
using grid layout made the layout move between pages because the main
content never has the same height. Now we have a simpler layout, just
saying the footer to stay at the bottom, header and main always start at
the same place.
  • Loading branch information
manuhabitela committed Feb 9, 2024
1 parent 88bbbf6 commit c3dd737
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions public/application_20240126.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
header {
grid-area: header;
}

main {
grid-area: main;
}

footer {
grid-area: footer;
}

body {
min-height: 100vh;
background-color: #ffffff;
display: grid;
grid-template-columns: 100%;
grid-template-areas:
'header'
'main'
'footer';
display: flex;
flex-direction: column;
}

footer {
margin-top: auto;
}

.page-container {
Expand Down

0 comments on commit c3dd737

Please sign in to comment.