mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
48 lines
1.2 KiB
Svelte
48 lines
1.2 KiB
Svelte
|
|
<script lang="ts">
|
||
|
|
import { t } from 'svelte-i18n';
|
||
|
|
import ImmichLogo from '../immich-logo.svelte';
|
||
|
|
|
||
|
|
export let centered = false;
|
||
|
|
export let logoSize: 'sm' | 'lg' = 'sm';
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<div
|
||
|
|
class="flex gap-1 mt-2 place-items-center dark:bg-immich-dark-primary/10 bg-gray-200/50 p-2 rounded-lg bg-clip-padding border border-transparent relative supporter-effect"
|
||
|
|
class:place-content-center={centered}
|
||
|
|
>
|
||
|
|
<ImmichLogo class={logoSize === 'sm' ? 'size-6' : 'size-8'} noText />
|
||
|
|
<p class="dark:text-gray-100">{$t('purchase_account_info')}</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<style lang="postcss">
|
||
|
|
.supporter-effect::after {
|
||
|
|
@apply absolute inset-0 rounded-lg opacity-0 transition-opacity content-[''];
|
||
|
|
}
|
||
|
|
|
||
|
|
.supporter-effect:hover::after {
|
||
|
|
@apply opacity-100;
|
||
|
|
background: linear-gradient(
|
||
|
|
to right,
|
||
|
|
rgba(16, 132, 254, 0.25),
|
||
|
|
rgba(229, 125, 175, 0.25),
|
||
|
|
rgba(254, 36, 29, 0.25),
|
||
|
|
rgba(255, 183, 0, 0.25),
|
||
|
|
rgba(22, 193, 68, 0.25)
|
||
|
|
);
|
||
|
|
animation: gradient 10s ease infinite;
|
||
|
|
background-size: 400% 400%;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes gradient {
|
||
|
|
0% {
|
||
|
|
background-position: 0% 50%;
|
||
|
|
}
|
||
|
|
50% {
|
||
|
|
background-position: 100% 50%;
|
||
|
|
}
|
||
|
|
100% {
|
||
|
|
background-position: 0% 50%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|