aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+error.svelte
blob: 58a3144d4cbc7ffbc40eeddc339a095ce627414a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
	import { page } from '$app/stores';
	import { Icon, PageNotFound } from '$comp';
	import { t } from '$lib/translations';
</script>

{#if $page.error.message.includes('not found') || $page.status === 404}
	<PageNotFound />
{:else}
	<div class="flex justify-center items-center mt-20">
		<div class="space-y-5 text-center">
			<a href="/">
				<Icon icon="logo" style="mx-auto" />
			</a>

			<Icon icon="error" style="mx-auto w-56" />

			<h1 class="font-bold text-5xl">{$t('error.header')}</h1>
			<p class="px-1 w-full md:w-96 break-all font-bold">{$page.error.message}</p>
			<p>{$t('error.message')}</p>
		</div>
	</div>
{/if}