feat: error page

This commit is contained in:
Ax333l 2022-10-30 21:34:55 +01:00
parent b23e84043d
commit 49fe07ef76
No known key found for this signature in database
GPG Key ID: D2B4D85271127D23

37
src/routes/+error.svelte Normal file
View File

@ -0,0 +1,37 @@
<script lang="ts">
import Navigation from '$lib/components/atoms/NavButton.svelte';
import { page } from '$app/stores';
$: status = $page.status;
</script>
<section class="error">
<h1>{status}</h1>
{#if status == 500}
<p>
{$page.error.message}
</p>
{:else if status == 404}
<p>
That page received a cease and desist letter from a multi-billion dollar tech company.
</p>
<br/>
<Navigation href="/" is_selected={() => true}>Home</Navigation>
{/if}
</section>
<style>
.error {
padding-top: 5rem;
text-align: center;
}
h1 {
font-size: 10rem;
color: var(--accent-color);
}
p {
font-size: 5ch;
color: var(--white);
}
</style>