1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 23:09:37 +02:00
AdventureLog/frontend/src/lib/components/NotFound.svelte

25 lines
737 B
Svelte

<script lang="ts">
import Lost from '$lib/assets/undraw_lost.svg';
export let error: string | undefined;
import { t } from 'svelte-i18n';
</script>
<div
class="flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8 -mt-20"
>
<div class="mx-auto max-w-md text-center">
<div class="flex items-center justify-center">
<img src={Lost} alt="Lost" class="w-1/2" />
</div>
<h1 class="mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
{$t('adventures.no_adventures_found')}
</h1>
{#if !error}
<p class="mt-4 text-muted-foreground">
{$t('adventures.adventure_not_found')}
</p>
{:else}
<p class="text-error mt-2">{error}</p>
{/if}
</div>
</div>