mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
* chore(web): another missing translations * unused removed * more keys * lint fix * test fixed * dynamic translation fix * fixes * people search translation * params fixed * keep filter setting fix * lint fix * $t fixes * Update web/src/lib/i18n/en.json Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * another missing * activity translation * link sharing translations * expiration dropdown fix - didn't work localized * notification title * device logout * search results * reset to default * unsaved change * select from computer * selected * select-2 * select-3 * unmerge * pluralize, force icu message * Update web/src/lib/components/asset-viewer/asset-viewer.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * review fixes * remove user * plural fixes * ffmpeg settings * fixes * error title * plural fixes * onboarding * change password * more more * console log fix * another * api key desc * map marker * format fix * key fix * asset-utils * utils * misc --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
60 lines
2.3 KiB
Svelte
60 lines
2.3 KiB
Svelte
<script lang="ts">
|
|
import { mdiArrowRight } from '@mdi/js';
|
|
import Button from '../elements/buttons/button.svelte';
|
|
import Icon from '../elements/icon.svelte';
|
|
import OnboardingCard from './onboarding-card.svelte';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import { colorTheme } from '$lib/stores/preferences.store';
|
|
import { moonPath, moonViewBox, sunPath, sunViewBox } from '$lib/assets/svg-paths';
|
|
import { Theme } from '$lib/constants';
|
|
import { t } from 'svelte-i18n';
|
|
|
|
const dispatch = createEventDispatcher<{
|
|
done: void;
|
|
previous: void;
|
|
}>();
|
|
</script>
|
|
|
|
<OnboardingCard>
|
|
<p class="text-xl text-immich-primary dark:text-immich-dark-primary">{$t('color_theme').toUpperCase()}</p>
|
|
|
|
<div>
|
|
<p class="pb-6 font-light">{$t('onboarding_theme_description')}</p>
|
|
</div>
|
|
|
|
<div class="flex gap-4 mb-6">
|
|
<button
|
|
type="button"
|
|
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"
|
|
on:click={() => ($colorTheme.value = Theme.LIGHT)}
|
|
>
|
|
<div
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-primary"
|
|
>
|
|
<Icon path={sunPath} viewBox={sunViewBox} size="96" />
|
|
<p class="font-semibold text-4xl">{$t('light').toUpperCase()}</p>
|
|
</div>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
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"
|
|
on:click={() => ($colorTheme.value = Theme.DARK)}
|
|
>
|
|
<div
|
|
class="flex flex-col place-items-center place-content-center justify-around h-full w-full text-immich-dark-primary"
|
|
>
|
|
<Icon path={moonPath} viewBox={moonViewBox} size="96" />
|
|
<p class="font-semibold text-4xl">{$t('dark').toUpperCase()}</p>
|
|
</div>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="flex">
|
|
<div class="w-full flex place-content-end">
|
|
<Button class="flex gap-2 place-content-center" on:click={() => dispatch('done')}>
|
|
<p>{$t('admin.storage_template_settings')}</p>
|
|
<Icon path={mdiArrowRight} size="18" />
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</OnboardingCard>
|