Skip to content

Commit 3681252

Browse files
committed
feat: add sponsor section for coffee donation
- Add sponsor section to README.md and README_CN.md - Add sponsor module to website Community component - Add i18n support for sponsor text (EN/CN) - Add WeChat and Alipay QR code placeholders
1 parent ddde33f commit 3681252

6 files changed

Lines changed: 54 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,15 @@ Thanks to [linux.do](https://linux.do/) — a vibrant Chinese tech community whe
314314
<img src="assets/微信群.jpg" width="200" alt="微信群">
315315
</p>
316316

317+
## ☕ Support the Project
318+
319+
If you find ReadAny helpful, consider buying me a coffee to support ongoing development!
320+
321+
<p align="center">
322+
<img src="assets/微信赞赏码.jpg" width="200" alt="微信赞赏码">
323+
<img src="assets/支付宝收款码.jpg" width="200" alt="支付宝收款码">
324+
</p>
325+
317326
---
318327

319328
## Star History

README_CN.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,15 @@ pnpm tauri build
314314
<img src="assets/微信群.jpg" width="200" alt="微信群">
315315
</p>
316316

317+
## ☕ 请作者喝杯咖啡
318+
319+
如果你觉得 ReadAny 对你有帮助,欢迎请我喝杯咖啡,支持项目的持续开发!
320+
321+
<p align="center">
322+
<img src="assets/微信赞赏码.jpg" width="200" alt="微信赞赏码">
323+
<img src="assets/支付宝收款码.jpg" width="200" alt="支付宝收款码">
324+
</p>
325+
317326
---
318327

319328
## Star 历史

assets/微信赞赏码.jpg

69.5 KB
Loading

assets/支付宝收款码.jpg

164 KB
Loading

website/src/components/Community.astro

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ const qrCodes = [
2828
image: "/ReadAny/images/微信群.jpg",
2929
},
3030
];
31+
32+
const sponsorQrCodes = [
33+
{
34+
name: t("community.sponsor.wechat"),
35+
image: "/ReadAny/images/微信赞赏码.jpg",
36+
},
37+
{
38+
name: t("community.sponsor.alipay"),
39+
image: "/ReadAny/images/支付宝收款码.jpg",
40+
},
41+
];
3142
---
3243

3344
<section id="community" class="py-32 border-t border-border/50">
@@ -83,5 +94,22 @@ const qrCodes = [
8394
{t('footer.github')}
8495
</a>
8596
</div>
97+
98+
<div class="mt-16 pt-12 border-t border-border/50">
99+
<h3 class="text-lg font-semibold mb-2">{t('community.sponsor.title')}</h3>
100+
<p class="text-sm text-muted-foreground mb-6">{t('community.sponsor.subtitle')}</p>
101+
<div class="flex gap-8">
102+
{sponsorQrCodes.map((qr) => (
103+
<div class="text-center">
104+
<img
105+
src={qr.image}
106+
alt={qr.name}
107+
class="w-40 h-40 rounded-lg border border-border/50 shadow-md"
108+
/>
109+
<p class="mt-3 text-sm text-muted-foreground">{qr.name}</p>
110+
</div>
111+
))}
112+
</div>
113+
</div>
86114
</div>
87115
</section>

website/src/i18n/ui.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export const ui = {
6464
"community.xiaohongshu": "小红书群",
6565
"community.wechat": "微信群",
6666
"community.coming": "Coming soon",
67+
"community.sponsor.title": "☕ Support the Project",
68+
"community.sponsor.subtitle": "If you find ReadAny helpful, consider buying me a coffee!",
69+
"community.sponsor.wechat": "WeChat",
70+
"community.sponsor.alipay": "Alipay",
6771
"footer.github": "Star on GitHub",
6872
"footer.copyright": "© 2025 ReadAny. GPL-3.0 License.",
6973

@@ -199,6 +203,10 @@ export const ui = {
199203
"community.xiaohongshu": "小红书群",
200204
"community.wechat": "微信群",
201205
"community.coming": "即将上线",
206+
"community.sponsor.title": "☕ 请作者喝杯咖啡",
207+
"community.sponsor.subtitle": "如果你觉得 ReadAny 对你有帮助,欢迎支持项目的持续开发!",
208+
"community.sponsor.wechat": "微信赞赏",
209+
"community.sponsor.alipay": "支付宝",
202210
"footer.github": "Star on GitHub",
203211
"footer.copyright": "© 2025 ReadAny. GPL-3.0 许可证。",
204212

0 commit comments

Comments
 (0)