1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 22:45:01 +00:00
mon-entreprise/source/components/Route404.js
Mael fa8a8a0d35 Page 404 commune à tous les sites
Ne résoud pas le problème des 404 pour les routes imbriquées.
Il faudrait faire un composant Switch qui ajoute cette 404
systématiquement
2019-02-14 08:50:13 +01:00

26 lines
656 B
JavaScript

import { React, T } from 'Components'
import { Link } from 'react-router-dom'
import image from '../images/map-directions.png'
import emoji from 'react-easy-emoji'
export default () => (
<div
style={{
color: '#333350',
margin: '15% auto',
width: '15em',
textAlign: 'center'
}}>
<p>
<T k="404.message">Cette page n'existe pas ou n'existe plus</T>
{emoji(' 🙅')}
</p>
<Link to="/">
{/* TODO: credits for the image to add: https://thenounproject.com/term/treasure-map/96666/ */}
<img style={{ margin: '3%' }} width="100%" src={image} />
<em>
<T k="404.action">Revenir en lieu sûr</T>
</em>
</Link>
</div>
)