--- 🎯 Prompt for Gemini (Frontend-Only YouTube Clone) 🧩… · The Chat Archive
Explore / Programming o3-mini · OpenAI LMArena Human Preference 140K--- 🎯 Prompt for Gemini (Frontend-Only YouTube Clone) 🧩 Project Overview: Build a… Save Share Download ▾ ReportFrom a Chatbot Arena battle The same person sent this prompt to two anonymous models at once. Compare it with claude-sonnet-4-20250514 ’s answer. Copy first prompt
Other models, same or similar prompt Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Details
Model o3-mini
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Added to archive Nov 16, 2026
ID 01m7jes0cczzv4w5ahpds59fsySource & license Imported from LMArena Human Preference 140K (source ). Imported records earn no Research Points.
Upstream record: 707c22d8-73fd-4dd7-a485-64c4dc8bfa37:a
Chiang et al., Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (2024). LMArena 140K preference release.
License: Prompts CC-BY-4.0; outputs governed by provider terms
Dataset releases Not yet included in a published release.
🎯 Prompt for Gemini (Frontend-Only YouTube Clone)
🧩 Project Overview:
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.
🔧 Technologies to Use:
React.js (with React Router DOM)
Tailwind CSS
HTML5 Video Element
Dummy video data (JS array of objects)
No backend or API calls
📄 App Structure
src/
├── App.jsx
├── main.jsx
├── data/
│ └── videos.js
├── components/
│ ├── Navbar.jsx
│ ├── Sidebar.jsx
│ ├── VideoCard.jsx
│ ├── VideoGrid.jsx
│ ├── VideoPlayer.jsx
│ └── RelatedVideos.jsx
├── pages/
│ ├── Home.jsx
│ └── Watch.jsx
💡 Key Features to Implement
1. Navbar (Top Bar)
Show logo "YouTube Clone"
Search bar (non-functional)
"Create", "Bell" icons (dummy)
Avatar on the right
2. Sidebar (Left Menu)
3. Home Page ( ****/****)
Display video cards in 3-column grid
Use dummy video array with fields like:
{
id: "1",
title: "Learn React in 10 Minutes",
channel: "DevTutor",
views: "200K views",
date: "3 days ago",
thumbnail: "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4"
}
4. Watch Page ( ****/watch/:id****)
Display HTML5 <video> element with controls
Show title, channel, likes (dummy), date
"Subscribe" button (non-functional)
Description below video
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:
<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
AssistantCopy response
Below is a complete React + Tailwind CSS implementation of a frontend-only YouTube clone that meets the requirements. The project uses static video data (via a JavaScript array), React Router for navigation, and an HTML5 video element for playback. You can copy these files into your project to get started.
Setup Instructions
Initialize a New React Project
npx create-react-app youtube-clone
cd youtube-clone
Install Dependencies
Install React Router and Tailwind CSS (plus its dependencies):
npm install react-router-dom
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Configure Tailwind
Update your tailwind.config.js :
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
Configure Tailwind in CSS
Replace the contents of src/index.css with:
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom global styles */
body {
@apply bg-gray-900 text-white;
font-family: Arial, sans-serif;
}
Replace the src Folder Files
Create the following file structure and code in your project.
File Structure and Code
1. src/data/videos.js
This file holds the static video data.
export const videos = [
{
id: "1",
title: "Learn React in 10 Minutes",
channel: "DevTutor",
views: "200K views",
date: "3 days ago",
thumbnail: "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4",
description: "A quick tutorial on the basics of React."
},
{
id: "2",
title: "Introduction to Tailwind CSS",
channel: "StyleMaster",
views: "150K views",
date: "5 days ago",
thumbnail: "https://i.ytimg.com/vi/XGSy3_Czz8k/hqdefault.jpg",
videoUrl: "https://www.w3schools.com/html/movie.mp4",
description: "Learn how to style your websites with Tailwind CSS."
},
{
id: "3",
title: "JavaScript Essentials",
channel: "CodeCentral",
views: "300K views",
date: "1 week ago",
thumbnail: "https://i.ytimg.com/vi/PkZNo7MFNFg/hqdefault.jpg",
videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4",
description: "Master the fundamentals of JavaScript in one video."
}
];
Copy first response
2. src/components/Navbar.jsx A top bar with a logo, search bar, dummy icons, and an avatar.
import React from "react";
import { Link } from "react-router-dom";
const Navbar = () => {
return (
<nav className="bg-gray-800 p-4 flex justify-between items-center fixed top-0 left-0 w-full z-10">
{/* Logo */}
<Link to="/" className="text-2xl font-bold text-white">
YouTube Clone
</Link>
{/* Search Bar */}
<div className="flex-1 mx-4 max-w-xl">
<input
type="text"
placeholder="Search"
className="w-full bg-gray-700 text-white p-2 rounded-full border border-gray-600 focus:outline-none focus:border-blue-500"
/>
</div>
{/* Icons and Avatar */}
<div className="flex items-center space-x-4">
<div className="text-white">Create</div>
<div className="text-white">Bell</div>
<img
src="https://via.placeholder.com/40"
alt="Avatar"
className="w-8 h-8 rounded-full"
/>
</div>
</nav>
);
};
export default Navbar;
3. src/components/Sidebar.jsx A left sidebar displaying various navigation links. It’s responsive (you can hide it on mobile if needed).
import React from "react";
import { Link } from "react-router-dom";
const Sidebar = () => {
return (
<aside className="bg-gray-800 text-white w-64 p-4 fixed top-16 left-0 h-full hidden md:block">
<ul className="space-y-4">
<li>
<Link to="/" className="block p-2 hover:bg-gray-700 rounded">
Home
</Link>
</li>
<li>
<Link to="/" className="block p-2 hover:bg-gray-700 rounded">
Shorts
</Link>
</li>
<li>
<Link to="/" className="block p-2 hover:bg-gray-700 rounded">
Subscriptions
</Link>
</li>
<li>
<Link to="/" className="block p-2 hover:bg-gray-700 rounded">
History
</Link>
</li>
<li>
<Link to="/" className="block p-2 hover:bg-gray-700 rounded">
Playlists
</Link>
</li>
</ul>
</aside>
);
};
export default Sidebar;
4. src/components/VideoCard.jsx A reusable component for displaying a video thumbnail, title, channel, and view info.
import React from "react";
import { Link } from "react-router-dom";
const VideoCard = ({ video }) => {
return (
<Link
to={`/watch/${video.id}`}
className="block bg-gray-800 p-4 rounded-lg hover:bg-gray-700 transition duration-200"
>
<img
src={video.thumbnail}
alt={video.title}
className="w-full h-48 object-cover rounded-lg mb-2"
loading="lazy"
/>
<h3 className="text-white font-semibold">{video.title}</h3>
<p className="text-gray-400 text-sm">{video.channel}</p>
<p className="text-gray-400 text-xs">
{video.views} • {video.date}
</p>
</Link>
);
};
export default VideoCard;
5. src/components/VideoGrid.jsx This component renders a grid of video cards on the Home page.
import React from "react";
import VideoCard from "./VideoCard";
import { videos } from "../data/videos";
const VideoGrid = () => {
return (
<div className="p-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 mt-16 md:ml-64">
{videos.map((video) => (
<VideoCard key={video.id} video={video} />
))}
</div>
);
};
export default VideoGrid;
6. src/components/VideoPlayer.jsx A reusable video player component that uses an HTML5 video element.
import React from "react";
const VideoPlayer = ({ videoUrl }) => {
return (
<video controls autoPlay className="w-full h-auto rounded-lg">
<source src={videoUrl} type="video/mp4" />
Your browser does not support the video tag.
</video>
);
};
export default VideoPlayer;
7. src/components/RelatedVideos.jsx This component shows a list of related videos (i.e. all videos except the one currently playing).
import React from "react";
import VideoCard from "./VideoCard";
import { videos } from "../data/videos";
const RelatedVideos = ({ currentVideoId }) => {
const related = videos.filter((video) => video.id !== currentVideoId);
return (
<div className="space-y-4">
{related.map((video) => (
<VideoCard key={video.id} video={video} />
))}
</div>
);
};
export default RelatedVideos;
8. src/pages/Home.jsx The Home page displays the Sidebar and a grid of videos.
import React from "react";
import Navbar from "../components/Navbar";
import Sidebar from "../components/Sidebar";
import VideoGrid from "../components/VideoGrid";
const Home = () => {
return (
<div>
<Navbar />
<Sidebar />
<VideoGrid />
</div>
);
};
export default Home;
9. src/pages/Watch.jsx The Watch page displays the selected video along with details and a sidebar of related videos.
import React from "react";
import { useParams } from "react-router-dom";
import VideoPlayer from "../components/VideoPlayer";
import RelatedVideos from "../components/RelatedVideos";
import { videos } from "../data/videos";
import Navbar from "../components/Navbar";
const Watch = () => {
const { id } = useParams();
const video = videos.find((video) => video.id === id);
if (!video) {
return (
<div className="p-4 mt-16">
<Navbar />
<p className="text-white">Video not found.</p>
</div>
);
}
return (
<div>
<Navbar />
<div className="flex flex-col md:flex-row mt-16">
{/* Main Video Section */}
<div className="flex-1 p-4 md:ml-64">
<VideoPlayer videoUrl={video.videoUrl} />
<h2 className="text-2xl font-bold my-2">{video.title}</h2>
<div className="flex items-center justify-between mb-4">
<div>
<p className="text-gray-400">{video.channel}</p>
<p className="text-gray-400 text-sm">
{video.views} • {video.date}
</p>
</div>
<button className="px-4 py-2 bg-red-600 text-white rounded">
Subscribe
</button>
</div>
<p className="text-gray-300">{video.description}</p>
</div>
{/* Related Videos */}
<aside className="w-full md:w-1/3 p-4">
<h3 className="text-xl font-semibold mb-4">Related Videos</h3>
<RelatedVideos currentVideoId={video.id} />
</aside>
</div>
</div>
);
};
export default Watch;
10. src/App.jsx This is the main application component with routing for Home and Watch pages.
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Home from "./pages/Home";
import Watch from "./pages/Watch";
const App = () => {
return (
<Router>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/watch/:id" element={<Watch />} />
</Routes>
</Router>
);
};
export default App;
11. src/main.jsx The entry point of the React application.
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<App />
</React.StrictMode>
);
Summary
Navbar: Displays the logo, search bar, and dummy action icons.
Sidebar: Lists navigation links (Home, Shorts, Subscriptions, History, Playlists) and is responsive.
Home Page: Uses a 3-column grid (responsive to screen size) to show video cards.
Watch Page: Maps a video ID (from the URL) to a video object from the static data, auto-plays the video, and shows related videos.
Video Playback: Uses an HTML5 <video> element with controls.
Routing: Handled with React Router DOM to navigate between / (Home) and /watch/:id (Watch).
This code meets all the provided requirements. To run the project, follow the setup instructions, copy the code files into your project, and then run:
Your application should open on http://localhost:3000 displaying a YouTube-like interface with embedded playable videos and static data.