From ee1babc07d0c8ea47954f3ed1be0e36ce65af3cb Mon Sep 17 00:00:00 2001 From: afoim Date: Fri, 11 Jul 2025 03:03:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=B5=9E=E5=8A=A9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B9=B6=E9=9B=86=E6=88=90simple-icons?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加捐赠页面支持支付宝和微信支付,包含感谢信息和赞助者展示区 同时添加@iconify-json/simple-icons依赖以支持支付平台图标显示 --- astro.config.mjs | 1 + package.json | 1 + pnpm-lock.yaml | 10 + public/pay/alipay.svg | 867 +++++++++++++++++++++++++++ public/pay/wechat.svg | 1257 ++++++++++++++++++++++++++++++++++++++++ src/pages/donate.astro | 170 ++++++ 6 files changed, 2306 insertions(+) create mode 100644 public/pay/alipay.svg create mode 100644 public/pay/wechat.svg create mode 100644 src/pages/donate.astro diff --git a/astro.config.mjs b/astro.config.mjs index f3e7b3ea2..d2aab6c41 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -49,6 +49,7 @@ export default defineConfig({ "fa6-brands": ["*"], "fa6-regular": ["*"], "fa6-solid": ["*"], + "simple-icons": ["*"], }, }), svelte(), diff --git a/package.json b/package.json index cd0caccd3..7d65f43c3 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@iconify-json/fa6-regular": "^1.2.3", "@iconify-json/fa6-solid": "^1.2.3", "@iconify-json/material-symbols": "^1.2.20", + "@iconify-json/simple-icons": "^1.2.42", "@iconify/svelte": "^4.2.0", "@swup/astro": "^1.6.0", "@tailwindcss/typography": "^0.5.16", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8b29f060f..03e07fb52 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,6 +44,9 @@ importers: '@iconify-json/material-symbols': specifier: ^1.2.20 version: 1.2.20 + '@iconify-json/simple-icons': + specifier: ^1.2.42 + version: 1.2.42 '@iconify/svelte': specifier: ^4.2.0 version: 4.2.0(svelte@5.28.2) @@ -1057,6 +1060,9 @@ packages: '@iconify-json/material-symbols@1.2.20': resolution: {integrity: sha512-+KqOT+3fD+LC2FbWiV8gd4+JLMiVUtmqrjzpKN1ji7rfMQTwvYJ94RT0WQlmL+vfDNJ5MTRe3rBzzJyvIH/aSg==} + '@iconify-json/simple-icons@1.2.42': + resolution: {integrity: sha512-G/EED0hUV1wMNUsWaFdQYLibm6SO7rP2GZP1+CvhszB5WAFYYibD3zoWp3X96xSIWpYQFvccvE17ewpd0Q1hWQ==} + '@iconify/svelte@4.2.0': resolution: {integrity: sha512-fEl0T7SAPonK7xk6xUlRPDmFDZVDe2Z7ZstlqeDS/sS8ve2uyU+Qa8rTWbIqzZJlRvONkK5kVXiUf9nIc+6OOQ==} peerDependencies: @@ -6256,6 +6262,10 @@ snapshots: dependencies: '@iconify/types': 2.0.0 + '@iconify-json/simple-icons@1.2.42': + dependencies: + '@iconify/types': 2.0.0 + '@iconify/svelte@4.2.0(svelte@5.28.2)': dependencies: '@iconify/types': 2.0.0 diff --git a/public/pay/alipay.svg b/public/pay/alipay.svg new file mode 100644 index 000000000..fbeb73c8e --- /dev/null +++ b/public/pay/alipay.svg @@ -0,0 +1,867 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/pay/wechat.svg b/public/pay/wechat.svg new file mode 100644 index 000000000..8fb58d1a1 --- /dev/null +++ b/public/pay/wechat.svg @@ -0,0 +1,1257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/pages/donate.astro b/src/pages/donate.astro new file mode 100644 index 000000000..85c82c0e1 --- /dev/null +++ b/src/pages/donate.astro @@ -0,0 +1,170 @@ +--- +import MainGridLayout from "@layouts/MainGridLayout.astro"; +import { Icon } from "astro-icon/components"; +--- + + +
+
+
+ +
+

赞助支持

+
+ +
+

+ 如果您觉得我的内容对您有帮助,欢迎通过以下方式支持我的创作。您的每一份支持都是我持续创作的动力! +

+

+ 所有赞助将用于网站维护、服务器费用以及内容创作。 +

+
+ +
+ + + + + +
+ + +
+

其他支持方式

+
+
+
+ + 分享推荐 +
+

+ 将我的博客分享给更多朋友 +

+
+ +
+
+ + 留言互动 +
+

+ 在文章下方留下您的想法 +

+
+ +
+
+ + 关注订阅 +
+

+ 订阅RSS或关注社交媒体 +

+
+
+
+ + +
+
+ +

感谢您的支持

+

+ 每一份支持都让我更有动力创作更好的内容。无论金额大小,您的心意我都深深感激! +

+
+
+ + +
+

+ + 已赞助的小伙伴 +

+
+ + + + + +
+
+
+
+ + \ No newline at end of file