-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee86e65
commit acaf4d7
Showing
21 changed files
with
247 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import BlogList from './BlogList'; | ||
import Header from './Header'; | ||
import PostList from './PostList'; | ||
import SEO from './SEO'; | ||
import TagsBlock from './TagsBlock'; | ||
|
||
export { BlogList, Header, PostList, SEO, TagsBlock }; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React, { Fragment } from 'react'; | ||
import { ThemeProvider } from 'emotion-theming'; | ||
import { injectGlobal } from 'react-emotion'; | ||
import PropTypes from 'prop-types'; | ||
import 'typeface-open-sans'; | ||
import 'typeface-candal'; | ||
import { SEO } from 'components'; | ||
import { NavBar, Footer } from 'layouts'; | ||
import theme from '../../config/theme'; | ||
import headroom from '../styles/headroom'; | ||
|
||
injectGlobal` | ||
*, *:before, *:after { | ||
box-sizing: inherit; | ||
} | ||
html { | ||
text-rendering: optimizeLegibility; | ||
overflow-x: hidden; | ||
box-sizing: border-box; | ||
-ms-overflow-style: scrollbar; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
html, body { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
min-height: 100vh; | ||
} | ||
a { | ||
color: ${theme.colors.link}; | ||
transition: color .5s; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
text-decoration: none; | ||
color: ${theme.colors.linkHover}; | ||
} | ||
h1{ | ||
font-family: ${theme.fontFamily.heading}; | ||
} | ||
h2, h3, h4 { | ||
margin-bottom: 2rem; | ||
} | ||
${headroom} | ||
`; | ||
|
||
const Layout = ({ children }) => ( | ||
<ThemeProvider theme={theme}> | ||
<Fragment> | ||
<SEO /> | ||
<NavBar /> | ||
{children} | ||
<Footer /> | ||
</Fragment> | ||
</ThemeProvider> | ||
); | ||
|
||
export default Layout; | ||
|
||
Layout.propTypes = { | ||
children: PropTypes.oneOfType([PropTypes.array, PropTypes.node]).isRequired, | ||
}; |
Oops, something went wrong.