Upgrade to alpha-2

This commit is contained in:
Kyle Mathews 2016-09-20 22:23:54 -07:00
parent 94a2ab7ea3
commit 640be90860
12 changed files with 200 additions and 116 deletions

View file

@ -1,74 +0,0 @@
import React from 'react'
import { Link } from 'react-router'
import { Container } from 'react-responsive-grid'
import { prefixLink } from 'gatsby-helpers'
import { rhythm, adjustFontSizeToMSValue } from 'utils/typography'
import { config } from 'config'
class Template extends React.Component {
render () {
const { location, children } = this.props
let header
if (location.pathname === prefixLink('/')) {
header = (
<h1
style={{
...adjustFontSizeToMSValue(1.5),
marginBottom: rhythm(1.5),
marginTop: 0,
}}
>
<Link
style={{
boxShadow: 'none',
textDecoration: 'none',
color: 'inherit',
}}
to={prefixLink('/')}
>
{config.blogTitle}
</Link>
</h1>
)
} else {
header = (
<h3
style={{
fontFamily: 'Montserrat, sans-serif',
marginTop: 0,
}}
>
<Link
style={{
boxShadow: 'none',
textDecoration: 'none',
color: 'inherit',
}}
to={prefixLink('/')}
>
{config.blogTitle}
</Link>
</h3>
)
}
return (
<Container
style={{
maxWidth: rhythm(24),
padding: `${rhythm(1.5)} ${rhythm(3/4)}`,
}}
>
{header}
{children}
</Container>
)
}
}
Template.propTypes = {
children: React.PropTypes.any,
location: React.PropTypes.object,
route: React.PropTypes.object,
}
export default Template