add build

This commit is contained in:
Sara Vieira
2018-11-24 15:10:11 +01:00
parent ea96c643d1
commit ee42b8eebb
5 changed files with 50 additions and 41 deletions

7
.travis.yml Normal file
View File

@@ -0,0 +1,7 @@
language: node_js
cache:
directories:
- node_modules
yarn: true
node_js:
- 9

View File

@@ -19,11 +19,7 @@
}
},
"eslintConfig": {
"extends": ["eslint-config-synacor", "prettier"],
"rules": {
"react/display-name": "off",
"react/no-did-mount-set-state": "off"
}
"extends": ["eslint-config-synacor", "prettier"]
},
"eslintIgnore": ["build/*"],
"devDependencies": {

View File

@@ -37,9 +37,11 @@ const Pulsate = styled.div`
}
`
export default () => (
const Loading = () => (
<Pulsate>
<div />
<div />
</Pulsate>
)
export default Loading

View File

@@ -1,40 +1,8 @@
import App from './components/app'
import styled, { injectGlobal } from 'react-emotion'
import styled from 'react-emotion'
import { ThemeProvider } from 'emotion-theming'
import { Grid } from 'react-emotion-flexboxgrid'
injectGlobal`
@import url('https://fonts.googleapis.com/css?family=Roboto');
html, body {
height: 100%;
width: 100%;
overflow-x: hidden;
padding: 0;
margin: 0;
background: #FAFAFA;
font-family: 'Roboto', arial, sans-serif;
font-weight: 600;
color: #e8eaf6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
}
#app {
height: 100%;
width: 100%;
opacity: 1;
backface-visibility: hidden;
}
ul {
padding: 0;
margin: 0;
}
`
import './utils/global'
const theme = {
primary: '#4a0072',
@@ -52,7 +20,7 @@ const System = styled(Grid)`
height: 100%;
`
export default () => (
const Main = () => (
<ThemeProvider theme={theme}>
<Wrapper>
<System>
@@ -61,3 +29,5 @@ export default () => (
</Wrapper>
</ThemeProvider>
)
export default Main

34
src/utils/global.js Normal file
View File

@@ -0,0 +1,34 @@
import { injectGlobal } from 'react-emotion'
export default injectGlobal`
@import url('https://fonts.googleapis.com/css?family=Roboto');
html, body {
height: 100%;
width: 100%;
overflow-x: hidden;
padding: 0;
margin: 0;
background: #FAFAFA;
font-family: 'Roboto', arial, sans-serif;
font-weight: 600;
color: #e8eaf6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
}
#app {
height: 100%;
width: 100%;
opacity: 1;
backface-visibility: hidden;
}
ul {
padding: 0;
margin: 0;
}
`