Skip to content

Commit

Permalink
feat: ajout de plausible sur la page statistique
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ST0R committed Nov 8, 2023
1 parent 766b3f4 commit e10537f
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions ui/app/(statistiques)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextAppDirEmotionCacheProvider } from "tss-react/next";
import PlausibleProvider from "next-plausible";
import { DsfrHead } from "@codegouvfr/react-dsfr/next-appdir/DsfrHead";
import { DsfrProvider } from "@codegouvfr/react-dsfr/next-appdir/DsfrProvider";
import { getHtmlAttributes } from "@codegouvfr/react-dsfr/next-appdir/getHtmlAttributes";
Expand All @@ -16,35 +17,37 @@ export function Layout({ children }: { children: JSX.Element }) {
<DsfrProvider>
<NextAppDirEmotionCacheProvider options={{ key: "css" }}>
<MuiDsfrThemeProvider>
<Header
brandTop={<>Exposition - Statistique</>}
serviceTitle="Exposition - Statistique"
homeLinkProps={{
href: "/",
title: "Exposition - Statistique",
}}
quickAccessItems={[]}
/>
<div
style={{
flex: 1,
width: "100%",
margin: "auto",
maxWidth: 1200,
...fr.spacing("padding", {
topBottom: "10v",
}),
}}
>
<Container variant="content" maxWidth={false}>
<Typograhpy variant="h3">{"Statistiques du projet Exposition d'InserJeunes"}</Typograhpy>
<Typograhpy variant="body1">{""}</Typograhpy>
<PlausibleProvider domain={process.env.STATISTIQUES_SITE_HOST || ""}>
<Header
brandTop={<>Exposition - Statistique</>}
serviceTitle="Exposition - Statistique"
homeLinkProps={{
href: "/",
title: "Exposition - Statistique",
}}
quickAccessItems={[]}
/>
<div
style={{
flex: 1,
width: "100%",
margin: "auto",
maxWidth: 1200,
...fr.spacing("padding", {
topBottom: "10v",
}),
}}
>
<Container variant="content" maxWidth={false}>
<Typograhpy variant="h3">{"Statistiques du projet Exposition d'InserJeunes"}</Typograhpy>
<Typograhpy variant="body1">{""}</Typograhpy>

<Container variant="subContent" maxWidth={false}>
{children}
<Container variant="subContent" maxWidth={false}>
{children}
</Container>
</Container>
</Container>
</div>
</div>
</PlausibleProvider>
</MuiDsfrThemeProvider>
</NextAppDirEmotionCacheProvider>
</DsfrProvider>
Expand Down

0 comments on commit e10537f

Please sign in to comment.