feat(app): NotFoundRoute
This commit is contained in:
1 parent
337f8c3aea
commit
a3a4d4e1f6
1 file changed
+13
-1
@@ -1,3 +1,15 @@
|
|||||||
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
import Button from '@/components/ui/Button'
|
||||||
|
|
||||||
export default function NotFoundRoute() {
|
export default function NotFoundRoute() {
|
||||||
return <div>NotFoundRoute placeholder</div>
|
const navigate = useNavigate()
|
||||||
|
return (
|
||||||
|
<main className="min-h-screen grid place-items-center">
|
||||||
|
<div className="text-center space-y-4">
|
||||||
|
<h1 className="font-serif text-4xl">Page introuvable</h1>
|
||||||
|
<p className="text-[var(--color-ink-muted)]">Le chemin demandé n'existe pas.</p>
|
||||||
|
<Button onClick={() => navigate('/')}>Retour à l'accueil</Button>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user