From ef311ca03d4623078abd80e732c53a607ea54a18 Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Sat, 7 Nov 2026 12:00:41 -0600 Subject: [PATCH] feat(web): add Ko-fi support links Link https://ko-fi.com/osbytes from the header, footer, landing page, About page and post-create screen, with translations in every locale. Also add a README badge and Support section, and a FUNDING.yml for GitHub's Sponsor button. --- .changeset/add-kofi-link.md | 6 ++++++ .github/FUNDING.yml | 1 + README.md | 7 ++++++ packages/core/src/i18n/locales/de.ts | 6 ++++++ packages/core/src/i18n/locales/en.ts | 6 ++++++ packages/core/src/i18n/locales/es.ts | 6 ++++++ packages/core/src/i18n/locales/fr.ts | 6 ++++++ packages/core/src/i18n/locales/zh.ts | 5 +++++ packages/core/src/i18n/types.ts | 5 +++++ packages/web/src/components/layout.tsx | 26 +++++++++++++++++++++- packages/web/src/config.ts | 1 + packages/web/src/pages/About.tsx | 19 ++++++++++++++-- packages/web/src/pages/Create.tsx | 30 ++++++++++++++++++-------- packages/web/src/pages/Landing.tsx | 6 ++++++ 14 files changed, 118 insertions(+), 12 deletions(-) create mode 100644 .changeset/add-kofi-link.md create mode 100644 .github/FUNDING.yml diff --git a/.changeset/add-kofi-link.md b/.changeset/add-kofi-link.md new file mode 100644 index 0000000..95b0daa --- /dev/null +++ b/.changeset/add-kofi-link.md @@ -0,0 +1,6 @@ +--- +'@crypt.fyi/web': patch +'@crypt.fyi/core': patch +--- + +Add Ko-fi support links to the web app header, footer, landing page, About page and post-create screen, with translations for the new copy. diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e3044fe --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +ko_fi: osbytes diff --git a/README.md b/README.md index 9652ef7..2a8d51b 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,9 @@ i18n + + Support on Ko-fi +

