-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from DetroitJS/site-stretch
adds justify content
- Loading branch information
Showing
1 changed file
with
49 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
|
@@ -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 = { | ||
|