A complete static front-end YouTube clone built with HTML, CSS, and JavaScript for teaching purposes.
youtube-clone/
βββ index.html # Main HTML structure
βββ style.css # All styling and layout
βββ script.js # Interactive functionality
βββ README.md # This file
- YouTube-like Design: Classic red, white, and black color scheme
- Responsive Layout: Works on desktop, tablet, and mobile
- Navbar: Logo, search bar, and profile icon
- Video Grid: 6 video cards with thumbnails and details
- Hover Effects: Cards lift up with shadow on hover
- Like Button Toggle: Click to toggle between π Like and β€οΈ Liked
- Clean Code: Fully commented for teaching purposes
- Open
index.htmlin any modern web browser - No server required - just double-click the file!
- Semantic structure with nav, main, sections
- Data attributes for JavaScript interaction
- Proper accessibility with alt text
- CSS Grid for responsive video layout
- Flexbox for navbar alignment
- Hover effects and transitions
- Media queries for mobile responsiveness
- Sticky positioning for navbar
- DOM manipulation
- Event listeners
- Data attribute handling
- Event bubbling prevention
- Toggle functionality
Perfect for:
- Live coding demonstrations
- Beginner web development courses
- Understanding layout systems (Grid/Flexbox)
- JavaScript interactivity basics
- Responsive design principles
- Add more video cards
- Change color scheme
- Add a sidebar with categories
- Implement search functionality
- Add video player modal
- Create a "Watch Later" feature
Built with β€οΈ for teaching web development