## Features @@ -204,3 +207,7 @@ Publishable packages: `@crypt.fyi/core` and `@crypt.fyi/cli` (npm), plus the Chr ## Contributing Contributions are welcome! Please feel free to submit an [Issue](https://github.com/osbytes/crypt.fyi/issues) or [Pull Request](https://github.com/osbytes/crypt.fyi/pulls) on [GitHub](https://github.com/osbytes/crypt.fyi). + +## Support + +crypt.fyi is free to use. If it's useful to you, you can help fund hosting and development on [Ko-fi](https://ko-fi.com/osbytes). diff --git a/packages/core/src/i18n/locales/de.ts b/packages/core/src/i18n/locales/de.ts index 5c9cb89..454886a 100644 --- a/packages/core/src/i18n/locales/de.ts +++ b/packages/core/src/i18n/locales/de.ts @@ -7,6 +7,7 @@ export const de: TranslationKeys = { theme: { label: 'Design', system: 'System', light: 'Hell', dark: 'Dunkel' }, createSecret: 'Geheimnis erstellen', starOnGithub: 'Auf GitHub markieren', + supportOnKofi: 'Auf Ko-fi unterstützen', features: 'Funktionen', learnMore: 'Mehr erfahren', loading: 'Lädt...', @@ -87,6 +88,7 @@ export const de: TranslationKeys = { cli: 'CLI', chromeExtension: 'Chrome-Erweiterung', github: 'GitHub', + kofi: 'Ko-fi', }, steps: { encrypt: { @@ -339,6 +341,10 @@ export const de: TranslationKeys = { description: 'crypt.fyi ist Open Source und prüfbar. Sie können die Implementierung einsehen, selbst hosten oder mitwirken auf', }, + support: { + description: + 'crypt.fyi ist kostenlos nutzbar. Wenn es Ihnen nützt, können Sie Hosting und Entwicklung unterstützen auf', + }, technical: { prompt: 'Mehr technische Details?', specLink: 'Zur Protokollspezifikation', diff --git a/packages/core/src/i18n/locales/en.ts b/packages/core/src/i18n/locales/en.ts index cce091f..0c5b7f1 100644 --- a/packages/core/src/i18n/locales/en.ts +++ b/packages/core/src/i18n/locales/en.ts @@ -7,6 +7,7 @@ export const en: TranslationKeys = { theme: { label: 'Theme', system: 'System', light: 'Light', dark: 'Dark' }, createSecret: 'Create Secret', starOnGithub: 'Star on GitHub', + supportOnKofi: 'Support on Ko-fi', features: 'Features', learnMore: 'Learn More', loading: 'Loading...', @@ -87,6 +88,7 @@ export const en: TranslationKeys = { cli: 'CLI', chromeExtension: 'Chrome Extension', github: 'GitHub', + kofi: 'Ko-fi', }, steps: { encrypt: { @@ -332,6 +334,10 @@ export const en: TranslationKeys = { description: 'crypt.fyi is open source and auditable. You can review the implementation, self-host it, or contribute on', }, + support: { + description: + 'crypt.fyi is free to use. If it is useful to you, you can help fund hosting and development on', + }, technical: { prompt: 'Want to get more technical?', specLink: 'Read the protocol specification', diff --git a/packages/core/src/i18n/locales/es.ts b/packages/core/src/i18n/locales/es.ts index 0e8d285..f8b1ce1 100644 --- a/packages/core/src/i18n/locales/es.ts +++ b/packages/core/src/i18n/locales/es.ts @@ -7,6 +7,7 @@ export const es: TranslationKeys = { theme: { label: 'Tema', system: 'Sistema', light: 'Claro', dark: 'Oscuro' }, createSecret: 'Crear Secreto', starOnGithub: 'Estrella en GitHub', + supportOnKofi: 'Apóyanos en Ko-fi', features: 'Características', learnMore: 'Más Información', loading: 'Cargando...', @@ -88,6 +89,7 @@ export const es: TranslationKeys = { cli: 'CLI', chromeExtension: 'Extensión de Chrome', github: 'GitHub', + kofi: 'Ko-fi', }, steps: { encrypt: { @@ -338,6 +340,10 @@ export const es: TranslationKeys = { description: 'crypt.fyi es de código abierto y auditable. Puedes revisar la implementación, autoalojarlo o contribuir en', }, + support: { + description: + 'crypt.fyi es de uso gratuito. Si te resulta útil, puedes ayudar a financiar el alojamiento y el desarrollo en', + }, technical: { prompt: '¿Quieres ir más a fondo?', specLink: 'Lee la especificación del protocolo', diff --git a/packages/core/src/i18n/locales/fr.ts b/packages/core/src/i18n/locales/fr.ts index 3091dc9..e9c43c4 100644 --- a/packages/core/src/i18n/locales/fr.ts +++ b/packages/core/src/i18n/locales/fr.ts @@ -7,6 +7,7 @@ export const fr: TranslationKeys = { theme: { label: 'Thème', system: 'Système', light: 'Clair', dark: 'Sombre' }, createSecret: 'Créer un Secret', starOnGithub: 'Star sur GitHub', + supportOnKofi: 'Soutenir sur Ko-fi', features: 'Fonctionnalités', learnMore: 'En savoir plus', loading: 'Chargement...', @@ -88,6 +89,7 @@ export const fr: TranslationKeys = { cli: 'CLI', chromeExtension: 'Extension Chrome', github: 'GitHub', + kofi: 'Ko-fi', }, steps: { encrypt: { @@ -338,6 +340,10 @@ export const fr: TranslationKeys = { description: "crypt.fyi est open source et auditable. Vous pouvez examiner l'implémentation, l'héberger vous-même ou contribuer sur", }, + support: { + description: + "crypt.fyi est gratuit. S'il vous est utile, vous pouvez aider à financer l'hébergement et le développement sur", + }, technical: { prompt: 'Envie d’aller plus loin techniquement ?', specLink: 'Lire la spécification du protocole', diff --git a/packages/core/src/i18n/locales/zh.ts b/packages/core/src/i18n/locales/zh.ts index 35af59c..d4a2b37 100644 --- a/packages/core/src/i18n/locales/zh.ts +++ b/packages/core/src/i18n/locales/zh.ts @@ -7,6 +7,7 @@ export const zh: TranslationKeys = { theme: { label: '主题', system: '跟随系统', light: '浅色', dark: '深色' }, createSecret: '创建密文', starOnGithub: '在 GitHub 上标星', + supportOnKofi: '在 Ko-fi 上支持我们', features: '功能特点', learnMore: '了解更多', loading: '加载中...', @@ -85,6 +86,7 @@ export const zh: TranslationKeys = { cli: 'CLI', chromeExtension: 'Chrome 扩展', github: 'GitHub', + kofi: 'Ko-fi', }, steps: { encrypt: { @@ -320,6 +322,9 @@ export const zh: TranslationKeys = { openSource: { description: 'crypt.fyi 开源且可审计。你可以审查实现、自行托管,或在此贡献:', }, + support: { + description: 'crypt.fyi 可免费使用。如果它对你有帮助,你可以在此资助托管和开发:', + }, technical: { prompt: '想了解更多技术细节?', specLink: '阅读协议规范', diff --git a/packages/core/src/i18n/types.ts b/packages/core/src/i18n/types.ts index e514581..c02d49f 100644 --- a/packages/core/src/i18n/types.ts +++ b/packages/core/src/i18n/types.ts @@ -5,6 +5,7 @@ export interface TranslationKeys { theme: { label: string; system: string; light: string; dark: string }; createSecret: string; starOnGithub: string; + supportOnKofi: string; features: string; learnMore: string; loading: string; @@ -79,6 +80,7 @@ export interface TranslationKeys { cli: string; chromeExtension: string; github: string; + kofi: string; }; steps: { encrypt: { @@ -304,6 +306,9 @@ export interface TranslationKeys { openSource: { description: string; }; + support: { + description: string; + }; technical: { prompt: string; specLink: string; diff --git a/packages/web/src/components/layout.tsx b/packages/web/src/components/layout.tsx index bcc4fb5..89f1dbf 100644 --- a/packages/web/src/components/layout.tsx +++ b/packages/web/src/components/layout.tsx @@ -1,4 +1,4 @@ -import { IconApi, IconBrandGithub, IconLanguage, IconPlus } from '@tabler/icons-react'; +import { IconApi, IconBrandGithub, IconCoffee, IconLanguage, IconPlus } from '@tabler/icons-react'; import { Button } from './ui/button'; import { Logo } from './Logo'; import { Link, useRouterState } from '@tanstack/react-router'; @@ -80,6 +80,22 @@ export function Layout({ children }: LayoutProps) { +