diff options
| author | Adam Soltys <[email protected]> | 2023-01-25 23:01:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-25 23:01:55 -0800 |
| commit | f1b3efe88204ba203667a8dd67ac8ab598af1959 (patch) | |
| tree | 071975ffa4c30f81a7a25b78b4cfd5f85fdf7ea5 /src/routes/(app)/+error.svelte | |
| parent | 2a18749cb9b08726dedf0cfb63971305e50a910a (diff) | |
| download | coinos-ui-f1b3efe88204ba203667a8dd67ac8ab598af1959.tar.gz coinos-ui-f1b3efe88204ba203667a8dd67ac8ab598af1959.zip | |
sveltekit 1.0
Diffstat (limited to 'src/routes/(app)/+error.svelte')
| -rw-r--r-- | src/routes/(app)/+error.svelte | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/routes/(app)/+error.svelte b/src/routes/(app)/+error.svelte deleted file mode 100644 index 8d613909..00000000 --- a/src/routes/(app)/+error.svelte +++ /dev/null @@ -1,42 +0,0 @@ -<script> - import { page } from '$app/stores'; - import { Icon, PageNotFound } from '$comp'; - import { t } from '$lib/translations'; - import { back } from '$lib/utils'; - - export let data; - let { user } = data; - - $: message = $page.error.message; - $: if (message.startsWith('Internal')) message = 'Something went wrong'; -</script> - -{#if $page.error.message.includes('not found') || $page.status === 404} - <PageNotFound /> -{:else} - <div class="container px-4 max-w-lg mx-auto mt-20 space-y-5"> - <div class="w-[243px] mx-auto mb-10"> - <a href="/"> - <Icon icon="logo" /> - </a> - </div> - - <div class="flex justify-center items-center"> - <div class="shadow-xl rounded-3xl p-10 pb-12 space-y-5 w-full mx-5 md:mx-0 md:w-[400px]"> - <h1 class="text-3xl md:text-4xl font-semibold"> - {$t('error.header')} - </h1> - - <p class="text-secondary"> - {message}. If the problem persists, please - <a href="/support" class="underline">let us know.</a> - </p> - - <button - class="rounded-full bg-black text-white py-2 px-5 font-bold hover:opacity-80 mb-2" - on:click={back}>Back</button - > - </div> - </div> - </div> -{/if} |
