"use client"; import { useState, useRef } from "react"; import { ArrowRight, Plus, Table, AlignHorizontalSpaceAround } from "lucide-react"; import "./style/home-page2.css"; import { useRouter } from "next/navigation"; import { VideoScreenLayout } from '@/components/video-screen-layout'; import { VideoGridLayout } from '@/components/video-grid-layout'; import LiquidGlass from '@/plugins/liquid-glass'; export function HomePage2() { const router = useRouter(); const [activeTool, setActiveTool] = useState("stretch"); const containerRef = useRef(null); // 示例视频数据 const videos = [ { id: '1', url: 'https://cdn.qikongjian.com/videos/1750385931_99a8fb42-af89-4ae9-841a-a49869f026bd_text_to_video_0.mp4', title: '视频标题 1' }, { id: '2', url: 'https://cdn.qikongjian.com/videos/1750389908_37d4fffa-8516-43a3-a423-fc0274f40e8a_text_to_video_0.mp4', title: '视频标题 2' }, { id: '3', url: 'https://cdn.qikongjian.com/videos/1750384661_d8e30b79-828e-48cd-9025-ab62a996717c_text_to_video_0.mp4', title: '视频标题 3' }, { id: '4', url: 'https://cdn.qikongjian.com/videos/1750320040_4b47996e-7c70-490e-8433-80c7df990fdd_text_to_video_0.mp4', title: '视频标题 4' }, ]; // 处理编辑视频 const handleEdit = (id: string) => { console.log('Edit video:', id); // TODO: 实现编辑功能 }; // 处理删除视频 const handleDelete = (id: string) => { console.log('Delete video:', id); // TODO: 实现删除功能 }; return (
{/* 工具栏-列表形式切换 */}