import { useState } from 'react'; import { Card, Row, Col, Typography, Image, Divider, Modal, Button } from 'antd'; import { HeartOutlined, CheckCircleOutlined, FileTextOutlined, RocketOutlined, MessageOutlined, StarOutlined } from '@ant-design/icons'; const { Title, Paragraph, Text } = Typography; interface SponsorOption { amount: number | string; label: string; image: string; description: string; } const sponsorOptions: SponsorOption[] = [ { amount: 5, label: '🌶️ 一包辣条', image: '/5.png', description: '¥5' }, { amount: 10, label: '🍱 一顿拼好饭', image: '/10.png', description: '¥10' }, { amount: 20, label: '☕ 一杯咖啡', image: '/20.png', description: '¥20' }, { amount: 50, label: '🍖 一次烧烤', image: '/50.png', description: '¥50' }, { amount: 99, label: '🍲 一顿海底捞', image: '/99.png', description: '¥99' }, ]; const benefits = [ { icon: , title: '优先需求响应', description: '您的功能需求和问题反馈将获得优先处理' }, { icon: , title: 'Windows一键启动', description: '获取免安装EXE程序,双击即可使用' }, { icon: , title: '专属技术支持', description: '加入赞助者群,获得远程协助和配置指导' } ]; export default function Sponsor() { const [modalVisible, setModalVisible] = useState(false); const [selectedOption, setSelectedOption] = useState(null); const handleCardClick = (option: SponsorOption) => { setSelectedOption(option); setModalVisible(true); }; return (
{/* 头部标题区域 */}
赞助 MuMuAINovel SUPPORT AI NOVEL CREATION
📚 MuMuAINovel - 基于 AI 的智能小说创作助手 支持多AI模型、智能向导、角色管理、章节编辑等强大功能
{/* 赞助专属权益 */}
<CheckCircleOutlined style={{ color: 'var(--color-success)', marginRight: '8px' }} /> 赞助专属权益 {benefits.map((benefit, index) => (
{benefit.icon}
{benefit.title} {benefit.description}
))}
{/* 选择金额 */}
<HeartOutlined style={{ color: '#f5222d', marginRight: '8px' }} /> 选择金额 {sponsorOptions.map((option, index) => ( handleCardClick(option)} style={{ textAlign: 'center', borderRadius: '10px', boxShadow: 'var(--shadow-card)', cursor: 'pointer', transition: 'all 0.3s', border: '2px solid var(--color-border)' }} styles={{ body: { padding: 'clamp(16px, 3vh, 20px) clamp(10px, 2vw, 12px)' } }} onMouseEnter={(e) => { e.currentTarget.style.transform = 'translateY(-8px)'; e.currentTarget.style.boxShadow = 'var(--shadow-elevated)'; e.currentTarget.style.borderColor = 'var(--color-primary)'; }} onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)'; e.currentTarget.style.boxShadow = 'var(--shadow-card)'; e.currentTarget.style.borderColor = 'var(--color-border)'; }} > {option.description} {option.label} ))}
{/* 感谢文案 */}
💖 感谢您对 MuMuAINovel 项目的支持 您的赞助将帮助我们持续改进产品,提供更好的AI小说创作体验
{/* 二维码弹窗 */} {selectedOption?.description} {selectedOption?.label} 请使用微信扫码支付
} open={modalVisible} onCancel={() => setModalVisible(false)} footer={[ ]} width={400} centered >
{`${selectedOption?.description}赞助码`} 扫描二维码完成支付 支付后可添加微信/QQ联系我们获取权益
); }