Fix not found and loading error screens

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-08-16 09:35:44 +02:00
parent 0e33915e9a
commit 5736083d50
15 changed files with 240 additions and 155 deletions
+5 -12
View File
@@ -1,10 +1,9 @@
<script lang="ts">
import { twemoji } from "@app/lib/utils";
import Button from "@app/components/Button.svelte";
import ErrorMessage from "@app/components/ErrorMessage.svelte";
export let title: string | undefined = undefined;
export let title: string;
export let errorMessage: string;
export let stackTrace: string;
</script>
@@ -22,15 +21,9 @@
<div class="wrapper layout-centered">
<div class="emoji" use:twemoji>🏜️</div>
{#if title}
<div class="title txt-medium txt-bold txt-highlight">
{title}
</div>
{/if}
<ErrorMessage message={errorMessage} {stackTrace} />
<div style:margin-top="1rem">
<Button variant="foreground" on:click={() => window.history.back()}>
Back
</Button>
<div class="title txt-medium txt-bold txt-highlight">
{title}
</div>
<ErrorMessage message={errorMessage} {stackTrace} />
</div>