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:
parent
45545fd8ce
commit
ae5e77f670
2 changed files with 20 additions and 0 deletions
2
config.ts
Normal file
2
config.ts
Normal file
|
@ -0,0 +1,2 @@
|
|||
export let appVersion = "0.0.1";
|
||||
export let appTitle = "AdventureLog";
|
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>
|
Loading…
Add table
Add a link
Reference in a new issue