2023-12-25 17:21:39 +08:00
import { ContentContainer , Page } from "@/components/layouts/layouts" ;
2023-12-30 18:32:14 +08:00
import { Button } from "@/components/ui/button" ;
2023-12-25 17:21:39 +08:00
import { Footer } from "@/components/utils/Footer" ;
import { NavBar } from "@/components/utils/NavBar" ;
import { SEO } from "@/components/utils/SEO" ;
import { Config } from "@/data/config" ;
import { isEmptyString } from "@/lib/utils" ;
2023-12-29 20:07:19 +08:00
import { fontFangZhengXiaoBiaoSongCN , fontSourceSerifScreenCN } from "@/styles/font" ;
2023-12-25 17:21:39 +08:00
import Link from "next/link" ;
import { QRCodeSVG } from "qrcode.react" ;
import { FaCcPaypal } from "react-icons/fa" ;
import { GoHeartFill } from "react-icons/go" ;
2023-12-30 18:32:14 +08:00
import { SiAlipay , SiPatreon , SiWechat } from "react-icons/si" ;
2023-12-25 17:21:39 +08:00
export default function AboutPage() {
return (
< Page >
< SEO
title = { ` ${ Config . SiteTitle } - Sponsor Me ` }
description = {
"If you like my works, I would deeply appreciate your support as a patron. Your contribution not only fuels my creative journey but also allows me to delve deeper into my passion."
}
/ >
< ContentContainer >
2024-01-06 14:06:49 +08:00
< NavBar / >
2023-12-25 17:21:39 +08:00
< div className = "md:flex" >
< div className = "flex flex-col justify-center md:w-1/2" >
2023-12-29 20:28:13 +08:00
< h2
2024-01-06 20:53:18 +08:00
className = { ` my-5 flex justify-center text-2xl font-bold text-red-500 ${ fontFangZhengXiaoBiaoSongCN . className } ` }
2023-12-29 20:28:13 +08:00
>
2023-12-25 17:21:39 +08:00
< GoHeartFill className = "mx-2 my-auto" / >
{ "SPONSOR" }
< / h2 >
2023-12-29 20:07:19 +08:00
< p className = { ` ${ fontSourceSerifScreenCN . className } break-words text-lg ` } >
2023-12-25 17:21:39 +08:00
{
"If you like my works, I would deeply appreciate your support as a patron. Your contribution not only fuels my creative journey but also allows me to delve deeper into my passion. Your support plays a vital role in making this vision a reality. Thank you for considering becoming a patron and being an integral part of this work endeavor."
}
< br / >
< br / >
{ "Here are the ways you can become a patron. Thank you for your support!" }
< br / >
< br / >
{ ` Yours, ${ Config . AuthorName } ` }
< / p >
< / div >
< div className = "md:px-15 md:w-1/2" >
< div className = "mx-2 my-10 flex flex-col justify-around font-bold" >
2023-12-30 19:49:53 +08:00
{ ! isEmptyString ( Config . Sponsor ? . WechatPayQRCodeContent ) && (
2023-12-25 17:21:39 +08:00
< div className = "my-3 flex justify-between" >
< div className = "my-auto flex" >
2023-12-30 18:32:14 +08:00
< SiWechat className = "mx-3 my-auto text-4xl text-green-500" / >
2023-12-25 17:21:39 +08:00
< div className = "my-auto" >
< h3 className = "mx-auto text-sm" > { "WECHAT-PAY" } < / h3 >
< / div >
< / div >
< div className = "my-2 bg-white p-1" >
2023-12-30 19:49:53 +08:00
< QRCodeSVG width = { 120 } value = { Config . Sponsor ? . WechatPayQRCodeContent ! } / >
2023-12-25 17:21:39 +08:00
< / div >
< / div >
) }
< hr / >
2023-12-30 19:49:53 +08:00
{ ! isEmptyString ( Config . Sponsor ? . AlipayLink ) && (
2023-12-25 17:21:39 +08:00
< div className = "my-6 flex justify-between" >
< div className = "my-auto flex" >
2023-12-30 18:32:14 +08:00
< SiAlipay className = "mx-3 my-auto text-4xl text-blue-500" / >
2023-12-25 17:21:39 +08:00
< div className = "my-auto" >
< h3 className = "mx-auto text-sm" > { "ALIPAY" } < / h3 >
< / div >
< / div >
< div className = "my-2" >
2023-12-30 18:32:14 +08:00
< Button className = "my-auto" asChild >
2023-12-30 19:49:53 +08:00
< Link target = "_blank" href = { Config . Sponsor ? . AlipayLink ! } >
2023-12-30 18:32:14 +08:00
{ "DONATE" }
< / Link >
< / Button >
2023-12-25 17:21:39 +08:00
< / div >
< / div >
) }
< hr / >
2023-12-30 19:49:53 +08:00
{ ! isEmptyString ( Config . Sponsor ? . PaypalId ) && (
2023-12-25 17:21:39 +08:00
< div className = "my-6 flex justify-between" >
< div className = "my-auto flex" >
2023-12-30 18:32:14 +08:00
< FaCcPaypal className = "mx-3 my-auto text-4xl text-blue-600" / >
2023-12-25 17:21:39 +08:00
< div className = "my-auto" >
< h3 className = "mx-auto text-sm" > { "PAYPAL" } < / h3 >
< / div >
< / div >
< div className = "my-2" >
2023-12-30 18:32:14 +08:00
< Button className = "my-auto" asChild >
2023-12-30 19:49:53 +08:00
< Link target = "_blank" href = { ` https://paypal.me/ ${ Config . Sponsor ? . PaypalId } ` } >
2023-12-30 18:32:14 +08:00
{ "DONATE" }
< / Link >
< / Button >
2023-12-25 17:21:39 +08:00
< / div >
< / div >
) }
2023-12-30 18:32:14 +08:00
< hr / >
2023-12-30 19:49:53 +08:00
{ ! isEmptyString ( Config . Sponsor ? . PatreonId ) && (
2023-12-30 18:32:14 +08:00
< div className = "my-6 flex justify-between" >
< div className = "my-auto flex" >
< SiPatreon className = "mx-3 my-auto text-4xl text-gray-500" / >
< div className = "my-auto" >
< h3 className = "mx-auto text-sm" > { "PATREON" } < / h3 >
< / div >
< / div >
< div className = "my-2" >
< Button className = "my-auto" asChild >
2023-12-30 19:49:53 +08:00
< Link target = "_blank" href = { ` https://patreon.com/ ${ Config . Sponsor ? . PatreonId } ` } >
2023-12-30 18:32:14 +08:00
{ "DONATE" }
< / Link >
< / Button >
< / div >
< / div >
) }
< hr / >
2023-12-25 17:21:39 +08:00
< / div >
< / div >
< / div >
< / ContentContainer >
< Footer / >
< / Page >
) ;
}