Skip to content

Commit

Permalink
[add] Footer /> to DefaultLayout />
Browse files Browse the repository at this point in the history
[Fix] padding on content-wrapper
  • Loading branch information
ScottAgirs committed Nov 15, 2019
1 parent 080e832 commit f8ca3b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/DefaultLayout.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import Header from "../components/Header";
import Footer from "../components/Footer";

const DefaultLayout = ({ children }) => (
<>
<Header />
<div className="page-content-wrapper">
<div className="page-content">{children}</div>

<Footer />
<style jsx global>{`
.page-content-wrapper {
display: flex;
justify-content: center;
padding-bottom: 300px;
}
.page-content {
display: grid;
Expand Down
1 change: 1 addition & 0 deletions layouts/SingleBookLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const SingleBookLayout = ({ children }) => (
.single-book-wrapper {
display: flex;
justify-content: center;
padding-bottom: 300px;
}
.single-book {
display: grid;
Expand Down

0 comments on commit f8ca3b4

Please sign in to comment.