creating the page
This commit is contained in:
parent
60bfd2617f
commit
3823c3ea62
22
src/pages/PageNotFound.jsx
Normal file
22
src/pages/PageNotFound.jsx
Normal 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user