📊 Création d'une page /stats vide

pull/955/head
Maxime Quandalle 2020-03-31 09:08:51 +02:00
parent a7bc55fb46
commit ef641ac874
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
4 changed files with 18 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import Integration from './pages/integration/index'
import Landing from './pages/Landing/Landing'
import Nouveautés from './pages/Nouveautés/Nouveautés'
import Simulateurs from './pages/Simulateurs'
import Stats from './pages/Stats/Stats'
import ÉconomieCollaborative from './pages/ÉconomieCollaborative'
import redirects from './redirects'
import { constructLocalizedSitePath } from './sitePaths'
@ -119,6 +120,7 @@ const App = () => {
/>
<Route path={sitePaths.integration.index} component={Integration} />
<Route path={sitePaths.nouveautés} component={Nouveautés} />
<Route path={sitePaths.stats} component={Stats} />
<Route path={sitePaths.coronavirus} component={Coronavirus} />
<Route exact path="/dev/sitemap" component={Sitemap} />
<Route

View File

@ -68,7 +68,7 @@ const Footer = () => {
</>
)}
{' • '}
<a href="https://mon-entreprise.fr/stats">Stats</a>
<Link to={sitePaths.stats}>Stats</Link>
{' • '}
<Link to={sitePaths.integration.index}>
<Trans>Intégrer nos simulateurs</Trans>

View File

@ -0,0 +1,14 @@
import { ScrollToTop } from 'Components/utils/Scroll'
import React from 'react'
import emoji from 'react-easy-emoji'
export default function Stats() {
return (
<>
<ScrollToTop />
<h1>
Statistiques <>{emoji('📊')}</>
</h1>
</>
)
}

View File

@ -126,6 +126,7 @@ export const constructLocalizedSitePath = (language: string) => {
)
},
nouveautés: t('path.nouveautés', '/nouveautés'),
stats: t('path.stats', '/stats'),
documentation: {
index: t('path.documentation.index', '/documentation'),
rule: (dottedName: DottedName) => '/' + encodeRuleName(dottedName)