blob: 2ced3666b13886c545381b7e8cd063b4f1ba4562 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<script lang="ts">
import { page } from "$app/stores";
let displayDog = ($page.status === 404) || false;
</script>
<div class="error-container">
<div class="error">
<h1>{$page.status ?? "oopsie daisies!"}</h1>
<p>{$page.error?.message ?? "website broke >w< "}</p>
</div>
{#if displayDog}
<div class="huh">
<img src="/huh.jpg" alt="dog looking at the camera with a question mark edited next to it"/>
</div>
{/if}
</div>
<style lang="scss">
.error-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
& .error {
display: flex;
flex-direction: column;
align-items: center;
margin: 36px 12px;
border-spacing: 36px;
& :not(:last-child) {
margin-bottom: 1rem;
}
}
}
</style>
|