-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
264 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
VITE_OIDC_ISSUER= | ||
VITE_OIDC_CLIENT_ID= | ||
VITE_PORTAIL_URL= | ||
VITE_APP_VERSION=$npm_package_version | ||
VITE_LUNATIC_VERSION=$npm_package_dependencies__inseefr_lunatic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { useEffect } from 'react' | ||
|
||
export function useDocumentTitle(title: string) { | ||
useEffect(() => { | ||
const prevTitle = document.title | ||
document.title = title | ||
return () => { | ||
document.title = prevTitle | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Breadcrumb } from '@codegouvfr/react-dsfr/Breadcrumb' | ||
import { Grid } from 'components/Grid' | ||
|
||
export function AccessibilityPage() { | ||
return ( | ||
<Grid> | ||
<Breadcrumb | ||
currentPageLabel="Accessibilité" | ||
homeLinkProps={{ | ||
to: '/', | ||
}} | ||
segments={[]} | ||
/> | ||
<h2>Accessibilité</h2> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createRoute } from '@tanstack/react-router' | ||
import { rootRoute } from 'router/router' | ||
import { AccessibilityPage } from './AccessibilityPage' | ||
|
||
export const accessibilityRoute = createRoute({ | ||
getParentRoute: () => rootRoute, | ||
path: 'accessibilite', | ||
component: AccessibilityPage, | ||
loader: () => { | ||
document.title = 'Accessibilité' | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Breadcrumb } from '@codegouvfr/react-dsfr/Breadcrumb' | ||
import { Grid } from 'components/Grid' | ||
|
||
export function LegalPage() { | ||
return ( | ||
<Grid> | ||
<Breadcrumb | ||
currentPageLabel="Mentions Légales" | ||
homeLinkProps={{ | ||
to: '/', | ||
}} | ||
segments={[]} | ||
/> | ||
<h2>Mentions légales</h2> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createRoute } from '@tanstack/react-router' | ||
import { rootRoute } from 'router/router' | ||
import { LegalPage } from './LegalsPage' | ||
|
||
export const legalsRoute = createRoute({ | ||
getParentRoute: () => rootRoute, | ||
path: 'mentions-legales', | ||
component: LegalPage, | ||
loader: () => { | ||
document.title = 'Mentions Légales' | ||
}, | ||
}) |
17 changes: 17 additions & 0 deletions
17
src/pages/NavigationAssistance/NavigationAssistancePage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Breadcrumb from '@codegouvfr/react-dsfr/Breadcrumb' | ||
import { Grid } from 'components/Grid' | ||
|
||
export function NavigationAssistancePage() { | ||
return ( | ||
<Grid> | ||
<Breadcrumb | ||
currentPageLabel="Aide à la navigation" | ||
homeLinkProps={{ | ||
to: '/', | ||
}} | ||
segments={[]} | ||
/> | ||
<h2>Aide à la navigation</h2> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createRoute } from '@tanstack/react-router' | ||
import { rootRoute } from 'router/router' | ||
import { NavigationAssistancePage } from './NavigationAssistancePage' | ||
|
||
export const navigationAssistanceRoute = createRoute({ | ||
getParentRoute: () => rootRoute, | ||
path: 'aide-a-la-navigation', | ||
component: NavigationAssistancePage, | ||
loader: () => { | ||
document.title = 'Aide à la navigation' | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Breadcrumb from '@codegouvfr/react-dsfr/Breadcrumb' | ||
import { Grid } from 'components/Grid' | ||
|
||
export function SecurityPage() { | ||
return ( | ||
<Grid> | ||
<Breadcrumb | ||
currentPageLabel="Sécurité" | ||
homeLinkProps={{ | ||
to: '/', | ||
}} | ||
segments={[]} | ||
/> | ||
<h2>Sécurité</h2> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createRoute } from '@tanstack/react-router' | ||
import { rootRoute } from 'router/router' | ||
import { SecurityPage } from './SecurityPage' | ||
|
||
export const securityRoute = createRoute({ | ||
getParentRoute: () => rootRoute, | ||
path: 'securite', | ||
component: SecurityPage, | ||
loader: () => { | ||
document.title = 'Sécurité' | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Breadcrumb } from '@codegouvfr/react-dsfr/Breadcrumb' | ||
import { Grid } from 'components/Grid' | ||
|
||
import { Link } from '@tanstack/react-router' | ||
|
||
export function SiteMapPage() { | ||
return ( | ||
<Grid> | ||
<Breadcrumb | ||
currentPageLabel="Plan du site" | ||
homeLinkProps={{ | ||
to: '/', | ||
}} | ||
segments={[]} | ||
/> | ||
<h2>Plan du site</h2> | ||
<ul> | ||
<li> | ||
<Link to="/">Accueil</Link> | ||
</li> | ||
<li> | ||
<Link to="">Mentions légales</Link> | ||
</li> | ||
<li> | ||
<Link to="/accessibilite">Accessibilité</Link> | ||
</li> | ||
<li> | ||
<Link to="/securite">Sécurité</Link> | ||
</li> | ||
</ul> | ||
</Grid> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { createRoute } from '@tanstack/react-router' | ||
import { rootRoute } from 'router/router' | ||
import { SiteMapPage } from './SiteMapPage' | ||
|
||
export const siteMapRoute = createRoute({ | ||
getParentRoute: () => rootRoute, | ||
path: 'plan-du-site', | ||
component: SiteMapPage, | ||
loader: () => { | ||
document.title = 'Plan du site' | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.