2024-01-03 23:28:32 -06:00
|
|
|
<script lang="ts">
|
2024-08-13 19:01:30 +02:00
|
|
|
import Icon from '$lib/components/elements/icon.svelte';
|
2024-01-03 23:28:32 -06:00
|
|
|
import { fade } from 'svelte/transition';
|
2024-08-13 19:01:30 +02:00
|
|
|
|
|
|
|
|
export let title: string | undefined = undefined;
|
|
|
|
|
export let icon: string | undefined = undefined;
|
2024-01-03 23:28:32 -06:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
id="onboarding-card"
|
2024-08-13 19:01:30 +02:00
|
|
|
class="flex w-full max-w-4xl flex-col gap-4 rounded-3xl border-2 border-gray-500 px-8 py-8 dark:border-immich-dark-gray dark:bg-immich-dark-gray text-black dark:text-immich-dark-fg bg-gray-50"
|
2024-01-03 23:28:32 -06:00
|
|
|
in:fade={{ duration: 250 }}
|
|
|
|
|
>
|
2024-08-13 19:01:30 +02:00
|
|
|
{#if title || icon}
|
|
|
|
|
<div class="flex gap-2 items-center justify-center w-fit">
|
|
|
|
|
{#if icon}
|
|
|
|
|
<Icon path={icon} size="30" class="text-immich-primary dark:text-immich-dark-primary" />
|
|
|
|
|
{/if}
|
|
|
|
|
{#if title}
|
|
|
|
|
<p class="text-xl text-immich-primary dark:text-immich-dark-primary">
|
|
|
|
|
{title.toUpperCase()}
|
|
|
|
|
</p>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
2024-01-03 23:28:32 -06:00
|
|
|
<slot />
|
|
|
|
|
</div>
|