We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2f93d commit 003243dCopy full SHA for 003243d
src/components/layout.js
@@ -5,6 +5,7 @@ import styled, {
5
ThemeProvider,
6
createGlobalStyle,
7
} from 'styled-components/macro'
8
+import { Box } from '@rebass/grid'
9
10
import Header from './header'
11
import Footer from './footer'
@@ -18,7 +19,7 @@ let theme = {
18
19
},
20
}
21
-let PageWrapper = styled.main`
22
+let PageWrapper = styled(Box)`
23
max-width: ${({ theme }) => theme.pageWidth};
24
margin: 0 auto;
25
`
@@ -85,7 +86,9 @@ const Layout = ({ children }) => (
85
86
<Header />
87
</HeaderWrapper>
88
- <PageWrapper>{children}</PageWrapper>
89
+ <PageWrapper as="main" px={[20, 0]}>
90
+ {children}
91
+ </PageWrapper>
92
93
<FooterWrapper>
94
<Footer />
0 commit comments