misc: tweak settings and add obnoxious donation prompt

This commit is contained in:
James Xylight committed 2025-02-12 17:11:43 -08:00
1 parent e9adaf991b
commit 2b08d0dd3f
4 files changed
+33 -2

No files matched your search

+3
View File
@@ -867,6 +867,9 @@
},
"account": {
"title": "Account"
},
"donate": {
"description": "This app is open-source, and I've put my best effort into developing and maintaining it. If you'd like to support ongoing development, you can donate, or just recommend this to others!"
}
},
"error": {
+28
View File
@@ -38,6 +38,7 @@
Star,
Clock,
ArrowTrendingDown,
Heart,
} from 'svelte-hero-icons'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { removalTemplate } from '$lib/components/lemmy/moderation/moderation.js'
@@ -53,6 +54,7 @@
import { profile } from '$lib/auth.svelte'
import AccountPage from '../profile/(local_user)/settings/+page.svelte'
import Option from 'mono-svelte/forms/select/Option.svelte'
import { env } from '$env/dynamic/public'
let importing = $state(false)
let importText = $state('')
@@ -216,6 +218,32 @@
</Section>
{/if}
<Section id="app" title={$t('settings.app.title')}>
{#if env.PUBLIC_XYLIGHT_MODE}
<Setting class="">
{#snippet title()}
<span class="dark:text-pink-400 text-pink-600 font-medium">
{$t('nav.menu.donate')}
</span>
{/snippet}
{#snippet description()}
<p class="max-w-xl">
{$t('settings.donate.description')}
</p>
{/snippet}
<Button
color="primary"
class="dark:bg-pink-400 bg-pink-600"
href="https://buymeacoffee.com/xylight"
target="_blank"
rounding="xl"
>
{#snippet prefix()}
<Icon src={Heart} size="16" micro />
{/snippet}
{$t('nav.menu.donate')}
</Button>
</Setting>
{/if}
<div class="flex flex-col gap-2">
<Setting>
{#snippet title()}
+1 -1
View File
@@ -74,7 +74,7 @@
>
<h1 class="font-medium text-base">{@render title?.()}</h1>
{#if description}
<p class="text-slate-800 dark:text-zinc-200 text-sm">
<p class="text-slate-600 dark:text-zinc-400 text-sm">
{@render description?.()}
</p>
{/if}
+1 -1
View File
@@ -71,7 +71,7 @@
>
<h1 class="font-medium text-base">{title}</h1>
{#if description}
<p class="text-slate-800 dark:text-zinc-200 text-sm">
<p class="text-slate-600 dark:text-zinc-400 text-sm">
{description}
</p>
{/if}