maputnik/src/app.jsx

40 lines
908 B
React
Raw Normal View History

2015-06-15 15:21:19 +02:00
import 'bootstrap/dist/css/bootstrap.min.css';
2016-09-08 19:47:29 +02:00
import {Workspace} from './workspace.jsx';
import {Map} from './map.jsx';
import {Toolbar} from './toolbar.jsx';
2015-06-15 15:21:19 +02:00
import React from 'react';
2016-09-08 19:47:29 +02:00
import styles from './layout.scss';
import { Drawer, Container, Block, Fixed } from 'rebass'
import { LayerEditor } from './layers.jsx'
import theme from './theme.jsx'
2015-06-15 15:21:19 +02:00
export default class App extends React.Component {
2016-09-08 19:47:29 +02:00
static childContextTypes = {
rebass: React.PropTypes.object,
reactIconBase: React.PropTypes.object
}
getChildContext () {
return {
rebass: theme,
reactIconBase: {
size: 20,
}
}
}
2015-06-15 15:21:19 +02:00
render() {
return (
2016-09-08 19:47:29 +02:00
<div>
<Toolbar />
<Drawer style={{backgroundColor: theme.colors.gray, marginLeft: 60}} open={true} position="left">
<LayerEditor />
</Drawer>
<div className={styles.layoutMap}>
<Map />
</div>
2015-06-15 15:21:19 +02:00
</div>
)
}
2016-09-08 19:47:29 +02:00
}