-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move config.json into package.json. * Update dependencies. * Add react-fastclick. * Add react-router-scroll. * Remove Radium dependency. * Add Eslint rule to allow jsx in .js files. * Disable react/require-extension rule. * Add dependencies for CSS modules. * Add CSS modules & PostCSS to Webpack config. * Update dev_server to run on 0.0.0.0 * Commit isomorphic Webpack config. * Add CSS bundle support for build_static. * Refactor components to CSS Modules. * Add normalize.css dependency. * Update README. * Bump version.
- Loading branch information
Showing
23 changed files
with
295 additions
and
210 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 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,15 @@ | ||
// ================================================== | ||
// Hello | ||
// ================================================== | ||
|
||
import React from 'react'; | ||
import { wrap, heading } from './style.css'; | ||
|
||
const Hello = () => ( | ||
<div className={wrap}> | ||
<h1 className={heading}>Hello React</h1> | ||
<div>🙈</div> | ||
</div> | ||
); | ||
|
||
export default Hello; |
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,13 @@ | ||
.wrap { | ||
padding-top: rem(150); | ||
text-align: center; | ||
} | ||
|
||
.heading { | ||
font-size: rem(45); | ||
line-height: 2; | ||
cursor: default; | ||
} | ||
.heading:hover { | ||
font-weight: bold; | ||
} |
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,28 @@ | ||
// ================================================== | ||
// Layout | ||
// ================================================== | ||
|
||
import React from 'react'; | ||
import Helmet from 'react-helmet'; | ||
import './style.css'; | ||
|
||
const Layout = ({ children }) => ( | ||
<div> | ||
<Helmet | ||
title="My site" | ||
meta={[ | ||
{ name: 'description', content: 'A static site.' }, | ||
]} | ||
link={[ | ||
{ rel: 'shortcut icon', href: require('../../assets/favicon.ico') }, | ||
]} | ||
/> | ||
{children} | ||
</div> | ||
); | ||
|
||
Layout.propTypes = { | ||
children: React.PropTypes.element, | ||
}; | ||
|
||
export default Layout; |
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,63 @@ | ||
@import 'normalize.css'; | ||
@import '../../styling/colors.css'; | ||
|
||
html, | ||
body { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, sans-serif; | ||
font-weight: 400; | ||
line-height: 1.4; | ||
color: $darkGray; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
* { | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
box-sizing: border-box; | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
color: inherit; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
padding: 0; | ||
margin: 0; | ||
font-weight: 400; | ||
line-height: 1.2; | ||
} | ||
|
||
input, | ||
textarea { | ||
display: block; | ||
padding: 0; | ||
margin: 0; | ||
border: 0; | ||
outline: none; | ||
} | ||
input:-webkit-autofill: { | ||
-webkit-box-shadow: 0 0 0 1000px #fff inset; | ||
} | ||
textarea { | ||
resize: none; | ||
} | ||
|
||
ul, | ||
p { | ||
padding: 0; | ||
margin: 0; | ||
} |
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
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
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 @@ | ||
$darkGray: #323233; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.