creating the page

This commit is contained in:
Antoine M 2024-05-13 15:00:19 +02:00
parent 60bfd2617f
commit 3823c3ea62

View File

@ -0,0 +1,22 @@
import React from "react";
import AnimatedPage from "../components/AnimatedPage";
import Nav from "../components/ui/Nav";
import { useUser } from "../hooks/useUser";
export default function PageNotFound() {
const { screensTranslations } = useUser();
if (!screensTranslations || !screensTranslations.screen_404) return <p>loading</p>;
const screen404Translations = screensTranslations.screen_404;
return (
<AnimatedPage className='page-container page-container--not-found '>
<div className='content-page'>
<Nav />
<h1>{screen404Translations.error}</h1>
<h2>{screen404Translations.page_not_found}</h2>
<p>{screen404Translations.explanation}</p>
</div>
</AnimatedPage>
);
}