From 3d9c37643d0a9692b286435be3c84c1e5c90c014 Mon Sep 17 00:00:00 2001 From: mannes Date: Thu, 24 Sep 2026 10:14:48 +0200 Subject: [PATCH] Add a Ko-fi link to the footer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A rotating joke per page load (drill bit · cut-off wheel · sanding drum · safety glasses), with a plain 'Support libreble on Ko-fi' title and aria-label so the destination is clear. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/AppFooter.tsx | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/AppFooter.tsx b/src/AppFooter.tsx index 18f12f5..0fc225c 100644 --- a/src/AppFooter.tsx +++ b/src/AppFooter.tsx @@ -4,6 +4,16 @@ const RELEASE = /^v\d+\.\d+\.\d+$/.test(__APP_VERSION__) ? `${REPO}/releases/tag/${__APP_VERSION__}` : null; +/** The Ko-fi link wears a different joke each page load; its title/aria-label says what it is. */ +const KOFI_JOKES = [ + 'Buy me a drill bit', + 'Buy me a cut-off wheel', + 'Buy me a sanding drum', + 'Buy me safety glasses', +]; +const KOFI_JOKE = KOFI_JOKES[Math.floor(Math.random() * KOFI_JOKES.length)]; +const KOFI_TITLE = 'Support libreble on Ko-fi'; + export default function AppFooter() { return (