You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# YouTube Clone - Enhanced Features
A modern YouTube clone built with React, featuring advanced search, video playback, user interactions, and responsive design.
## ✨ Features Implemented
### 🔍 Enhanced Search & Filtering
- **Working Search Bar**: Search videos by title, channel name, or category
- **Advanced Filters**: Filter by category and sort by upload date, view count, or title
- **Smart Filter Panel**: Dropdown filters accessible via filter icon in header
### 🎬 Video Routing & Playback
- **React Router Integration**: Each video has its own shareable URL (`/watch/:id`)
- **VideoPlayer Component**: Custom video player with `react-player`
- **WatchPage**: Dedicated page for video viewing with related videos sidebar
- **Custom Controls**: Play/pause, volume, progress bar, and fullscreen options
### ❤️ Like & Save Functionality
- **Like Videos**: Click thumbs-up to like/unlike videos (stored in localStorage)
- **Save to Watch Later**: Heart button to save videos for later viewing
- **Persistent Storage**: All likes and saves persist across sessions
- **Visual Feedback**: Buttons change appearance when active
### 💬 Mock Comments System
- **Add Comments**: Users can add comments that persist in localStorage
- **Delete Comments**: Remove your own comments
- **Comment Metadata**: Shows author, timestamp, and like counts
- **Expandable Section**: Toggle comments visibility
### 🎨 Dark Mode & Theming
- **Dark Mode Toggle**: Sun/moon icon in header to switch themes
- **CSS Variables**: Consistent theming system
- **localStorage Persistence**: Theme preference saved across sessions
- **Smooth Transitions**: Animated theme switching
### 📱 Responsive Design
- **Mobile-First Approach**: Optimized for all screen sizes
- **Adaptive Grid**: Video grid adjusts to screen width
- **Touch-Friendly**: Proper touch targets for mobile devices
- **Responsive Sidebar**: Collapsible navigation on mobile
### ✨ Animations & Microinteractions
- **Hover Effects**: Card scaling, button transitions, and hover states
- **Loading States**: Skeleton loaders and smooth transitions
- **Micro-animations**: Button press feedback, heart animations
- **Smooth Scrolling**: Enhanced UX with fluid animations
### 🗂️ Enhanced Sidebar Navigation
- **Watch Later**: Dedicated section showing saved videos count
- **Liked Videos**: View all liked videos in one place
- **Category Filtering**: Quick access to video categories
- **Visual Indicators**: Notification badges for saved video count
## 🚀 Getting Started
### Prerequisites
- Node.js (v14 or higher)
- npm or yarn
### Installation
1. Clone the repository
2. Install dependencies:
```bash
npm install
```
3. Start the development server:
```bash
npm run dev
```
4. Open [http://localhost:5173](http://localhost:5173) to view the app
## 🛠️ Tech Stack
- **React 18** - Core framework
- **React Router DOM** - Navigation and routing
- **React Player** - Video playback functionality
- **Lucide React** - Modern icon set
- **Vite** - Fast build tool and dev server
- **Tailwind CSS** - Utility-first CSS framework
## 📱 Key Components
### Core Components
- **App.jsx** - Main app with routing, state management, and theme handling
- **Header.jsx** - Navigation with search, filters, and dark mode toggle
- **Sidebar.jsx** - Navigation menu with view switching
- **VideoGrid.jsx** - Responsive grid layout for videos
- **VideoCard.jsx** - Individual video card with like/save actions
### Feature Components
- **WatchPage.jsx** - Video viewing page with comments and related videos
- **VideoPlayer.jsx** - Custom video player with controls
- **SavedVideos.jsx** - Dedicated saved videos view
- **MainContent.jsx** - Main content area with filtering and sorting
## 🎯 Usage
### Basic Navigation
- **Home**: Browse all videos
- **Search**: Use the search bar to find specific content
- **Filters**: Click the filter icon for advanced sorting options
### Video Interaction
- **Watch Videos**: Click any video to go to its dedicated page
- **Like Videos**: Click the thumbs-up button to like
- **Save Videos**: Click the heart button to save for later
- **Add Comments**: Scroll down on video page to comment
### Personalization
- **Dark Mode**: Toggle with sun/moon icon in header
- **Watch Later**: Access saved videos via sidebar
- **Liked Videos**: View all liked content in one place
## 📊 Data Storage
All user interactions are stored locally using:
- **localStorage** for likes, saves, and theme preferences
- **Component state** for temporary UI states
- **URL parameters** for shareable video links
## 🔮 Future Enhancements
Potential areas for expansion:
- User authentication and profiles
- Real backend API integration
- Video upload functionality
- Subscription management
- Push notifications
- Advanced analytics
## 🤝 Contributing
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Test thoroughly
5. Submit a pull request
## 📄 License
This project is open source and available under the MIT License.
---
**Built with ❤️ using React and modern web technologies**
## Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
# YouTubeClone
About
A streamlined YouTube clone built with React. This application focuses on providing a clean user experience for searching and filtering video content.