11import type { AppProps } from "next/app" ;
22import { useRouter } from "next/router" ;
33import { createNextDsfrIntegrationApi } from "@codegouvfr/react-dsfr/next" ;
4- import { Display , headerQuickAccessDisplay } from "@codegouvfr/react-dsfr/Display" ;
4+ import { Display , headerFooterDisplayItem } from "@codegouvfr/react-dsfr/Display" ;
55import { Header } from "@codegouvfr/react-dsfr/Header" ;
6+ import { Footer } from "@codegouvfr/react-dsfr/Footer" ;
67import { createEmotionSsrAdvancedApproach } from "tss-react/next" ;
78import { useStyles } from "tss-react/dsfr" ;
89import { fr } from "@codegouvfr/react-dsfr" ;
@@ -42,6 +43,10 @@ const { augmentDocumentWithEmotionCache, withAppEmotionCache } = createEmotionSs
4243
4344export { dsfrDocumentApi , augmentDocumentWithEmotionCache } ;
4445
46+ const brandTop = < > INTITULE< br /> OFFICIEL</ > ;
47+
48+ const homeLinkPops = { "href" : "/" , "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)" } ;
49+
4550function App ( { Component, pageProps } : AppProps ) {
4651
4752 const { css } = useStyles ( ) ;
@@ -51,9 +56,9 @@ function App({ Component, pageProps }: AppProps) {
5156 return (
5257 < DsfrLinkProvider >
5358 < Header
54- brandTop = { < > INTITULE < br /> OFFICIEL </ > }
59+ brandTop = { brandTop }
5560 serviceTitle = "Nom du site / service"
56- homeLinkProps = { { "href" : "/" , "title" : "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)" } }
61+ homeLinkProps = { homeLinkPops }
5762 navItems = { [
5863 {
5964 "text" : "Home" ,
@@ -70,7 +75,7 @@ function App({ Component, pageProps }: AppProps) {
7075 "isActive" : router . asPath === "/mui"
7176 }
7277 ] }
73- quickAccessItems = { [ headerQuickAccessDisplay ] }
78+ quickAccessItems = { [ headerFooterDisplayItem ] }
7479 />
7580 < div className = { css ( {
7681 "margin" : "auto" ,
@@ -81,6 +86,19 @@ function App({ Component, pageProps }: AppProps) {
8186 } ) } >
8287 < Component { ...pageProps } />
8388 </ div >
89+ < Footer
90+ brandTop = { brandTop }
91+ accessibility = "fully compliant"
92+ contentDescription = { `
93+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
94+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
95+ quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
96+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
97+ eu fugiat nulla pariatur.
98+ ` }
99+ homeLinkProps = { homeLinkPops }
100+ bottomItems = { [ headerFooterDisplayItem ] }
101+ />
84102 < Display />
85103 </ DsfrLinkProvider >
86104 ) ;
0 commit comments