Skip to content

Commit

Permalink
Issue 8: use css grid to create a sticky footer
Browse files Browse the repository at this point in the history
  • Loading branch information
medmin committed Dec 3, 2019
1 parent 514e0fc commit 75cd42b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 9 additions & 2 deletions src/assets/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
html,
body,
#app {
body {
height: 100%;
width: 100%;
}

#__next {
min-height: 100%;
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: 100%;
}

.is-clickable {
Expand Down
4 changes: 1 addition & 3 deletions src/components/common/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const Layout = ({ children }) => {
return (
<React.Fragment>
<NavBar />
<div className="container" style={{ minHeight: "calc(80vh - 70px)" }}>
{children}
</div>
<div className="container">{children}</div>
<Footer />
</React.Fragment>
);
Expand Down

0 comments on commit 75cd42b

Please sign in to comment.