diff --git a/data/config.ts b/data/config.ts index e3f1873..5b530b9 100644 --- a/data/config.ts +++ b/data/config.ts @@ -52,6 +52,8 @@ export const Config: TConfig = { alipay: "https://qr.alipay.com/xxxx", // Your Paypal Account Link. paypal: "https://paypal.me/xxxx", + // Your Patreon user Id. + patreon: "xxxx", }, // Website establishment year. diff --git a/pages/sponsor.tsx b/pages/sponsor.tsx index db4a26a..83a52a5 100644 --- a/pages/sponsor.tsx +++ b/pages/sponsor.tsx @@ -1,4 +1,5 @@ import { ContentContainer, Page } from "@/components/layouts/layouts"; +import { Button } from "@/components/ui/button"; import { Footer } from "@/components/utils/Footer"; import { NavBar } from "@/components/utils/NavBar"; import { SEO } from "@/components/utils/SEO"; @@ -9,7 +10,7 @@ import Link from "next/link"; import { QRCodeSVG } from "qrcode.react"; import { FaCcPaypal } from "react-icons/fa"; import { GoHeartFill } from "react-icons/go"; -import { SiAlipay, SiWechat } from "react-icons/si"; +import { SiAlipay, SiPatreon, SiWechat } from "react-icons/si"; export default function AboutPage() { return ( @@ -47,7 +48,7 @@ export default function AboutPage() { {!isEmptyString(Config.SponsorLink?.wechatPay) && (
- +

{"WECHAT-PAY"}

@@ -61,15 +62,17 @@ export default function AboutPage() { {!isEmptyString(Config.SponsorLink?.alipay) && (
- +

{"ALIPAY"}

- - {"DONATE"} - +
)} @@ -77,18 +80,39 @@ export default function AboutPage() { {!isEmptyString(Config.SponsorLink?.paypal) && (
- +

{"PAYPAL"}

- - {"DONATE"} - +
)} +
+ {!isEmptyString(Config.SponsorLink?.patreon) && ( +
+
+ +
+

{"PATREON"}

+
+
+
+ +
+
+ )} +
diff --git a/types/config.type.ts b/types/config.type.ts index 483451f..465eef4 100644 --- a/types/config.type.ts +++ b/types/config.type.ts @@ -36,6 +36,7 @@ export type TConfig = { wechatPay?: string; alipay?: string; paypal?: string; + patreon?: string; }; YearStart: number;