mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-01-24 22:38:58 -05:00
Add config file and error page
This commit is contained in:
18
src/routes/+error.svelte
Normal file
18
src/routes/+error.svelte
Normal file
@@ -0,0 +1,18 @@
|
||||
<script>
|
||||
// @ts-nocheck
|
||||
|
||||
import { page } from "$app/stores";
|
||||
import { goto } from "$app/navigation";
|
||||
|
||||
async function goHome() {
|
||||
goto("/");
|
||||
}
|
||||
</script>
|
||||
|
||||
<article class="text-center font-extrabold text-4xl mt-16">
|
||||
<h1>{$page.error.message}</h1>
|
||||
</article>
|
||||
|
||||
<div class="flex justify-center items-center">
|
||||
<button class="btn btn-primary" on:click={goHome}>Go Home</button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user