Skip to content

Commit 43dc3f1

Browse files
NeoNeo
authored andcommitted
删除PPT模版菜单、页面和相关代码
- 删除模版页面 (app/templates/) - 删除模版组件 (TemplateSection, TemplateCard) - 删除 useTemplates hook - 删除我的收藏页面 (myCollection) - 从导航菜单中移除模版链接 - 从首页移除模版相关引用和按钮 - 从定价页面移除模版浏览按钮
1 parent ed82008 commit 43dc3f1

13 files changed

Lines changed: 1 addition & 1498 deletions

File tree

app/components/Footer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export function Footer() {
2626
const quickLinks = [
2727
{ name: t('navigation.home'), path: "/" },
2828
{ name: t('navigation.generate'), path: "/generate" },
29-
{ name: t('navigation.templates'), path: "/templates" },
3029
{ name: t('navigation.copywriting'), path: "/copywriting" },
3130
{ name: t('navigation.membership'), path: "/membership" },
3231
{ name: t('navigation.help'), path: "/help" }

app/components/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export function Header() {
7878
{ title: t('navigation.home'), href: "/" },
7979
{ title: t('navigation.generate'), href: "/generate" },
8080
{ title: t('navigation.pptEdit'), href: "/ppt-edit" },
81-
{ title: t('navigation.templates'), href: "/templates" },
8281
{ title: t('navigation.copywriting'), href: "/copywriting" },
8382
{ title: t('navigation.chat'), href: "/chat" }
8483
];

app/components/HomePageClient.tsx

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
TrendingUp,
2525
} from "lucide-react";
2626
import { PPTGenerationSection } from "@/components/PPTGenerationSection";
27-
import { TemplateSection } from "@/components/TemplateSection";
2827
import { useAuth } from "@/contexts/AuthContext";
2928
import { useLoginModal } from "@/contexts/LoginModalContext";
3029
import { useRouter } from "next/navigation";
@@ -49,9 +48,6 @@ export default function HomePageClient() {
4948
case "generate":
5049
router.push("/generate");
5150
break;
52-
case "templates":
53-
router.push("/templates");
54-
break;
5551
case "copywriting":
5652
router.push("/copywriting");
5753
break;
@@ -66,9 +62,6 @@ export default function HomePageClient() {
6662
case "generate":
6763
router.push("/generate");
6864
break;
69-
case "templates":
70-
router.push("/templates");
71-
break;
7265
case "copywriting":
7366
router.push("/copywriting");
7467
break;
@@ -87,15 +80,6 @@ export default function HomePageClient() {
8780
action: () => handleFeatureClick("generate"),
8881
stats: t("home.features.aiGeneration.stats"),
8982
},
90-
{
91-
title: t("home.features.templateLibrary.title"),
92-
description: t("home.features.templateLibrary.description"),
93-
icon: FileText,
94-
gradient: "from-blue-500 to-cyan-500",
95-
bgGradient: "from-blue-50 to-cyan-50",
96-
action: () => handleFeatureClick("templates"),
97-
stats: t("home.features.templateLibrary.stats"),
98-
},
9983
{
10084
title: t("home.features.smartDesign.title"),
10185
description: t("home.features.smartDesign.description"),
@@ -142,7 +126,6 @@ export default function HomePageClient() {
142126
];
143127

144128
const stats = [
145-
{ label: t("home.stats.templates"), value: "100,000+", icon: FileText, color: "text-blue-600", bgColor: "bg-blue-100" },
146129
{ label: t("home.stats.users"), value: "500,000+", icon: Users, color: "text-purple-600", bgColor: "bg-purple-100" },
147130
{ label: t("home.stats.generations"), value: "2,000,000+", icon: Sparkles, color: "text-pink-600", bgColor: "bg-pink-100" },
148131
{ label: t("home.stats.satisfaction"), value: "98%", icon: Star, color: "text-yellow-600", bgColor: "bg-yellow-100" },
@@ -200,7 +183,7 @@ export default function HomePageClient() {
200183
<p className="text-xl lg:text-2xl text-tech-600 mb-10 leading-relaxed max-w-4xl mx-auto">
201184
{t("home.hero.description")}
202185
<br />
203-
<span className="text-purple-600 font-medium">{t("home.hero.templateCount")}</span>{t("home.hero.oneClickGenerate")}{t("home.hero.makePresentation")}
186+
{t("home.hero.oneClickGenerate")}{t("home.hero.makePresentation")}
204187
</p>
205188

206189
<div className="flex flex-col sm:flex-row gap-6 justify-center mb-12">
@@ -215,15 +198,6 @@ export default function HomePageClient() {
215198
</span>
216199
<div className="absolute inset-0 bg-gradient-to-r from-purple-600 to-pink-600 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
217200
</Button>
218-
<Button
219-
variant="outline"
220-
size="lg"
221-
className="border-2 border-purple-200 text-purple-600 hover:bg-purple-50 hover:border-purple-300 text-lg px-10 py-6 shadow-md hover:shadow-lg transition-all duration-300 group"
222-
onClick={() => handleFeatureClick("templates")}
223-
>
224-
<Play className="w-5 h-5 mr-3 group-hover:scale-110 transition-transform" />
225-
{t("home.cta.viewTemplates")}
226-
</Button>
227201
</div>
228202

229203
{/* 快速统计 */}
@@ -425,14 +399,6 @@ export default function HomePageClient() {
425399
<ArrowRight className="w-5 h-5 ml-3 group-hover:translate-x-1 transition-transform" />
426400
</span>
427401
</Button>
428-
<Button
429-
variant="outline"
430-
size="lg"
431-
className="border-2 border-white/30 text-white hover:bg-white/10 text-lg px-10 py-6 backdrop-blur-sm transition-all duration-300"
432-
onClick={() => handleFeatureClick("templates")}
433-
>
434-
{t("home.cta.browseTemplates")}
435-
</Button>
436402
</div>
437403

438404
{/* 底部统计 */}

app/components/Navigation.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ const navigationItems = [
2020
href: "/ppt-edit",
2121
description: "专业PPT在线编辑器"
2222
},
23-
{
24-
title: "模板库",
25-
href: "/templates",
26-
description: "海量精美PPT模板资源"
27-
},
2823
{
2924
title: "文案生成",
3025
href: "/copywriting",

app/components/Sidebar.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ export function Sidebar({ activeItem = "ppt-generation", onItemClick }: SidebarP
2525
gradient: true,
2626
description: "AI智能生成PPT"
2727
},
28-
{
29-
id: "templates",
30-
label: "模板库",
31-
icon: FileText,
32-
description: "海量精美模板"
33-
},
3428
{
3529
id: "trash",
3630
label: "回收站",

app/components/TemplateCard.tsx

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)