-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
46 lines (38 loc) · 953 Bytes
/
index.js
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
import React from 'react'
import { render } from 'react-dom'
import { createStore, combineReducers } from 'redux'
import { Provider } from 'react-redux'
import WebFont from 'webfontloader'
require('./fonts.css')
import * as reducers from './reducers'
import * as actions from './actions'
import { root, left } from './styles.scss'
import LeftLogo from './LeftLogo'
import RightScroll from './RightScroll'
const store = createStore(
combineReducers({ ...reducers })
)
window.store = store
WebFont.load({
typekit: {
id: 'jbt1fns'
},
custom: {
families: ['montserrat', 'raleway']
},
fontactive: function(familyName, fvd) {
console.log('loaded ' + familyName)
store.dispatch(actions.loadFont(familyName))
}
})
render(
<Provider store={store}>
<div className={root}>
<div className={left}>
<LeftLogo />
</div>
<RightScroll />
</div>
</Provider>,
document.getElementById('root')
)