diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-07-03 13:57:36 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2017-07-03 13:57:36 -0700 |
commit | 719333ee43d690a771eb78a47f0f532adb52e101 (patch) | |
tree | cfa80d87d8475422fb7f02d00432ba4c31891e59 | |
parent | e3c428f17a2242c00ff088023022115694db9197 (diff) |
Implement index
All noramlization css is placed in index and the layout component is
mounted here
-rw-r--r-- | src/index.css | 17 | ||||
-rw-r--r-- | src/index.js | 13 |
2 files changed, 14 insertions, 16 deletions
diff --git a/src/index.css b/src/index.css index 5615a96..bc98e8c 100644 --- a/src/index.css +++ b/src/index.css @@ -1,9 +1,12 @@ -@import "./index.config.css"; +@import "./globals.css"; -.app { - font-size: $fontSize; - display: flex; - @if 3 < 5 { - background: rebeccapurple; - } +body { + font-family: system-ui; + background: var(--bgColor); + color: var(--fontColor); +} + +a { + color: var(--fontColor); + text-decoration: none; } diff --git a/src/index.js b/src/index.js index 2eee1b6..b13c779 100644 --- a/src/index.js +++ b/src/index.js @@ -1,15 +1,10 @@ import React from 'react' import ReactDOM from 'react-dom' -import FA from 'react-fontawesome' -import { app } from './index.css' -import { anotherOne } from './index.css.js' +import './index.css' import '../node_modules/font-awesome/css/font-awesome.css' +import '../fonts/beachbar-bold/beachbar-bold.css' -const App = p => - <div className={[app,anotherOne].join(' ')}> - <FA name='github' /> - {p.text} - </div> +import Layout from './components/layout/layout' -ReactDOM.render(<App title='hello world' />, document.getElementById('root')) +ReactDOM.render(<Layout />, document.getElementById('root')) |