2023-03-15 22:38:29 +01:00
|
|
|
<script lang="ts">
|
2025-01-14 14:53:33 -05:00
|
|
|
import { Card, CardBody, CardHeader, Heading, Logo, VStack } from '@immich/ui';
|
2024-11-14 08:43:25 -06:00
|
|
|
import type { Snippet } from 'svelte';
|
2023-03-15 22:38:29 +01:00
|
|
|
|
2024-11-14 08:43:25 -06:00
|
|
|
interface Props {
|
|
|
|
|
title: string;
|
|
|
|
|
children?: Snippet;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-14 14:53:33 -05:00
|
|
|
let { title, children }: Props = $props();
|
2023-03-15 22:38:29 +01:00
|
|
|
</script>
|
|
|
|
|
|
2025-01-14 14:53:33 -05:00
|
|
|
<section class="min-w-screen flex min-h-screen items-center justify-center">
|
|
|
|
|
<Card color="secondary" class="w-full max-w-xl border m-2">
|
|
|
|
|
<CardHeader class="mt-6">
|
|
|
|
|
<VStack>
|
|
|
|
|
<Logo variant="icon" size="giant" />
|
|
|
|
|
<Heading size="large" class="font-semibold" color="primary">{title}</Heading>
|
|
|
|
|
</VStack>
|
|
|
|
|
</CardHeader>
|
|
|
|
|
<CardBody>
|
|
|
|
|
{@render children?.()}
|
|
|
|
|
</CardBody>
|
|
|
|
|
</Card>
|
2023-03-15 22:38:29 +01:00
|
|
|
</section>
|