From f99e0d80eb9d08eecd47baff08fbb8b64d57b951 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 8 Mar 2026 08:39:37 +0000 Subject: [PATCH] Add src/app/dashboard/page.tsx --- src/app/dashboard/page.tsx | 263 +++++++++++++++++++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 src/app/dashboard/page.tsx diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx new file mode 100644 index 0000000..07dd02d --- /dev/null +++ b/src/app/dashboard/page.tsx @@ -0,0 +1,263 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; +import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard'; +import FeatureBento from '@/components/sections/feature/FeatureBento'; +import FooterBaseCard from '@/components/sections/footer/FooterBaseCard'; +import { Video, Upload, Edit3, Trash2, Eye, Settings } from "lucide-react"; +import { useState } from "react"; + +interface DashboardVideo { + id: string; + title: string; + thumbnail: string; + duration: string; + uploadDate: string; + views: string; + status: 'published' | 'draft' | 'processing'; +} + +export default function Dashboard() { + const [videos, setVideos] = useState([ + { + id: '1', + title: 'Michelin-Star Pasta Carbonara Masterclass', + thumbnail: 'http://img.b2bpic.net/free-photo/woman-applying-moisturizer-her-beauty-routine_23-2150166464.jpg', + duration: '12:45', + uploadDate: 'Jan 15, 2025', + views: '2.4K', + status: 'published' + }, + { + id: '2', + title: 'Advanced Plating Techniques for Fine Dining', + thumbnail: 'http://img.b2bpic.net/free-photo/model-career-kit-still-life-flat-lay_23-2150218023.jpg', + duration: '18:30', + uploadDate: 'Jan 12, 2025', + views: '1.8K', + status: 'published' + }, + { + id: '3', + title: 'Sustainable Sourcing for Restaurant Kitchens', + thumbnail: 'http://img.b2bpic.net/free-photo/people-working-elegant-cozy-office-space_23-2149548692.jpg', + duration: '15:20', + uploadDate: 'Jan 10, 2025', + views: '892', + status: 'draft' + } + ]); + + const handleEdit = (id: string) => { + console.log('Edit video:', id); + }; + + const handleDelete = (id: string) => { + setVideos(videos.filter(v => v.id !== id)); + }; + + const handleUpload = () => { + console.log('Upload new video'); + }; + + return ( + + + +
+ +
+ +
+ +
+ +
+
+
+

Your Video Library

+

Manage and monitor your uploaded culinary content

+
+ +
+ {videos.map((video) => ( +
+
+ {/* Thumbnail */} +
+ {video.title} +
+
+
+ {video.duration} +
+
+ + {/* Content */} +
+
+
+

{video.title}

+ + {video.status.charAt(0).toUpperCase() + video.status.slice(1)} + +
+
+ 📅 {video.uploadDate} + 👁️ {video.views} views +
+
+ + {/* Actions */} +
+ + +
+
+
+
+ ))} +
+
+
+ + +
+ ); +}