Fix error page
This commit is contained in:
@ -1,20 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
|
import Footer from '$lib/components/Footer.svelte';
|
||||||
|
import Header from '$lib/components/Header.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
<main>
|
||||||
<h1>{$page.status} {$page.error?.message}</h1>
|
<Header title="{$page.status} {$page.error?.message ?? 'An error occured'}" description="Please try again later." />
|
||||||
<a href="https://bosin.ch/">back to bosin.ch</a>
|
<Footer />
|
||||||
</div>
|
</main>
|
||||||
|
|
||||||
<style>
|
|
||||||
.container {
|
|
||||||
position: fixed;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
a {
|
|
||||||
color: #FFF;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user