web: add a Ko-fi donation button

A small pill in the bottom right corner, in Ko-fi's own red rather than
the theme colors so it reads as what it is. It sits above the feedback
button where that one exists and takes its place where it does not; the
offset follows the instance rather than the dialog, so opening feedback
does not make it jump.

Unlike the feedback button this is not limited to the maintainer's own
instance - it ships in every build, the Docker image included. Since
that means self-hosters carry someone else's donation link, there is a
way out: VITE_DONATE_URL= (empty) drops the button, any other value
retargets it, and the Dockerfile passes it through as --build-arg
DONATE_URL. The "keep" sentinel there is not decoration - an unset and
an empty build arg are indistinguishable inside RUN, so without it
"not passed" would silently mean "remove".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5 committed 2026-09-11 16:12:58 +00:00
1 parent fa4daf7831
commit 6ebc3e22e0
5 files changed
+90 -1

No files matched your search

+41
View File
@@ -3739,6 +3739,47 @@
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
/* Spenden-Pille. Bewusst nicht in den Theme-Farben: sie soll auffallen, ohne
gross zu sein - Ko-fi-Rot, feste Hoehe, Text nur als Beiwerk zum Symbol. */
.ts-donate-fab {
position: fixed;
right: 1.25rem;
bottom: 5.5rem;
z-index: 500;
display: inline-flex;
align-items: center;
gap: 0.4rem;
height: 2.25rem;
padding: 0 0.85rem;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: #ff5e5b;
color: #fff;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.01em;
text-decoration: none;
white-space: nowrap;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
/* Ueber dem Feedback-Button (3rem hoch, bottom: 5.5rem) statt darauf. */
.ts-donate-fab-stacked {
bottom: 9.25rem;
}
.ts-donate-fab:hover {
background: #ff4b47;
transform: scale(1.06);
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.ts-donate-fab-icon {
font-size: 14px;
line-height: 1;
}
.ts-feedback-bubble {
position: relative;
max-width: 13rem;