"use client"; import { useState } from "react"; import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "@hanzo/ui/primitives/card"; import { Button } from "@hanzo/ui/primitives/button"; import { Badge } from "@hanzo/ui/primitives/badge"; import { Avatar, AvatarFallback, AvatarImage } from "@hanzo/ui/primitives/avatar"; import { AspectRatio } from "@hanzo/ui/primitives/aspect-ratio"; import { ScrollArea } from "@hanzo/ui/primitives/scroll-area"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@hanzo/ui/primitives/tabs"; import { Textarea } from "@hanzo/ui/primitives/textarea"; import { Progress } from "@hanzo/ui/primitives/progress"; import { Play, Pause, SkipForward, SkipBack, Volume2, Maximize, ThumbsUp, ThumbsDown, Share2, Download, Bell, MoreVertical, Eye, Clock } from "lucide-react"; const currentVideo = { id: "1", title: "Building Modern UIs with @hanzo/ui Components", channel: { name: "Hanzo Dev", avatar: "/api/placeholder/40/40", subscribers: "42.3k", verified: true }, views: 123456, likes: 5432, dislikes: 89, publishedAt: "2 days ago", duration: "15:42", description: `In this comprehensive tutorial, we'll explore the powerful @hanzo/ui component library and learn how to build beautiful, responsive user interfaces. Topics covered: • Setting up @hanzo/ui in your project • Understanding the component architecture • Building responsive layouts • Customizing themes and styles • Best practices and performance optimization Resources: - Documentation: https://hanzo.ai/docs - GitHub: https://github.com/hanzoai/ui - Discord: https://discord.gg/hanzoai Timestamps: 00:00 Introduction 02:15 Installation and Setup 05:30 Component Overview 08:45 Building Your First Interface 12:00 Advanced Patterns 14:30 Conclusion` }; const relatedVideos = [ { id: "2", title: "Advanced React Patterns", channel: "Code Academy", thumbnail: "/api/placeholder/320/180", duration: "23:15", views: "89k", publishedAt: "1 week ago" }, { id: "3", title: "Tailwind CSS Mastery", channel: "Design Pro", thumbnail: "/api/placeholder/320/180", duration: "18:30", views: "156k", publishedAt: "3 days ago" }, { id: "4", title: "State Management in 2024", channel: "React Weekly", thumbnail: "/api/placeholder/320/180", duration: "31:45", views: "45k", publishedAt: "5 days ago" }, { id: "5", title: "Building a SaaS from Scratch", channel: "Startup School", thumbnail: "/api/placeholder/320/180", duration: "45:20", views: "234k", publishedAt: "2 weeks ago" } ]; const comments = [ { id: "1", author: { name: "Sarah Chen", avatar: "/api/placeholder/32/32" }, content: "This is exactly what I needed! The @hanzo/ui components are so well designed.", likes: 42, timestamp: "1 day ago", replies: 3 }, { id: "2", author: { name: "Alex Rivera", avatar: "/api/placeholder/32/32" }, content: "Great tutorial! Can you do a video on integrating with Next.js 14?", likes: 28, timestamp: "2 days ago", replies: 1 }, { id: "3", author: { name: "Jordan Park", avatar: "/api/placeholder/32/32" }, content: "The component library looks amazing. Love the dark mode support!", likes: 15, timestamp: "2 days ago", replies: 0 } ]; export default function VideoStreaming() { const [isPlaying, setIsPlaying] = useState(false); const [volume, setVolume] = useState(80); const [progress, setProgress] = useState(35); const [comment, setComment] = useState(""); return (
{/* Main Content */}
{/* Video Player */}
{/* Video Placeholder */}
Video thumbnail {!isPlaying && (
)}
{/* Video Controls */}
{/* Progress Bar */}
5:32 15:42
{/* Controls */}
{/* Video Info */} {currentVideo.title}
{currentVideo.views.toLocaleString()} views {currentVideo.publishedAt}
HD

{currentVideo.channel.name}

{currentVideo.channel.verified && ( )}

{currentVideo.channel.subscribers} subscribers

Description Transcript Chapters
{currentVideo.description}
{/* Comments Section */} {comments.length} Comments
U