Skip to content

Let's use AI to Earn!

11

daoyian340224ea933d
diff --git a/@types/resources.d.ts b/@types/resources.d.ts
index 230bd113..29908558 100644
--- a/@types/resources.d.ts
+++ b/@types/resources.d.ts
@@ -71,6 +71,41 @@ interface Resources {
"images": "图片",
"flashSale50": "限时5折",
"mostPopular": "最受欢迎",
+ "plans": {
+ "free": {
+ "name": "Free",
+ "credits": "最高60 积分",
+ "videos": "每月最高可生成60个视频",
+ "images": "每月最高可生成120张图片",
+ "button": "立即开始"
+ },
+ "plus": {
+ "name": "Plus",
+ "credits": "700积分",
+ "videos": "每月最高可生成700个视频",
+ "images": "每月最高可生成1400张图片",
+ "button": "立即购买"
+ }
+ },
+ "features": {
+ "textModeration": "文本内容安全审查",
+ "imageModeration": "图片内容安全审查",
+ "videoModeration": "视频内容安全审查",
+ "multiModel": "多模型一站式支持",
+ "textToVideo": "文字转视频",
+ "imageToVideo": "图像转视频",
+ "videoToVideo": "视频到视频",
+ "consistentCharacter": "一致的角色视频",
+ "aiAnimation": "AI动画生成",
+ "aiImage": "AI图像生成",
+ "voiceClone": "声音克隆",
+ "voiceSynthesis": "声音合成",
+ "fasterSpeed": "更快的生成速度",
+ "withWatermark": "含水印输出",
+ "noWatermark": "无水印输出",
+ "storage500M": "存储空间500M",
+ "storage5G": "存储空间5G"
+ },
"faq": {
"title": "常见问题",
"items": [
diff --git a/src/app/[lng]/page.tsx b/src/app/[lng]/page.tsx
index 3758c95f..ce468766 100644
--- a/src/app/[lng]/page.tsx
+++ b/src/app/[lng]/page.tsx
@@ -43,7 +43,7 @@ function ReleaseBanner() {
return (
<div className={styles.releaseBanner}>
<div className={styles.bannerContent}>
- <span className={styles.releaseTag}>{t('releaseBanner.tag')}</span>
+ {/* <span className={styles.releaseTag}>{t('releaseBanner.tag')}</span> */}
<span className={styles.releaseText}>{t('releaseBanner.text')}</span>
<svg className={styles.arrowIcon} width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="m6 12 4-4-4-4" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
@@ -960,7 +960,7 @@ function Footer() {
export default function Home() {
return (
<div className={styles.difyHome}>
- <ReleaseBanner />
+ {/* <ReleaseBanner /> */}
<Header />
<Hero />
<BrandBar />
diff --git a/src/app/[lng]/pricing/README.md b/src/app/[lng]/pricing/README.md
deleted file mode 100644
index 8fe186dc..00000000
--- a/src/app/[lng]/pricing/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# 定价页面 (Pricing Page)
-
-## 功能特性
-
-### 设计风格
-- 白底设计,蓝紫渐变主色调
-- 响应式布局,支持移动端和桌面端
-- 现代化的卡片式设计
-
-### 套餐内容
-
-#### Free 套餐
-- 最高60积分
-- 每月最高可生成60个视频
-- 每月最高可生成120张图片
-- 包含基础AI功能(文字转视频、图像转视频、视频到视频等)
-- 含水印输出
-- 存储空间500M
-
-#### Plus 套餐
-- 700积分
-- 每月最高可生成700个视频
-- 每月最高可生成1400张图片
-- 包含所有Free套餐功能
-- 额外功能:
- - 文本内容安全审查
- - 图片内容安全审查
- - 视频内容安全审查
- - 更快的生成速度
- - 无水印输出
- - 存储空间5G
-
-### 计费选项
-- 月付:$29 USD/月
-- 年付:$14.5 USD/月(限时5折优惠)
-
-### 交互功能
-- 月付/年付切换
-- 套餐对比
-- 一键购买/注册
-- 常见问题解答
-
-### 多语言支持
-- 中文 (zh-CN)
-- 英文 (en)
-
-## 文件结构
-```
-src/app/[lng]/pricing/
-├── page.tsx # 主页面组件
-├── pricing.module.scss # 样式文件
-└── README.md # 说明文档
-```
-
-## 路由
-- 中文:`/zh-CN/pricing`
-- 英文:`/en/pricing`
-
-## 技术栈
-- Next.js 14
-- React 18
-- TypeScript
-- SCSS
-- Ant Design
-- i18next
diff --git a/src/app/[lng]/pricing/page.tsx b/src/app/[lng]/pricing/page.tsx
index d6a1d00e..df0e3126 100644
--- a/src/app/[lng]/pricing/page.tsx
+++ b/src/app/[lng]/pricing/page.tsx
@@ -12,58 +12,58 @@ export default function PricingPage() {
const plans = [
{
- name: 'Free',
+ name: t('plans.free.name'),
price: 0,
originalPrice: 0,
- credits: '最高60 积分',
- videos: '每月最高可生成60个视频',
- images: '每月最高可生成120张图片',
+ credits: t('plans.free.credits'),
+ videos: t('plans.free.videos'),
+ images: t('plans.free.images'),
features: [
- { text: '文本内容安全审查', included: false },
- { text: '图片内容安全审查', included: false },
- { text: '视频内容安全审查', included: false },
- { text: '多模型一站式支持', included: true },
- { text: '文字转视频', included: true },
- { text: '图像转视频', included: true },
- { text: '视频到视频', included: true },
- { text: '一致的角色视频', included: true },
- { text: 'AI动画生成', included: true },
- { text: 'AI图像生成', included: true },
- { text: '声音克隆', included: true },
- { text: '声音合成', included: true },
- { text: '更快的生成速度', included: false },
- { text: '含水印输出', included: true },
- { text: '存储空间500M', included: true },
+ { text: t('features.textModeration'), included: false },
+ { text: t('features.imageModeration'), included: false },
+ { text: t('features.videoModeration'), included: false },
+ { text: t('features.multiModel'), included: true },
+ { text: t('features.textToVideo'), included: true },
+ { text: t('features.imageToVideo'), included: true },
+ { text: t('features.videoToVideo'), included: true },
+ { text: t('features.consistentCharacter'), included: true },
+ { text: t('features.aiAnimation'), included: true },
+ { text: t('features.aiImage'), included: true },
+ { text: t('features.voiceClone'), included: true },
+ { text: t('features.voiceSynthesis'), included: true },
+ { text: t('features.fasterSpeed'), included: false },
+ { text: t('features.withWatermark'), included: true },
+ { text: t('features.storage500M'), included: true },
],
- buttonText: '立即开始',
+ buttonText: t('plans.free.button'),
buttonType: 'default' as const,
popular: false,
},
{
- name: 'Plus',
+ name: t('plans.plus.name'),
price: billingCycle === 'yearly' ? 14.5 : 29,
originalPrice: billingCycle === 'yearly' ? 29 : 29,
- credits: '700积分',
- videos: '每月最高可生成700个视频',
- images: '每月最高可生成1400张图片',
+ credits: t('plans.plus.credits'),
+ videos: t('plans.plus.videos'),
+ images: t('plans.plus.images'),
features: [
- { text: '文本内容安全审查', included: true },
- { text: '图片内容安全审查', included: true },
- { text: '视频内容安全审查', included: true },
- { text: '多模型一站式支持', included: true },
- { text: '文字转视频', included: true },
- { text: '图像转视频', included: true },
- { text: '视频到视频', included: true },
- { text: '一致的角色视频', included: true },
- { text: 'AI动画生成', included: true },
- { text: 'AI图像生成', included: true },
- { text: '声音克隆', included: true },
- { text: '声音合成', included: true },
- { text: '更快的生成速度', included: true },
- { text: '无水印输出', included: true },
- { text: '存储空间5G', included: true },
+ { text: t('features.textModeration'), included: true },
+ { text: t('features.imageModeration'), included: true },
+ { text: t('features.videoModeration'), included: true },
+ { text: t('features.multiModel'), included: true },
+ { text: t('features.textToVideo'), included: true },
+ { text: t('features.imageToVideo'), included: true },
+ { text: t('features.videoToVideo'), included: true },
+ { text: t('features.consistentCharacter'), included: true },
+ { text: t('features.aiAnimation'), included: true },
+ { text: t('features.aiImage'), included: true },
+ { text: t('features.voiceClone'), included: true },
+ { text: t('features.voiceSynthesis'), included: true },
+ { text: t('features.fasterSpeed'), included: true },
+ { text: t('features.noWatermark'), included: true },
+ { text: t('features.storage5G'), included: true },
],
- buttonText: '立即购买',
+ buttonText: t('plans.plus.button'),
buttonType: 'primary' as const,
popular: true,
},
@@ -164,7 +164,7 @@ export default function PricingPage() {
size="large"
className={styles.ctaButton}
onClick={() => {
- if (plan.name === 'Free') {
+ if (plan.name === t('plans.free.name')) {
// 跳转到注册页面
window.location.href = '/vip';
} else {
diff --git a/src/app/[lng]/pricing/pricing.module.scss b/src/app/[lng]/pricing/pricing.module.scss
index 4e18ad92..70ec2268 100644
--- a/src/app/[lng]/pricing/pricing.module.scss
+++ b/src/app/[lng]/pricing/pricing.module.scss
@@ -1,6 +1,6 @@
.pricingPage {
min-height: 100vh;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ background: #ffffff;
padding: 40px 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@@ -14,13 +14,13 @@
.header {
text-align: center;
margin-bottom: 60px;
- color: white;
+ color: #333;
.title {
font-size: 3rem;
font-weight: 700;
margin-bottom: 16px;
- background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
@@ -28,7 +28,7 @@
.subtitle {
font-size: 1.25rem;
- opacity: 0.9;
+ color: #666;
max-width: 600px;
margin: 0 auto;
}
@@ -40,17 +40,16 @@
margin-bottom: 60px;
.toggleContainer {
- background: rgba(255, 255, 255, 0.1);
+ background: #f5f5f5;
border-radius: 50px;
padding: 4px;
display: flex;
- backdrop-filter: blur(10px);
- border: 1px solid rgba(255, 255, 255, 0.2);
+ border: 1px solid #e0e0e0;
.toggleButton {
background: transparent;
border: none;
- color: white;
+ color: #666;
padding: 12px 24px;
border-radius: 50px;
cursor: pointer;
@@ -63,13 +62,13 @@
gap: 8px;
&.active {
- background: white;
- color: #667eea;
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
+ background: #667eea;
+ color: white;
+ box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}
&:hover:not(.active) {
- background: rgba(255, 255, 255, 0.1);
+ background: #e8e8e8;
}
.saveBadge {
@@ -106,6 +105,17 @@
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}
+ // Free套餐特殊样式
+ &:not(.popular) {
+ border: 2px solid #e0e0e0;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
+
+ &:hover {
+ border-color: #667eea;
+ box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
+ }
+ }
+
&.popular {
border-color: #667eea;
transform: scale(1.05);
diff --git a/src/app/i18n/locales/en/pricing.json b/src/app/i18n/locales/en/pricing.json
index 01bd4a32..817c82b6 100644
--- a/src/app/i18n/locales/en/pricing.json
+++ b/src/app/i18n/locales/en/pricing.json
@@ -10,6 +10,41 @@
"images": "Images",
"flashSale50": "Flash Sale 50%",
"mostPopular": "Most Popular",
+ "plans": {
+ "free": {
+ "name": "Free",
+ "credits": "60 Credits",
+ "videos": "60 Videos/month",
+ "images": "120 Images/month",
+ "button": "Get Started"
+ },
+ "plus": {
+ "name": "Plus",
+ "credits": "700 Credits",
+ "videos": "700 Videos/month",
+ "images": "1400 Images/month",
+ "button": "Get Plus"
+ }
+ },
+ "features": {
+ "textModeration": "Text Moderation",
+ "imageModeration": "Image Moderation",
+ "videoModeration": "Video Moderation",
+ "multiModel": "Multi-Model Support",
+ "textToVideo": "Text to Video",
+ "imageToVideo": "Image to Video",
+ "videoToVideo": "Video to Video",
+ "consistentCharacter": "Consistent Character",
+ "aiAnimation": "AI Animation",
+ "aiImage": "AI Image",
+ "voiceClone": "Voice Clone",
+ "voiceSynthesis": "Voice Synthesis",
+ "fasterSpeed": "Faster Speed",
+ "withWatermark": "With Watermark",
+ "noWatermark": "No Watermark",
+ "storage500M": "500M Storage",
+ "storage5G": "5G Storage"
+ },
"faq": {
"title": "Frequently Asked Questions",
"items": [
diff --git a/src/app/i18n/locales/zh-CN/pricing.json b/src/app/i18n/locales/zh-CN/pricing.json
index 53d28e3a..22c12275 100644
--- a/src/app/i18n/locales/zh-CN/pricing.json
+++ b/src/app/i18n/locales/zh-CN/pricing.json
@@ -10,6 +10,41 @@
"images": "图片",
"flashSale50": "限时5折",
"mostPopular": "最受欢迎",
+ "plans": {
+ "free": {
+ "name": "Free",
+ "credits": "最高60 积分",
+ "videos": "每月最高可生成60个视频",
+ "images": "每月最高可生成120张图片",
+ "button": "立即开始"
+ },
+ "plus": {
+ "name": "Plus",
+ "credits": "700积分",
+ "videos": "每月最高可生成700个视频",
+ "images": "每月最高可生成1400张图片",
+ "button": "立即购买"
+ }
+ },
+ "features": {
+ "textModeration": "文本内容安全审查",
+ "imageModeration": "图片内容安全审查",
+ "videoModeration": "视频内容安全审查",
+ "multiModel": "多模型一站式支持",
+ "textToVideo": "文字转视频",
+ "imageToVideo": "图像转视频",
+ "videoToVideo": "视频到视频",
+ "consistentCharacter": "一致的角色视频",
+ "aiAnimation": "AI动画生成",
+ "aiImage": "AI图像生成",
+ "voiceClone": "声音克隆",
+ "voiceSynthesis": "声音合成",
+ "fasterSpeed": "更快的生成速度",
+ "withWatermark": "含水印输出",
+ "noWatermark": "无水印输出",
+ "storage500M": "存储空间500M",
+ "storage5G": "存储空间5G"
+ },
"faq": {
"title": "常见问题",
"items": [