forked from neonick/krddevdays.ru
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
96 lines (80 loc) · 1.71 KB
/
App.js
File metadata and controls
96 lines (80 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import React from 'react'
import { Router, Route, browserHistory } from 'react-router'
import { createApp, renderApp } from '@phenomic/preset-react-app/lib/client'
import { injectGlobal } from 'styled-components'
import Html from './Html'
if (typeof window !== 'undefined') {
require('./font')
}
// language=SCSS
injectGlobal`
html {
font-family: sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 100%;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
html.wf-active {
font-family: "Source Sans Pro", sans-serif;
}
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
html.wf-active button,
html.wf-active input,
html.wf-active optgroup,
html.wf-active select,
html.wf-active textarea {
font-family: "Source Sans Pro", sans-serif;
}
pre,
code {
font-family: monospace;
font-size: 1em;
}
html.wf-active pre,
html.wf-active code {
font-family: "Roboto Mono", monospace;
font-size: 0.9em;
}
body {
margin: 0;
}
html,
body {
height: 100%;
}
#PhenomicRoot {
display: flex;
min-height: 100%;
flex-direction: column;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
`
const routes = () => {
const routes = (
<Router history={browserHistory}>
<Route path='/' component={require('./components/2017').default} />
</Router>
)
if (typeof window === 'undefined') {
return require('./ServerStyleSheet').default.collectStyles(routes)
} else return routes
}
export default createApp(routes, Html)
if (module.hot) {
module.hot.accept(() => renderApp(routes))
}