Skip to content

Commit 75cd42b

Browse files
committed
Issue 8: use css grid to create a sticky footer
1 parent 514e0fc commit 75cd42b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/assets/styles/global.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
html,
2-
body,
3-
#app {
2+
body {
43
height: 100%;
4+
width: 100%;
5+
}
6+
7+
#__next {
8+
min-height: 100%;
9+
display: grid;
10+
grid-template-rows: auto 1fr auto;
11+
grid-template-columns: 100%;
512
}
613

714
.is-clickable {

src/components/common/Layout.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ const Layout = ({ children }) => {
99
return (
1010
<React.Fragment>
1111
<NavBar />
12-
<div className="container" style={{ minHeight: "calc(80vh - 70px)" }}>
13-
{children}
14-
</div>
12+
<div className="container">{children}</div>
1513
<Footer />
1614
</React.Fragment>
1715
);

0 commit comments

Comments
 (0)