mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Adding custom error page.
This commit is contained in:
parent
26d4eee1b8
commit
2ac689516e
1 changed files with 13 additions and 0 deletions
13
src/routes/+error.svelte
Normal file
13
src/routes/+error.svelte
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<script lang="ts">
|
||||||
|
import { page } from "$app/stores";
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#if $page.status === 404}
|
||||||
|
<h1>Sorry page not found! 🤷🏼</h1>
|
||||||
|
<p>You just hit a route that doesn't exist.</p>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if $page.status === 500}
|
||||||
|
<h1>Sorry an unexpected error occurred! 😿</h1>
|
||||||
|
<p>Please try again later. </p>
|
||||||
|
{/if}
|
||||||
Loading…
Reference in a new issue