From ef641ac874184215afd57f3e932e40a178c9ffa2 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Tue, 31 Mar 2020 09:08:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8A=20Cr=C3=A9ation=20d'une=20page=20/?= =?UTF-8?q?stats=20vide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/sites/mon-entreprise.fr/App.tsx | 2 ++ .../mon-entreprise.fr/layout/Footer/Footer.tsx | 2 +- .../sites/mon-entreprise.fr/pages/Stats/Stats.tsx | 14 ++++++++++++++ source/sites/mon-entreprise.fr/sitePaths.ts | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx diff --git a/source/sites/mon-entreprise.fr/App.tsx b/source/sites/mon-entreprise.fr/App.tsx index 217803277..69d32907a 100644 --- a/source/sites/mon-entreprise.fr/App.tsx +++ b/source/sites/mon-entreprise.fr/App.tsx @@ -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 = () => { /> + { )} {' • '} - Stats + Stats {' • '} Intégrer nos simulateurs diff --git a/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx b/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx new file mode 100644 index 000000000..f084aff9e --- /dev/null +++ b/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx @@ -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 ( + <> + +

+ Statistiques <>{emoji('📊')} +

+ + ) +} diff --git a/source/sites/mon-entreprise.fr/sitePaths.ts b/source/sites/mon-entreprise.fr/sitePaths.ts index c45cf0a0b..9b9543b73 100644 --- a/source/sites/mon-entreprise.fr/sitePaths.ts +++ b/source/sites/mon-entreprise.fr/sitePaths.ts @@ -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)