Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JonniTech/YouTube-Clone

Repository files navigation

TevTube - High-Fidelity YouTube Clone

TevTube Header

Aim

The target of TevTube is to provide a premium, lighting-fast, and fully responsive YouTube experience that mirrors the 2026 YouTube UI. It aims to showcase how modern web technologies like React, Tailwind CSS, and Clerk can be harmonized to build a high-fidelity platform capable of handling real-time data from the YouTube API.

The Problem

Standard video platforms and clones often suffer from:

  • Poor Mobile Responsiveness: Layouts break or become unusable on smaller screens.
  • Inconsistent UI: Lack of attention to detail regarding spacing, typography, and interactive states.
  • Complex Authentication: Implementation of secure, seamless user management is often an afterthought.
  • Data Latency: Large volumes of video data can lead to slow, unoptimized loading states.

The Solution

TevTube addresses these challenges through:

  • Mobile-First Responsive Design: Every component, from the sidebar to the video player, is meticulously crafted to adapt to any screen size without horizontal scrolling.
  • High-Fidelity UI/UX: Utilizing Shadcn/UI and Framer Motion to deliver smooth animations, premium typography (Outfit), and a pixel-perfect dark/light mode experience.
  • Integrated Clerk Authentication: Secure, enterprise-grade authentication with a custom-styled logout flow integrated directly into the sidebar.
  • Optimized Loading States: Customized Skeleton Loaders for every page (Home, Watch, Search) to eliminate layout shifts and provide instant visual feedback.

Tech Stack

Category Technology
Frontend Framework React 19 & Vite
Styling Tailwind CSS & Shadcn/UI
Authentication Clerk
State Management Zustand
Animations Framer Motion
Icons Lucide React
Data Fetching YouTube Data API v3

System Architecture & Flow

Data & State Flow

graph TD
 A[User visits TevTube] --> B{Authenticated?}
 B -- Yes --> C[Display Personalized Feed]
 B -- No --> D[Display Trending Videos]
 
 C --> E[YouTube API Service]
 D --> E
 
 E --> F[Zustand State Store]
 F --> G[Components: VideoCard, Navbar, etc.]
 
 G --> H[User Interacts]
 H --> I{Action?}
 I -- Search --> J[Search API Call]
 I -- Watch --> K[Video Details API Call]
 I -- Menu --> L[Toggle Sidebar State]
Loading

Responsive Layout Flow

graph LR
 Desktop[Desktop View] -->|Breakpoints| Tablet[Tablet View]
 Tablet -->|Breakpoints| Mobile[Mobile View]
 
 Desktop --> FullSidebar[Full Sidebar - 240px]
 Tablet --> MiniSidebar[Mini Sidebar - 72px]
 Mobile --> DrawerSidebar[Mobile Drawer - Overlay]
 
 Desktop --> MultiCol[4-Column Grid]
 Mobile --> SingleCol[1-Column Stack]
Loading

Features Available

  • Home Page: Dynamic trending feed with category filters.
  • Search: Real-time video search with detailed result cards.
  • Watch Page: Premium video player with related videos, comments, and responsive reordering.
  • Shorts: Mobile-optimized vertical scrolling shorts feed.
  • Notifications: Integrated UI for user alerts.
  • Dark Mode: Complete system-themed or manual dark/light toggle.
  • User Management: Custom profile page and history dashboard.
  • Live Stream Support: High-fidelity badges for live content.

How to Run

  1. Clone the repo
    git clone https://github.com/JonniTech/YouTube-Clone.git
  2. Install dependencies
    yarn install
  3. Setup Environment Variables Create a .env file and add your keys:
    VITE_CLERK_PUBLISHABLE_KEY=your_key
    VITE_YOUTUBE_API_KEY=your_key
  4. Start Development Server
    yarn dev

Design Principles

  • Clarity: High contrast and clear typography.
  • Feedback: Immediate visual cues for every interaction (skeletons, hover effects).
  • Premium Feel: Subtle gradients, rounded corners, and generous whitespace.

Programmed by NYAGANYA

About

A high-fidelity, premium YouTube 2026 clone built with React 19, Vite, and Tailwind CSS. Features deep integration with the YouTube Data API v3, enterprise-grade authentication via Clerk, and pixel-perfect responsive layouts with shift-free skeleton loading.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /