Skip to content

Open source personal finance application

feat(login): redesign login page with theme/language header menu

Ilya Komichev7e0c3fed03e0
diff --git a/app/app/components/app/Copyright.vue b/app/app/components/app/Copyright.vue
index ec4895f7..13dc58e8 100644
--- a/app/app/components/app/Copyright.vue
+++ b/app/app/components/app/Copyright.vue
@@ -1,18 +1,14 @@
-<script setup lang="ts">
-const { t } = useI18n()
-</script>
-
<template>
<a
- class="interactive flex-center text-muted rounded-sm px-5 py-2 text-sm"
+ aria-label="ilko.me"
+ class="flex-center interactive text-muted hover:text-primary gap-2 rounded-full px-4 py-2 transition-colors"
href="https://ilko.me"
>
- {{ t('app.madeBy.text') }}
+ <span class="text-sm">ilko.me</span>
<Icon
- class="mx-2 animate-[heartbeat_3s_ease-in-out_infinite] text-2xl text-[oklch(0.63_0.24_24.81)]"
+ class="animate-[heartbeat_3s_ease-in-out_infinite] text-2xl"
name="mdi:heart"
/>
- {{ t('app.madeBy.name') }}
</a>
</template>
diff --git a/app/app/components/bottomSheet/BottomSheetOrDropdown.vue b/app/app/components/bottomSheet/BottomSheetOrDropdown.vue
index a3519598..d33c39f5 100644
--- a/app/app/components/bottomSheet/BottomSheetOrDropdown.vue
+++ b/app/app/components/bottomSheet/BottomSheetOrDropdown.vue
@@ -1,11 +1,14 @@
<script setup lang="ts">
-const props = defineProps<{
+const props = withDefaults(defineProps<{
+ align?: 'center' | 'end' | 'start'
bottomSheetStyle?: Record<string, string>
dragClassesCustom?: string
isOpen?: boolean
isShowCloseBtn?: boolean
title?: string
-}>()
+}>(), {
+ align: 'start',
+})
const emit = defineEmits<{
closeModal: []
@@ -24,7 +27,7 @@ const open = ref(false)
v-if="isLaptop"
v-model:open="open"
:content="{
- align: 'start',
+ align: props.align,
side: 'bottom',
}"
:ui="{
@@ -32,7 +35,7 @@ const open = ref(false)
}"
class="popoverGroup grow overflow-hidden"
>
- <slot name="trigger" />
+ <slot name="trigger" :isActive="open" />
<template #content>
<UiPopoverWrap
@@ -57,7 +60,7 @@ const open = ref(false)
class="grow"
@click="emit('openModal')"
>
- <slot name="trigger" />
+ <slot name="trigger" :isActive="props.isOpen" />
<Teleport to="body">
<BottomSheet
@@ -75,7 +78,7 @@ const open = ref(false)
<div
v-if="$slots.content"
- class="scrollerBlock bottomSheetContentInside"
+ class="bottomSheetContentInside scrollerBlock"
>
<slot name="content" :close />
</div>
diff --git a/app/app/components/layout/HeaderMenu.vue b/app/app/components/layout/HeaderMenu.vue
new file mode 100644
index 00000000..27f42464
--- /dev/null
+++ b/app/app/components/layout/HeaderMenu.vue
@@ -0,0 +1,231 @@
+<script setup lang="ts">
+import { AnimatePresence, Motion } from 'motion-v'
+
+import type { LocaleSlug } from '~/components/locale/types'
+
+import { useTheme } from '~/components/theme/useTheme'
+import { useUserStore } from '~/components/user/useUserStore'
+
+type Panel = 'language' | 'palette' | 'root' | 'theme'
+
+const GITHUB_URL = 'https://github.com/ilkome/finapp'
+const DOCS_URL = 'https://finapp-docs.ilko.me/'
+
+const THEME_ICONS: Record<string, string> = {
+ dark: 'i-lucide-moon',
+ light: 'i-lucide-sun',
+ system: 'i-lucide-monitor',
+}
+
+const { locale, t } = useI18n()
+const userStore = useUserStore()
+const { options: themeOptions, preference: themePreference, setTheme } = useTheme()
+
+const isOpen = ref(false)
+const activePanel = ref<Panel>('root')
+const direction = ref<1 | -1>(1)
+
+const localeOptions = computed(() => [
+ { label: t('locale.ru'), value: 'ru' as LocaleSlug },
+ { label: t('locale.en'), value: 'en' as LocaleSlug },
+])
+
+const localeLabel = computed(() => t(`locale.${locale.value}`))
+const themeLabel = computed(() => themeOptions.find(o => o.value === themePreference.value)?.label ?? '')
+
+const panelTitle = computed(() => {
+ switch (activePanel.value) {
+ case 'language':
+ return t('locale.title')
+ case 'theme':
+ return t('theme.picker.theme')
+ case 'palette':
+ return t('theme.palette')
+ default:
+ return ''
+ }
+})
+
+function open(panel: Exclude<Panel, 'root'>) {
+ direction.value = 1
+ activePanel.value = panel
+}
+
+function back() {
+ direction.value = -1
+ activePanel.value = 'root'
+}
+
+// Reopen always lands on the root list, never a stale sub-panel.
+function resetToRoot() {
+ activePanel.value = 'root'
+ direction.value = 1
+}
+
+const SLIDE_DISTANCE = 8
+const panelVariants = {
+ center: { opacity: 1, x: 0 },
+ enter: (dir: 1 | -1) => ({ opacity: 0, x: dir * SLIDE_DISTANCE }),
+ exit: (dir: 1 | -1) => ({ opacity: 0, x: dir * -SLIDE_DISTANCE }),
+}
+const panelTransition = { duration: 0.12, ease: [0.4, 0, 0.2, 1] as const }
+
+const rowClass = 'flex min-h-[44px] w-full items-center gap-3 rounded-sm px-2 py-1.5 text-left text-sm hover:bg-elevated/50'
+</script>
+
+<template>
+ <BottomSheetOrDropdown
+ align="end"
+ :isOpen="isOpen"
+ @openModal="() => { resetToRoot(); isOpen = true }"
+ @closeModal="isOpen = false"
+ >
+ <template #trigger="{ isActive }">
+ <UButton
+ :aria-label="t('login.menu.title')"
+ :variant="isActive ? 'soft' : 'ghost'"
+ class="text-muted max-md:border-default/80 max-md:bg-default/20 max-md:size-12 max-md:justify-center max-md:rounded-2xl max-md:border max-md:shadow-lg max-md:backdrop-blur-xl max-md:dark:bg-neutral-800/50"
+ color="neutral"
+ icon="i-lucide-menu"
+ size="lg"
+ square
+ @click="resetToRoot"
+ />
+ </template>
+
+ <template #content="{ close }">
+ <div class="w-full overflow-hidden py-2 max-md:pt-6">
+ <AnimatePresence :custom="direction" mode="wait" :initial="false">
+ <Motion
+ :key="activePanel"
+ :custom="direction"
+ :variants="panelVariants"
+ initial="enter"
+ animate="center"
+ exit="exit"
+ :transition="panelTransition"
+ >
+ <!-- Root list -->
+ <div v-if="activePanel === 'root'" class="grid gap-0.5">
+ <button :class="rowClass" type="button" @click="open('language')">
+ <span class="flex min-w-7 justify-center">
+ <UIcon name="lucide:languages" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">{{ t('locale.title') }}</span>
+ <span class="text-dimmed text-xs">{{ localeLabel }}</span>
+ <UIcon name="lucide:chevron-right" class="text-muted size-4 shrink-0" />
+ </button>
+
+ <button :class="rowClass" type="button" @click="open('theme')">
+ <span class="flex min-w-7 justify-center">
+ <UIcon :name="THEME_ICONS[themePreference]" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">{{ t('theme.picker.theme') }}</span>
+ <span class="text-dimmed text-xs">{{ themeLabel }}</span>
+ <UIcon name="lucide:chevron-right" class="text-muted size-4 shrink-0" />
+ </button>
+
+ <button :class="rowClass" type="button" @click="open('palette')">
+ <span class="flex min-w-7 justify-center">
+ <UIcon name="i-lucide-swatch-book" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">{{ t('theme.palette') }}</span>
+ <UIcon name="lucide:chevron-right" class="text-muted size-4 shrink-0" />
+ </button>
+
+ <div aria-hidden="true" class="bg-elevated/50 mx-2 my-1 h-px" />
+
+ <a
+ :class="rowClass"
+ :href="GITHUB_URL"
+ rel="noopener"
+ target="_blank"
+ @click="close"
+ >
+ <span class="flex min-w-7 justify-center">
+ <UIcon name="mdi:github" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">GitHub</span>
+ <UIcon name="lucide:external-link" class="text-dimmed size-4 shrink-0" />
+ </a>
+
+ <a
+ :class="rowClass"
+ :href="DOCS_URL"
+ rel="noopener"
+ target="_blank"
+ @click="close"
+ >
+ <span class="flex min-w-7 justify-center">
+ <UIcon name="lucide:book-open" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">{{ t('login.menu.documentation') }}</span>
+ <UIcon name="lucide:external-link" class="text-dimmed size-4 shrink-0" />
+ </a>
+ </div>
+
+ <!-- Sub-panels -->
+ <div v-else>
+ <div
+ :aria-label="t('base.previous')"
+ role="button"
+ tabindex="0"
+ class="hover:bg-elevated/50 mb-1 flex items-center gap-2 rounded-sm p-2"
+ @click="back"
+ @keydown.enter.prevent="back"
+ @keydown.space.prevent="back"
+ >
+ <UIcon name="lucide:chevron-left" class="text-muted size-5" />
+ <span class="text-toned grow text-sm font-medium">{{ panelTitle }}</span>
+ </div>
+
+ <!-- Language -->
+ <div v-if="activePanel === 'language'" class="grid gap-0.5">
+ <button
+ v-for="opt in localeOptions"
+ :key="opt.value"
+ :class="rowClass"
+ type="button"
+ @click="userStore.saveUserLocale(opt.value)"
+ >
+ <span class="grow font-medium">{{ opt.label }}</span>
+ <UIcon
+ v-if="locale === opt.value"
+ name="lucide:check"
+ class="text-primary size-4 shrink-0"
+ />
+ </button>
+ </div>
+
+ <!-- Theme -->
+ <div v-else-if="activePanel === 'theme'" class="grid gap-0.5">
+ <button
+ v-for="opt in themeOptions"
+ :key="opt.value"
+ :class="rowClass"
+ type="button"
+ @click="setTheme(opt.value)"
+ >
+ <span class="flex min-w-7 justify-center">
+ <UIcon :name="THEME_ICONS[opt.value]" class="text-muted size-5" />
+ </span>
+ <span class="grow font-medium">{{ opt.label }}</span>
+ <UIcon
+ v-if="themePreference === opt.value"
+ name="lucide:check"
+ class="text-primary size-4 shrink-0"
+ />
+ </button>
+ </div>
+
+ <!-- Palette -->
+ <div v-else class="px-2 pb-1">
+ <ThemePickerPanel />
+ </div>
+ </div>
+ </Motion>
+ </AnimatePresence>
+ </div>
+ </template>
+ </BottomSheetOrDropdown>
+</template>
diff --git a/app/app/components/theme/PickerPanel.vue b/app/app/components/theme/PickerPanel.vue
new file mode 100644
index 00000000..2aef16fe
--- /dev/null
+++ b/app/app/components/theme/PickerPanel.vue
@@ -0,0 +1,155 @@
+<script setup lang="ts">
+import colors from 'tailwindcss/colors'
+
+import { omit } from '#ui/utils'
+
+const appConfig = useAppConfig()
+const colorMode = useColorMode()
+const { t } = useI18n()
+
+const neutralColors = ['slate', 'gray', 'zinc', 'neutral', 'stone']
+const neutral = computed({
+ get() {
+ return appConfig.ui.colors.neutral
+ },
+ set(option) {
+ appConfig.ui.colors.neutral = option
+ window.localStorage.setItem('nuxt-ui-neutral', appConfig.ui.colors.neutral)
+ },
+})
+
+const colorsToOmit = ['inherit', 'current', 'transparent', 'black', 'white', ...neutralColors]
+const primaryColors = Object.keys(omit(colors, colorsToOmit as (keyof typeof colors)[]))
+const primary = computed({
+ get() {
+ return appConfig.ui.colors.primary
+ },
+ set(option) {
+ appConfig.ui.colors.primary = option
+ window.localStorage.setItem('nuxt-ui-primary', appConfig.ui.colors.primary)
+ setBlackAsPrimary(false)
+ },
+})
+
+const radiuses = [0, 0.25, 0.375, 0.5]
+const radiusItems = radiuses.map(r => ({ label: String(r), value: r }))
+const radius = computed({
+ get() {
+ return appConfig.theme.radius
+ },
+ set(option) {
+ appConfig.theme.radius = option
+ window.localStorage.setItem('nuxt-ui-radius', String(appConfig.theme.radius))
+ },
+})
+
+const modes = [
+ { icon: 'i-lucide-sun', label: 'light' },
+ { icon: 'i-lucide-moon', label: 'dark' },
+ { icon: 'i-lucide-monitor', label: 'system' },
+]
+const mode = computed({
+ get() {
+ return colorMode.value
+ },
+ set(option) {
+ colorMode.preference = option
+ },
+})
+
+function setBlackAsPrimary(value: boolean) {
+ appConfig.theme.blackAsPrimary = value
+ window.localStorage.setItem('nuxt-ui-black-as-primary', String(value))
+}
+</script>
+
+<template>
+ <div class="flex flex-col gap-4">
+ <fieldset>
+ <legend class="mb-2 text-[11px] leading-none font-semibold">
+ {{ t('theme.picker.primary') }}
+ </legend>
+
+ <div class="-mx-2 grid grid-cols-3 gap-1">
+ <ThemePickerButton
+ chip="primary"
+ label="Black"
+ :selected="appConfig.theme.blackAsPrimary"
+ @click="setBlackAsPrimary(true)"
+ >
+ <template #leading>
+ <span class="inline-block size-2 rounded-full bg-black dark:bg-white" />
+ </template>
+ </ThemePickerButton>
+
+ <ThemePickerButton
+ v-for="color in primaryColors"
+ :key="color"
+ :label="color"
+ :chip="color"
+ :selected="!appConfig.theme.blackAsPrimary && primary === color"
+ @click="primary = color"
+ />
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend class="mb-2 text-[11px] leading-none font-semibold">
+ {{ t('theme.picker.neutral') }}
+ </legend>
+
+ <div class="-mx-2 grid grid-cols-3 gap-1">
+ <ThemePickerButton
+ v-for="color in neutralColors"
+ :key="color"
+ :label="color"
+ :chip="color"
+ :selected="neutral === color"
+ @click="neutral = color"
+ />
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend class="mb-2 text-[11px] leading-none font-semibold">
+ {{ t('theme.picker.radius') }}
+ </legend>
+
+ <USelectMenu
+ v-model="radius"
+ :items="radiusItems"
+ valueKey="value"
+ :searchInput="false"
+ >
+ <template #leading>
+ <span
+ class="bg-elevated size-5"
+ :style="{ borderRadius: `${radius}rem` }"
+ />
+ </template>
+ <template #item-leading="{ item }">
+ <span
+ class="bg-elevated size-5"
+ :style="{ borderRadius: `${item.value}rem` }"
+ />
+ </template>
+ </USelectMenu>
+ </fieldset>
+
+ <fieldset>
+ <legend class="mb-2 text-[11px] leading-none font-semibold">
+ {{ t('theme.picker.theme') }}
+ </legend>
+
+ <div class="-mx-2 grid grid-cols-3 gap-1">
+ <ThemePickerButton
+ v-for="m in modes"
+ :key="m.label"
+ v-bind="m"
+ :selected="colorMode.preference === m.label"
+ @click="mode = m.label"
+ />
+ </div>
+ </fieldset>
+ </div>
+</template>
diff --git a/app/app/pages/login.vue b/app/app/pages/login.vue
index ce79da3d..256be107 100644
--- a/app/app/pages/login.vue
+++ b/app/app/pages/login.vue
@@ -1,6 +1,4 @@
<script setup lang="ts">
-import pkg from '~~/package.json'
-
import { useDemo } from '~/components/demo/useDemo'
import { showErrorToast } from '~/composables/useStoreSync'
import { useSupabaseAuth } from '~/composables/useSupabase'
@@ -36,9 +34,10 @@ async function onGoogle() {
try {
const redirect = getSafeRedirectPath(route.query.redirect)
const base = `${window.location.origin}/login`
- const redirectTo = redirect === '/dashboard'
- ? base
- : `${base}?redirect=${encodeURIComponent(redirect)}`
+ const redirectTo
+ = redirect === '/dashboard'
+ ? base
+ : `${base}?redirect=${encodeURIComponent(redirect)}`
// Survives the full-page redirect to Google and back (detectSessionInUrl can strip ?code= before we read it).
sessionStorage.setItem(OAUTH_PENDING_KEY, '1')
@@ -46,7 +45,6 @@ async function onGoogle() {
const { error } = await signInWithGoogle(redirectTo)
if (error)
throw error
- // Success: the browser is already navigating to Google; keep the spinner.
}
catch (e: unknown) {
sessionStorage.removeItem(OAUTH_PENDING_KEY)
@@ -77,15 +75,16 @@ function clearOauthReturn() {
isLoading.value = false
}
-// Returning from Google: detectSessionInUrl exchanges the ?code= asynchronously; hold the spinner,
-// then navigate once the session lands. Denied consent / provider errors come back as ?error=.
onMounted(() => {
const params = new URLSearchParams(window.location.search)
const pending = sessionStorage.getItem(OAUTH_PENDING_KEY) === '1'
if (params.has('error')) {
sessionStorage.removeItem(OAUTH_PENDING_KEY)
- logger.error('google auth error:', params.get('error_description') ?? params.get('error'))
+ logger.error(
+ 'google auth error:',
+ params.get('error_description') ?? params.get('error'),
+ )
showErrorToast('login.error')
return
}
@@ -105,63 +104,60 @@ onUnmounted(() => {
clearTimeout(oauthTimeout)
})
-watch(session, (next) => {
- if (next && isOauthReturn.value) {
- if (oauthTimeout)
- clearTimeout(oauthTimeout)
- sessionStorage.removeItem(OAUTH_PENDING_KEY)
- router.replace(getSafeRedirectPath(route.query.redirect))
- }
-}, { immediate: true })
+watch(
+ session,
+ (next) => {
+ if (next && isOauthReturn.value) {
+ if (oauthTimeout)
+ clearTimeout(oauthTimeout)
+ sessionStorage.removeItem(OAUTH_PENDING_KEY)
+ router.replace(getSafeRedirectPath(route.query.redirect))
+ }
+ },
+ { immediate: true },
+)
</script>
<template>
- <div class="mx-auto grid size-full h-dvh max-w-xl grid-rows-[auto_1fr_auto] px-2 py-3">
- <div class="flex items-center justify-end gap-3">
- <LocaleSwitcher />
- <ThemeSwitcher />
- <ThemePicker />
- <UTooltip text="GitHub">
- <UButton
- aria-label="GitHub"
- class="text-muted"
- color="neutral"
- icon="mdi:github"
- size="lg"
- square
- target="_blank"
- to="https://github.com/ilkome/finapp"
- variant="ghost"
- />
- </UTooltip>
+ <div
+ class="mx-auto grid size-full h-dvh max-w-xl grid-rows-[auto_1fr_auto] px-2 py-3"
+ >
+ <div class="flex items-center justify-end">
+ <div class="w-fit max-md:fixed max-md:top-5 max-md:right-5 max-md:z-30">
+ <LayoutHeaderMenu />
+ </div>
</div>
<div
- class="grid h-full items-center gap-8 overflow-hidden overflow-y-auto px-3 py-4"
+ class="grid h-full overflow-hidden overflow-y-auto px-3 py-4"
>
- <div class="flex flex-col items-center justify-center pb-10">
+ <div class="flex flex-col items-center justify-center">
<UiLogo size="lg" />
<div class="text-muted pt-1 text-sm">
- {{ t('login.description') }}
+ {{ t("login.description") }}
</div>
- <div class="grid min-w-[320px] items-center gap-3 py-14">
- <UButton
- block
- color="neutral"
- icon="mdi:google"
- :loading="isLoading"
- size="xl"
+ <div class="grid min-w-[320px] items-center gap-3 pt-22">
+ <button
+ class="shiny-pro"
+ :disabled="isLoading"
type="button"
- variant="subtle"
@click="onGoogle"
>
- {{ t('login.signInWithGoogle') }}
- </UButton>
+ <span>
+ <UIcon
+ :name="isLoading ? 'i-lucide-loader-circle' : 'mdi:google'"
+ class="size-5 shrink-0"
+ :class="{ 'animate-spin': isLoading }"
+ />
+ {{ t("login.signInWithGoogle") }}
+ </span>
+ </button>
<USeparator
:label="t('login.or')"
- class="!text-muted px-3 py-3"
+ :ui="{ label: 'text-muted' }"
+ class="p-3"
/>
<UiButtonAccent
@@ -171,17 +167,163 @@ watch(session, (next) => {
variant="ghost"
@click="openDemo"
>
- {{ t('login.openDemo') }}
+ {{ t("login.openDemo") }}
</UiButtonAccent>
</div>
</div>
</div>
- <div class="flex-center flex-col">
+ <div class="flex-co flex-center pl-2">
<AppCopyright />
- <div class="text-muted pt-4 text-xs">
- {{ t('app.version') }} {{ pkg.version }}
- </div>
</div>
</div>
</template>
+
+<style>
+@property --sp-angle {
+ syntax: '<angle>';
+ initial-value: 0deg;
+ inherits: false;
+}
+@property --sp-angle-offset {
+ syntax: '<angle>';
+ initial-value: 0deg;
+ inherits: false;
+}
+@property --sp-percent {
+ syntax: '<percentage>';
+ initial-value: 5%;
+ inherits: false;
+}
+@property --sp-shine {
+ syntax: '<color>';
+ initial-value: white;
+ inherits: false;
+}
+
+.shiny-pro {
+ --accent: var(--ui-primary, #146ef5);
+ --bg: #0a0a0a;
+ --animation: shiny-angle linear infinite;
+ --duration: 9s;
+ --shadow-size: 2px;
+ --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
+
+ position: relative;
+ isolation: isolate;
+ overflow: hidden;
+ width: 100%;
+ cursor: pointer;
+ padding: 1.05rem 2.5rem;
+ outline-offset: 4px;
+ border: 1px solid transparent;
+ border-radius: 9999px;
+ color: #fff;
+ font-family: inherit;
+ font-size: 1.0625rem;
+ font-weight: 500;
+ line-height: 1.2;
+ background:
+ linear-gradient(var(--bg), var(--bg)) padding-box,
+ conic-gradient(
+ from calc(var(--sp-angle) - var(--sp-angle-offset)),
+ transparent,
+ var(--accent) var(--sp-percent),
+ var(--sp-shine) calc(var(--sp-percent) * 2),
+ var(--accent) calc(var(--sp-percent) * 3),
+ transparent calc(var(--sp-percent) * 4)
+ )
+ border-box;
+ box-shadow: inset 0 0 0 1px #1a1818;
+ transition: var(--transition);
+ transition-property: --sp-angle-offset, --sp-percent, --sp-shine;
+}
+
+.shiny-pro span {
+ position: relative;
+ z-index: 1;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ gap: 0.625rem;
+}
+
+.shiny-pro::before,
+.shiny-pro::after {
+ content: '';
+ position: absolute;
+ inset-block-start: 50%;
+ inset-inline-start: 50%;
+ z-index: -1;
+ translate: -50% -50%;
+ pointer-events: none;
+}
+
+.shiny-pro:active {
+ translate: 0 1px;
+}
+
+/* dotted halo */
+.shiny-pro::before {
+ --size: calc(100% - var(--shadow-size) * 3);
+ --position: 2px;
+ --space: calc(var(--position) * 2);
+ width: var(--size);
+ height: var(--size);
+ background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0)
+ padding-box;
+ background-size: var(--space) var(--space);
+ background-repeat: space;
+ mask-image: conic-gradient(from calc(var(--sp-angle) + 45deg), black, transparent 10% 90%, black);
+ border-radius: inherit;
+ opacity: 0.4;
+}
+
+/* inner shimmer */
+.shiny-pro::after {
+ --animation: shiny-shimmer linear infinite;
+ width: 100%;
+ aspect-ratio: 1;
+ background: linear-gradient(-50deg, transparent, var(--accent), transparent);
+ mask-image: radial-gradient(circle at bottom, transparent 40%, black);
+ opacity: 0.6;
+}
+
+.shiny-pro,
+.shiny-pro::before,
+.shiny-pro::after {
+ animation:
+ var(--animation) var(--duration),
+ var(--animation) calc(var(--duration) / 0.4) reverse paused;
+ animation-composition: add;
+}
+
+.shiny-pro:is(:hover, :focus-visible) {
+ --sp-percent: 20%;
+ --sp-angle-offset: 95deg;
+ --sp-shine: color-mix(in srgb, var(--accent) 55%, white);
+}
+
+.shiny-pro:is(:hover, :focus-visible)::before {
+ --position: 0;
+}
+
+@keyframes shiny-angle {
+ to {
+ --sp-angle: 360deg;
+ }
+}
+@keyframes shiny-shimmer {
+ to {
+ rotate: 360deg;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .shiny-pro,
+ .shiny-pro::before,
+ .shiny-pro::after {
+ animation: none;
+ }
+}
+</style>
diff --git a/app/i18n/locales/en-US.js b/app/i18n/locales/en-US.js
index d7f20bcc..7f085e40 100644
--- a/app/i18n/locales/en-US.js
+++ b/app/i18n/locales/en-US.js
@@ -19,10 +19,6 @@ export default {
about: 'About',
desc: 'Finapp helps you to control personal finances easily and efficiently.',
loadError: 'Could not load your data. Check your connection and try again.',
- madeBy: {
- name: 'by Ilya Komichev',
- text: 'Made with',
- },
retry: 'Try again',
toggleSidebar: 'Toggle sidebar',
version: 'Version',
@@ -239,6 +235,10 @@ export default {
login: {
description: 'Powerful open-source finance application',
error: 'Login failed. Please try again.',
+ menu: {
+ documentation: 'Documentation',
+ title: 'Menu',
+ },
openDemo: 'Open Demo',
or: 'or',
signInWithGoogle: 'Sign in with Google',
@@ -408,6 +408,7 @@ export default {
color: 'Change theme color',
dark: 'Dark',
light: 'Light',
+ palette: 'Color palette',
picker: {
neutral: 'Background color',
primary: 'Primary color',
diff --git a/app/i18n/locales/ru-RU.js b/app/i18n/locales/ru-RU.js
index d174919e..b196f191 100644
--- a/app/i18n/locales/ru-RU.js
+++ b/app/i18n/locales/ru-RU.js
@@ -19,10 +19,6 @@ export default {
about: 'О приложении',
desc: 'Приложение для учета личных финансов',
loadError: 'Не удалось загрузить данные. Проверьте соединение и попробуйте снова.',
- madeBy: {
- name: 'Илья Комичев',
- text: 'Разработал',
- },
retry: 'Повторить',
toggleSidebar: 'Скрыть/показать боковую панель',
version: 'Версия',
@@ -239,6 +235,10 @@ export default {
login: {
description: 'Персональный финансовый ассистент',
error: 'Ошибка входа. Попробуйте ещё раз.',
+ menu: {
+ documentation: 'Документация',
+ title: 'Меню',
+ },
openDemo: 'Открыть демо',
or: 'или',
signInWithGoogle: 'Войти через Google',
@@ -408,6 +408,7 @@ export default {
color: 'Сменить цвет оформления',
dark: 'Темная',
light: 'Светлая',
+ palette: 'Цветовая палитра',
picker: {
neutral: 'Фоновый цвет',
primary: 'Основной цвет',