1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 00:35:00 +00:00
mon-entreprise/source/routes.js

34 lines
1.1 KiB
JavaScript
Raw Normal View History

2016-08-10 11:39:01 +02:00
import React from 'react'
import { Route, IndexRoute, Link } from 'react-router'
2016-08-10 11:39:01 +02:00
import Layout from './containers/Layout'
import Home from './containers/Home'
2016-11-16 11:22:28 +01:00
import Rule from './components/Rule'
import About from './components/About'
import CDD from './components/CDD'
import CDDIntro from './components/CDDIntro'
2016-08-10 11:39:01 +02:00
let RouteNotFound = () =>
<div style={{color: '#333350', margin: '15% auto', width: '15em', textAlign: 'center'}}>
<h2>
On peut facilement se perdre dans la législation...
</h2>
<Link to="/">
{/* TODO: credits for the image to add: https://thenounproject.com/term/treasure-map/96666/ */}
<img style={{margin: '3%'}} width="250px" src={require('./images/map-directions.png')} />
Revenir en lieu sûr
</Link>
</div>
2016-08-10 11:39:01 +02:00
export default (
<Route path="/" component={Layout}>
2016-12-07 19:08:10 +01:00
<Route path="regle/:name" component={Rule} />
<Route path="cdd-intro" component={CDDIntro} />
<Route path="cdd" component={CDD} />
<Route path="a-propos" component={About} />
<IndexRoute component={Home} />
<Route path="*" component={RouteNotFound} />
2016-08-10 11:39:01 +02:00
</Route>
)