38 lines
1.4 KiB
Svelte
38 lines
1.4 KiB
Svelte
<script lang="ts">
|
|
import AppLogoIcon from '@/components/AppLogoIcon.svelte';
|
|
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
|
import { Link } from '@inertiajs/svelte';
|
|
import type { Snippet } from 'svelte';
|
|
|
|
interface Props {
|
|
title: string;
|
|
description: string;
|
|
children?: Snippet;
|
|
}
|
|
|
|
let { title, description, children }: Props = $props();
|
|
</script>
|
|
|
|
<div class="flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10">
|
|
<div class="flex w-full max-w-md flex-col gap-6">
|
|
<Link href={route('home')} class="flex items-center gap-2 self-center font-medium">
|
|
<div class="flex h-9 w-9 items-center justify-center">
|
|
<AppLogoIcon class="size-9 fill-current text-black dark:text-white" />
|
|
</div>
|
|
</Link>
|
|
|
|
<div class="flex flex-col gap-6">
|
|
<Card class="rounded-xl">
|
|
<CardHeader class="px-10 pb-0 pt-8 text-center">
|
|
<CardTitle class="text-xl">{title}</CardTitle>
|
|
<CardDescription>
|
|
{description}
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent class="px-10 py-8">
|
|
{@render children?.()}
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</div>
|
|
</div>
|