Add NotFoundPage component
This commit is contained in:
parent
531e9a0535
commit
a2ad2913e4
1 changed files with 18 additions and 0 deletions
18
frontend/src/Pages/NotFoundPage.tsx
Normal file
18
frontend/src/Pages/NotFoundPage.tsx
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
import Button from "../Components/Button";
|
||||||
|
|
||||||
|
export default function NotFoundPage(): JSX.Element {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col items-center justify-center min-h-screen bg-white">
|
||||||
|
<h1 className="text-[30px]">404 Page Not Found</h1>
|
||||||
|
<a href="/">
|
||||||
|
<Button
|
||||||
|
text="Go to Home Page"
|
||||||
|
onClick={(): void => {
|
||||||
|
localStorage.clear();
|
||||||
|
}}
|
||||||
|
type="button"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in a new issue