Files
dotter/resources/js/layouts/auth/AuthSimpleLayout.svelte
T
salam e687b4437b
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s
first commit
2026-10-06 18:53:03 +02:00

44 lines
1.3 KiB
Svelte

<script lang="ts">
import { Link } from '@inertiajs/svelte';
import type { Snippet } from 'svelte';
import AppLogoIcon from '@/components/AppLogoIcon.svelte';
import { home } from '@/routes';
let {
title = '',
description = '',
children,
}: {
title?: string;
description?: string;
children?: Snippet;
} = $props();
</script>
<div
class="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10"
>
<div class="w-full max-w-sm">
<div class="flex flex-col gap-8">
<div class="flex flex-col items-center gap-4">
<Link
href={home()}
class="flex flex-col items-center gap-2 font-medium"
>
<AppLogoIcon
class="size-14 fill-current text-foreground dark:text-white"
/>
<span class="sr-only">{title}</span>
</Link>
<div class="space-y-2 text-center">
<h1 class="text-xl font-medium">{title}</h1>
<p class="text-center text-sm text-muted-foreground">
{description}
</p>
</div>
</div>
{@render children?.()}
</div>
</div>
</div>