Skip to content

Commit

Permalink
Merge pull request #27 from mgmatola/add-snowflakes-for-december
Browse files Browse the repository at this point in the history
Add snowflakes for December
  • Loading branch information
Steve Barman committed Dec 12, 2017
2 parents 537343d + 4b49200 commit d2db336
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
import Head from 'next/head'
import Header from './header'
import Footer from './footer'
import Snowflakes from 'react-snowflakes'

const Layout = ({children}) => (
<div>
Expand Down Expand Up @@ -41,6 +42,11 @@ const Layout = ({children}) => (
}
`}</style>
</Head>
{new Date().getMonth() === 11 &&
<Snowflakes numberOfSnowflakes={50}
snowflakeColor="rgba(0,0,0,.2)"
snowflakeChar="*"/>
}
<Header />
{children}
<Footer />
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"prop-types": "^15.5.7",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react-snowflakes": "0.0.1",
"shortid": "^2.2.8"
},
"devDependencies": {
Expand Down

0 comments on commit d2db336

Please sign in to comment.