add error pages for 404 and 500
This commit is contained in:
16
web/src/app/error.tsx
Normal file
16
web/src/app/error.tsx
Normal 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
12
web/src/app/not-found.tsx
Normal 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 på grisefest. Lykke til videre.</p>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
export default NotFoundPage;
|
Reference in New Issue
Block a user