add 404 and 500 page

This commit is contained in:
2025-05-22 01:33:10 +02:00
parent ece07ada12
commit 29a5aaf4cb
4 changed files with 27 additions and 206 deletions

14
src/pages/404.astro Normal file
View File

@ -0,0 +1,14 @@
---
import WebsiteLayout from '@layouts/website/WebsiteLayout.astro';
---
<WebsiteLayout title="Seite nicht gefunden">
<div class="flex flex-col justify-center items-center gap-4 h-full w-full absolute">
<h1 class="text-2xl sm:text-3xl md:text-4xl lg:text-5xl">404: Seite nicht gefunden</h1>
<p class="flex gap-2 text-center">
Es wurde keine Seite unter der URL <code class="contents mx-1 md:block md:my-0 md:whitespace-pre"
>{Astro.url.pathname}</code
> gefunden.
</p>
</div>
</WebsiteLayout>

12
src/pages/500.astro Normal file
View File

@ -0,0 +1,12 @@
---
import WebsiteLayout from '@layouts/website/WebsiteLayout.astro';
---
<WebsiteLayout title="Interner Server Fehler">
<div class="flex flex-col justify-center items-center gap-4 h-full w-full absolute">
<h1 class="text-2xl sm:text-3xl md:text-4xl lg:text-5xl">500: Interner Server Fehler</h1>
<p class="flex gap-2 text-center">
Es ist ein unerwarteter interner Server Fehler aufgetreten. Bitte versuche deine Anfrage erneut.
</p>
</div>
</WebsiteLayout>