-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilisation d'un composant NotFound custom
- Loading branch information
Showing
9 changed files
with
39 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
'use server'; | ||
|
||
import NotFound from '@components/info/NotFound'; | ||
import {Metadata} from 'next'; | ||
import {notFound} from 'next/navigation'; | ||
|
||
export async function generateMetadata(): Promise<Metadata> { | ||
return { | ||
title: 'Collectivités', | ||
}; | ||
} | ||
|
||
const Collectivite = () => { | ||
notFound(); | ||
}; | ||
const Collectivite = () => <NotFound />; | ||
|
||
export default Collectivite; |
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,15 @@ | ||
/* eslint-disable react/no-unescaped-entities */ | ||
import Section from '@components/sections/Section'; | ||
|
||
const NotFound = () => { | ||
return ( | ||
<Section className="mt-32 md:mt-60"> | ||
<div className="flex items-center justify-center divide-x divide-black"> | ||
<h1 className="text-3xl font-normal pr-4">404</h1> | ||
<h2 className="text-lg font-normal pl-4">Cette page n'existe pas</h2> | ||
</div> | ||
</Section> | ||
); | ||
}; | ||
|
||
export default NotFound; |