diff --git a/components/FamousTemplate.tsx b/components/FamousTemplate.tsx index b96e2c8..961e69a 100644 --- a/components/FamousTemplate.tsx +++ b/components/FamousTemplate.tsx @@ -35,7 +35,7 @@ const FamousTemplate: React.FC = () => { if (activeTab === "all") return true const categories = (t.category || "").split(",").map((s) => s.trim().toLowerCase()) return categories.includes(activeTab) - }) + }).slice(0, 10) const topTemplates = filteredTemplates diff --git a/components/layout/type.ts b/components/layout/type.ts index 3678316..e92f481 100644 --- a/components/layout/type.ts +++ b/components/layout/type.ts @@ -15,9 +15,9 @@ export const navigationItems: Navigations[] = [ title: 'Main', items: [ { name: 'Home', href: '/home', icon: Home }, + { name: 'Create', href: '/create', icon: Plus }, { name: 'My Portfolio', href: '/movies', icon: BookHeart }, { name: 'Share', href: '/share', icon: Gift }, - { name: 'Create', href: '/create', icon: Plus }, ], } ]; \ No newline at end of file diff --git a/components/pages/create-to-video2.tsx b/components/pages/create-to-video2.tsx index 65ff45c..003a9ad 100644 --- a/components/pages/create-to-video2.tsx +++ b/components/pages/create-to-video2.tsx @@ -473,9 +473,9 @@ export default function CreateToVideo2() { {/* 视频工具组件 - 使用独立组件 */} - {!isLoading && + {/* {!isLoading && - } + } */} {/* 分享弹框 */} {selectedProject && ( diff --git a/components/pages/create-video/CreateVideo.tsx b/components/pages/create-video/CreateVideo.tsx index 41819d7..a6b3d05 100644 --- a/components/pages/create-video/CreateVideo.tsx +++ b/components/pages/create-video/CreateVideo.tsx @@ -1,6 +1,7 @@ "use client"; import { VideoCreationForm } from './CreateInput'; +import FamousTemplate from '@/components/FamousTemplate'; export default function CreateVideo() { return ( @@ -12,6 +13,7 @@ export default function CreateVideo() { + ); }