1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 11:45:17 +02:00

Add config file and error page

This commit is contained in:
Sean Morley 2024-04-10 15:19:19 +00:00
parent 45545fd8ce
commit ae5e77f670
2 changed files with 20 additions and 0 deletions

2
config.ts Normal file
View file

@ -0,0 +1,2 @@
export let appVersion = "0.0.1";
export let appTitle = "AdventureLog";

18
src/routes/+error.svelte Normal file
View 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>