joyent-portal/ui/docs/containers/app/index.js

55 lines
1001 B
JavaScript
Raw Normal View History

/* - TOOD: Use our own grid
*/
2016-10-25 16:01:42 +03:00
const React = require('react');
const ReactRouter = require('react-router');
const Navigation = require('./navigation.js');
const Home = require('../home');
const Item = require('../item/');
2016-10-31 19:23:16 +02:00
// const Item = require('../../../src/components/range-slider');
2016-10-25 16:01:42 +03:00
const {
2016-10-26 16:05:07 +03:00
Base,
Container,
Row,
Column
2016-10-25 22:15:33 +03:00
} = require('../../../src');
2016-10-25 16:01:42 +03:00
const {
Match
} = ReactRouter;
module.exports = () => {
return (
<Base>
2016-10-26 16:05:07 +03:00
<Container fluid>
<Row>
2016-10-27 12:51:47 +03:00
<Column
md={2}
sm={3}
xs={12}
>
2016-10-26 16:05:07 +03:00
<Navigation />
</Column>
2016-10-27 12:51:47 +03:00
<Column
md={10}
sm={9}
xs={12}
>
2016-10-26 16:05:07 +03:00
<Match
component={Home}
exactly
pattern='/'
/>
<Match
component={Item}
pattern='/:parent?/:name'
/>
</Column>
</Row>
</Container>
2016-10-25 16:01:42 +03:00
</Base>
);
};