add error pages for 404 and 500

This commit is contained in:
2024-05-10 19:40:39 +02:00
parent 8a66da7f6c
commit ce2de49295
2 changed files with 28 additions and 0 deletions

16
web/src/app/error.tsx Normal file
View File

@ -0,0 +1,16 @@
"use client";
function ErrorPage() {
return (
<main className="site-main" id="main">
<div>
<h1>500: En feil har oppstått</h1>
<p className="lead">
Her gikk det skikkelig skeis i datamaskinen. Lykke til videre.
</p>
</div>
</main>
);
}
export default ErrorPage;

12
web/src/app/not-found.tsx Normal file
View File

@ -0,0 +1,12 @@
function NotFoundPage() {
return (
<main className="site-main" id="main">
<div>
<h1>404: Side ikke funnet</h1>
<p className="lead">Denne siden er grisefest. Lykke til videre.</p>
</div>
</main>
);
}
export default NotFoundPage;