Skip to content

Commit

Permalink
Create error page
Browse files Browse the repository at this point in the history
  • Loading branch information
holybaechu committed Feb 22, 2024
1 parent 12982ab commit a6ab83b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/routes/+error.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
import { page } from '$app/stores';
</script>

<div class="flex flex-col h-screen justify-center items-center space-y-1">
<div class="text-6xl font-black">
{$page.status}
</div>
<div class="text-3xl">{$page.error.message}</div>
</div>
2 changes: 1 addition & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="bg-bg-dark text-white">
<Header />

<main>
<main class="min-h-screen">
<slot />
</main>

Expand Down

0 comments on commit a6ab83b

Please sign in to comment.