Skip to content

Commit 80c9cbd

Browse files
feat: add error page
1 parent bf7f5a5 commit 80c9cbd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/routes/+error.svelte

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script lang="ts">
2+
import { page } from "$app/state";
3+
</script>
4+
5+
<svelte:head>
6+
<title>Error {page.status} | Svelte Changelog</title>
7+
</svelte:head>
8+
9+
<div class="w-full h-[75vh] flex flex-col justify-center items-center">
10+
<h1 class="text-[15rem] leading-none">{page.status}</h1>
11+
{#if page.error}
12+
<h3 class="font-semibold text-muted-foreground text-2xl">{page.error.message}</h3>
13+
{/if}
14+
</div>

0 commit comments

Comments
 (0)