Skip to content

Commit

Permalink
Merge pull request #30 from DetroitJS/site-stretch
Browse files Browse the repository at this point in the history
adds justify content
  • Loading branch information
sixlive committed Dec 13, 2017
2 parents 6a30e60 + fc232c8 commit 8f818d1
Showing 1 changed file with 49 additions and 18 deletions.
67 changes: 49 additions & 18 deletions components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,46 @@ import Header from './header'
import Footer from './footer'
import Snowflakes from 'react-snowflakes'

const Layout = ({children}) => (
<div>
const Layout = ({ children }) => (
<div>
<Head>
<title>Detroit.js</title>
<meta name="description" content="Detroit.js is a community of JavaScript developers in Detroit with meetups held monthly." />
<meta
name="description"
content="Detroit.js is a community of JavaScript developers in Detroit with meetups held monthly."
/>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<link rel="apple-touch-icon" sizes="180x180" href="/static/icons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/static/icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/static/icons/favicon-16x16.png" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/static/icons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/static/icons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/static/icons/favicon-16x16.png"
/>
<link rel="manifest" href="/static/icons/manifest.json" />
<link rel="mask-icon" href="/static/icons/safari-pinned-tab.svg" color="#5bbad5" />
<link
rel="mask-icon"
href="/static/icons/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="theme-color" content="#ffffff" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/tachyons.min.css"/>
<style dangerouslySetInnerHtml={{__html: `
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/css/tachyons.min.css"
/>
<style
dangerouslySetInnerHtml={{
__html: `
@font-face {
font-family: 'neutraface2Text-Bold';
src: url('/static/fonts/Neutraface2Text-Bold.eot');
Expand All @@ -30,27 +56,32 @@ const Layout = ({children}) => (
.branding [class*="headline"] {
font-family: 'neutraface2Text-Bold', sans-serif !important;
}
`}}></style>
<style>{`
`
}}
/>
<style>{`
[data-reactroot] > * {
display: flex;
min-height: 100vh;
flex-direction: column;
justify-content: space-between;
}
[data-reactroot] > * > header + * {
flex: 1;
}
`}</style>
</Head>
{new Date().getMonth() === 11 &&
<Snowflakes numberOfSnowflakes={50}
snowflakeColor="rgba(0,0,0,.2)"
snowflakeChar="*"/>
}
{new Date().getMonth() === 11 && (
<Snowflakes
numberOfSnowflakes={50}
snowflakeColor="rgba(0,0,0,.2)"
snowflakeChar="*"
/>
)}
<Header />
{children}
{children}
<Footer />
</div>
</div>
)

Layout.propTypes = {
Expand Down

0 comments on commit 8f818d1

Please sign in to comment.