Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>HuggingTube</title> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --bg-primary: #0a0f18; | |
| --bg-secondary: #141e2f; | |
| --text-primary: #ffffff; | |
| --text-secondary: #adbac7; | |
| --accent: #2188ff; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| } | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 0.5rem 1rem; | |
| background-color: var(--bg-secondary); | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: 1000; | |
| } | |
| .logo { | |
| color: var(--text-primary); | |
| font-size: 1.2rem; | |
| font-weight: bold; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .logo i { | |
| color: var(--accent); | |
| margin-right: 0.5rem; | |
| } | |
| .search-bar { | |
| flex-grow: 1; | |
| max-width: 600px; | |
| margin: 0 1rem; | |
| } | |
| .search-bar input { | |
| width: 100%; | |
| padding: 0.5rem 1rem; | |
| border-radius: 20px; | |
| border: 1px solid var(--text-secondary); | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| } | |
| .user-actions i { | |
| margin-left: 1rem; | |
| cursor: pointer; | |
| } | |
| main { | |
| display: flex; | |
| margin-top: 56px; /* Header height */ | |
| } | |
| .sidebar { | |
| width: 240px; | |
| padding: 1rem; | |
| position: fixed; | |
| top: 56px; | |
| bottom: 0; | |
| overflow-y: auto; | |
| background-color: var(--bg-primary); | |
| } | |
| .sidebar-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 0.75rem 1rem; | |
| cursor: pointer; | |
| border-radius: 10px; | |
| } | |
| .sidebar-item:hover { | |
| background-color: var(--bg-secondary); | |
| } | |
| .sidebar-item i { | |
| margin-right: 1rem; | |
| width: 20px; | |
| } | |
| .content { | |
| flex-grow: 1; | |
| padding: 1rem; | |
| margin-left: 240px; | |
| } | |
| .video-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .video-card { | |
| cursor: pointer; | |
| } | |
| .thumbnail { | |
| position: relative; | |
| width: 100%; | |
| height: 0; | |
| padding-bottom: 56.25%; | |
| background-color: var(--bg-secondary); | |
| border-radius: 10px; | |
| overflow: hidden; | |
| } | |
| .video-duration { | |
| position: absolute; | |
| bottom: 5px; | |
| right: 5px; | |
| background-color: rgba(0, 0, 0, 0.8); | |
| padding: 2px 4px; | |
| border-radius: 4px; | |
| font-size: 0.8rem; | |
| } | |
| .video-info { | |
| display: flex; | |
| margin-top: 0.5rem; | |
| } | |
| .channel-avatar { | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background-color: var(--bg-secondary); | |
| margin-right: 0.5rem; | |
| flex-shrink: 0; | |
| } | |
| .video-details h3 { | |
| font-size: 1rem; | |
| margin-bottom: 0.25rem; | |
| } | |
| .video-details p { | |
| font-size: 0.9rem; | |
| color: var(--text-secondary); | |
| } | |
| .mobile-nav { | |
| display: none; | |
| position: fixed; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| background-color: var(--bg-secondary); | |
| padding: 0.5rem; | |
| z-index: 1000; | |
| } | |
| .mobile-nav-items { | |
| display: flex; | |
| justify-content: space-around; | |
| } | |
| .mobile-nav-item { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| font-size: 0.8rem; | |
| } | |
| .mobile-nav-item i { | |
| font-size: 1.2rem; | |
| margin-bottom: 0.25rem; | |
| } | |
| /* Mobile styles */ | |
| @media (max-width: 768px) { | |
| .logo span { | |
| display: none; | |
| } | |
| .search-bar { | |
| margin: 0 0.5rem; | |
| } | |
| .user-actions i { | |
| margin-left: 0.5rem; | |
| } | |
| .sidebar { | |
| display: none; | |
| } | |
| .content { | |
| margin-left: 0; | |
| margin-bottom: 60px; /* Space for mobile nav */ | |
| } | |
| .mobile-nav { | |
| display: block; | |
| } | |
| .video-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| /* Small mobile styles */ | |
| @media (max-width: 480px) { | |
| .user-actions { | |
| display: none; | |
| } | |
| .search-bar input { | |
| font-size: 14px; | |
| } | |
| .video-details h3 { | |
| font-size: 0.9rem; | |
| } | |
| .video-details p { | |
| font-size: 0.8rem; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="logo"> | |
| <i class="fab fa-youtube"></i> | |
| <span>HuggingTube</span> | |
| </div> | |
| <div class="search-bar"> | |
| <input type="text" placeholder="Search"> | |
| </div> | |
| <div class="user-actions"> | |
| <i class="fas fa-video"></i> | |
| <i class="fas fa-bell"></i> | |
| <i class="fas fa-user-circle"></i> | |
| </div> | |
| </header> | |
| <main> | |
| <aside class="sidebar"> | |
| <div class="sidebar-item"> | |
| <i class="fas fa-home"></i> | |
| Home | |
| </div> | |
| <div class="sidebar-item"> | |
| <i class="fas fa-compass"></i> | |
| Explore | |
| </div> | |
| <div class="sidebar-item"> | |
| <i class="fas fa-upload"></i> | |
| Upload | |
| </div> | |
| <div class="sidebar-item"> | |
| <i class="fas fa-photo-video"></i> | |
| All videos | |
| </div> | |
| </aside> | |
| <section class="content"> | |
| <div class="video-grid"> | |
| <!-- Video cards --> | |
| <div class="video-card"> | |
| <div class="thumbnail"> | |
| <img src="/api/placeholder/250/141" alt="Video thumbnail"> | |
| <span class="video-duration">10:30</span> | |
| </div> | |
| <div class="video-info"> | |
| <div class="channel-avatar"></div> | |
| <div class="video-details"> | |
| <h3>Amazing Video Title That Might Be Long</h3> | |
| <p>Channel Name</p> | |
| <p>1.2M views • 2 days ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Repeat video cards --> | |
| <div class="video-card"> | |
| <div class="thumbnail"> | |
| <img src="/api/placeholder/250/141" alt="Video thumbnail"> | |
| <span class="video-duration">15:45</span> | |
| </div> | |
| <div class="video-info"> | |
| <div class="channel-avatar"></div> | |
| <div class="video-details"> | |
| <h3>Another Great Video</h3> | |
| <p>Another Channel</p> | |
| <p>850K views • 1 week ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="video-card"> | |
| <div class="thumbnail"> | |
| <img src="/api/placeholder/250/141" alt="Video thumbnail"> | |
| <span class="video-duration">7:20</span> | |
| </div> | |
| <div class="video-info"> | |
| <div class="channel-avatar"></div> | |
| <div class="video-details"> | |
| <h3>Must Watch Tutorial</h3> | |
| <p>Tech Channel</p> | |
| <p>2M views • 1 month ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="video-card"> | |
| <div class="thumbnail"> | |
| <img src="/api/placeholder/250/141" alt="Video thumbnail"> | |
| <span class="video-duration">22:15</span> | |
| </div> | |
| <div class="video-info"> | |
| <div class="channel-avatar"></div> | |
| <div class="video-details"> | |
| <h3>Interesting Documentary</h3> | |
| <p>Educational Hub</p> | |
| <p>500K views • 3 days ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <nav class="mobile-nav"> | |
| <div class="mobile-nav-items"> | |
| <div class="mobile-nav-item"> | |
| <i class="fas fa-home"></i> | |
| Home | |
| </div> | |
| <div class="mobile-nav-item"> | |
| <i class="fas fa-compass"></i> | |
| Explore | |
| </div> | |
| <div class="mobile-nav-item"> | |
| <i class="fas fa-upload"></i> | |
| Upload | |
| </div> | |
| <div class="mobile-nav-item"> | |
| <i class="fas fa-photo-video"></i> | |
| Library | |
| </div> | |
| </div> | |
| </nav> | |
| </body> | |
| </html> |