mirror of
https://github.com/immich-app/immich.git
synced 2025-06-01 20:54:22 -04:00
* refactor: oauth to use feature flags * chore: open api * chore: e2e test for authorize endpoint
30 lines
968 B
Svelte
30 lines
968 B
Svelte
<script lang="ts">
|
|
import ImmichLogo from './immich-logo.svelte';
|
|
|
|
export let title: string;
|
|
export let showMessage = $$slots.message;
|
|
</script>
|
|
|
|
<section class="min-w-screen flex min-h-screen place-content-center place-items-center p-4">
|
|
<div
|
|
class="flex w-full max-w-lg flex-col gap-4 rounded-3xl border bg-white p-8 shadow-sm dark:border-immich-dark-gray dark:bg-immich-dark-gray"
|
|
>
|
|
<div class="flex flex-col place-content-center place-items-center gap-4 py-4">
|
|
<ImmichLogo class="h-24 w-24" />
|
|
<h1 class="text-2xl font-medium text-immich-primary dark:text-immich-dark-primary">
|
|
{title}
|
|
</h1>
|
|
</div>
|
|
|
|
{#if showMessage}
|
|
<div
|
|
class="w-full rounded-xl border-2 border-immich-primary bg-immich-primary/5 p-4 text-sm font-medium text-immich-primary dark:border-immich-dark-bg dark:text-immich-dark-primary"
|
|
>
|
|
<slot name="message" />
|
|
</div>
|
|
{/if}
|
|
|
|
<slot />
|
|
</div>
|
|
</section>
|