|
|
|
@ -1,13 +1,15 @@
|
|
|
|
<script lang="ts">
|
|
|
|
<script lang="ts">
|
|
|
|
import { mdiArrowRight, mdiWhiteBalanceSunny, mdiMoonWaningCrescent } from '@mdi/js';
|
|
|
|
import { mdiArrowRight } from '@mdi/js';
|
|
|
|
import Button from '../elements/buttons/button.svelte';
|
|
|
|
import Button from '../elements/buttons/button.svelte';
|
|
|
|
import Icon from '../elements/icon.svelte';
|
|
|
|
import Icon from '../elements/icon.svelte';
|
|
|
|
import OnboardingCard from './onboarding-card.svelte';
|
|
|
|
import OnboardingCard from './onboarding-card.svelte';
|
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
import { colorTheme } from '$lib/stores/preferences.store';
|
|
|
|
import { colorTheme } from '$lib/stores/preferences.store';
|
|
|
|
|
|
|
|
import { moonPath, moonViewBox, sunPath, sunViewBox } from '$lib/assets/svg-paths';
|
|
|
|
|
|
|
|
|
|
|
|
const dispatch = createEventDispatcher<{
|
|
|
|
const dispatch = createEventDispatcher<{
|
|
|
|
done: void;
|
|
|
|
done: void;
|
|
|
|
|
|
|
|
previous: void;
|
|
|
|
}>();
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
|
|
const toggleLightTheme = () => {
|
|
|
|
const toggleLightTheme = () => {
|
|
|
|
@ -28,38 +30,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="flex gap-4 mb-6">
|
|
|
|
<div class="flex gap-4 mb-6">
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
class="w-1/2 aspect-square bg-immich-bg rounded-3xl transition-all shadow-sm hover:shadow-xl {$colorTheme ==
|
|
|
|
class="w-1/2 aspect-square bg-immich-bg rounded-3xl transition-all shadow-sm hover:shadow-xl border-[3px] border-immich-dark-primary/80 border-immich-primary dark:border dark:border-transparent"
|
|
|
|
'light'
|
|
|
|
|
|
|
|
? 'border-[3px] border-immich-dark-primary/80 border-immich-primary'
|
|
|
|
|
|
|
|
: 'border border-transparent'}"
|
|
|
|
|
|
|
|
on:click={toggleLightTheme}
|
|
|
|
on:click={toggleLightTheme}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-primary"
|
|
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-primary"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon path={mdiWhiteBalanceSunny} size="96" />
|
|
|
|
<Icon path={sunPath} viewBox={sunViewBox} size="96" />
|
|
|
|
<p class="font-semibold text-4xl">LIGHT</p>
|
|
|
|
<p class="font-semibold text-4xl">LIGHT</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
class="w-1/2 aspect-square bg-immich-dark-bg rounded-3xl {$colorTheme == 'dark'
|
|
|
|
class="w-1/2 aspect-square bg-immich-dark-bg rounded-3xl dark:border-[3px] dark:border-immich-dark-primary/80 dark:border-immich-dark-primary border border-transparent"
|
|
|
|
? 'border-[3px] border-immich-dark-primary/80 border-immich-primary'
|
|
|
|
|
|
|
|
: 'border border-transparent'}"
|
|
|
|
|
|
|
|
on:click={toggleDarkTheme}
|
|
|
|
on:click={toggleDarkTheme}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-dark-primary"
|
|
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-dark-primary"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Icon path={mdiMoonWaningCrescent} size="96" />
|
|
|
|
<Icon path={moonPath} viewBox={moonViewBox} size="96" />
|
|
|
|
<p class="font-semibold text-4xl">DARK</p>
|
|
|
|
<p class="font-semibold text-4xl">DARK</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="w-full flex place-content-end">
|
|
|
|
<div class="flex">
|
|
|
|
<Button class="flex gap-2 place-content-center" on:click={() => dispatch('done')}>
|
|
|
|
<div class="w-full flex place-content-end">
|
|
|
|
<p>Storage Template</p>
|
|
|
|
<Button class="flex gap-2 place-content-center" on:click={() => dispatch('done')}>
|
|
|
|
<Icon path={mdiArrowRight} size="18" />
|
|
|
|
<p>Storage Template</p>
|
|
|
|
</Button>
|
|
|
|
<Icon path={mdiArrowRight} size="18" />
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</OnboardingCard>
|
|
|
|
</OnboardingCard>
|
|
|
|
|