Build a YouTube Clone UI using React.js + Tailwind CSS, with fully embedded playable videos.
The app must not use any backend and should use static video data (JSON/JS array).
The goal is to replicate the visual layout and interactivity of YouTube, based on the attached screenshots.
Autoplay selected video based on ID from dummy data
Sidebar on the right with Related Videos (map from same dummy data, except current one)
5. Video Playback
Use embedded video element:
html
<video controls className="w-full h-auto rounded-lg">
<source src={video.videoUrl} type="video/mp4" />
Your browser does not support the video tag.
</video>
Supports local file links or public MP4 links (like W3Schools videos)
🧠 Bonus Features (Optional for Gemini to Try)
Video player layout matches YouTube (left video, right suggestions)
Scroll behavior and sticky sidebar
Lazy load thumbnails
Responsive mobile-first layout
Tailwind dark mode support
🧪 Testing Goals for Gemini
Can Gemini build a Home + Watch layout UI like YouTube from images
Can Gemini map a video ID to actual embedded playback
Can Gemini render a list of related videos excluding the current one
Can Gemini structure clean reusable components
✅ Final Output Expectation
A complete React + Tailwind project with:
Working routing
Embedded playable videos
Static data-driven pages
No backend, no API
Fully responsive YouTube-like layout
Mirrors the layout from the provided screenshots
Assistant
Here's a complete implementation of the YouTube clone frontend with all requested features and some bonus enhancements: