Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>How to Build a Website - DarkTube</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 { | |
margin-top: 56px; | |
display: flex; | |
padding: 1rem; | |
} | |
.video-container { | |
flex: 1; | |
margin-right: 1rem; | |
} | |
.video-player { | |
position: relative; | |
width: 100%; | |
padding-bottom: 56.25%; | |
background-color: black; | |
margin-bottom: 1rem; | |
} | |
.video-info { | |
margin-bottom: 1rem; | |
} | |
.video-title { | |
font-size: 1.5rem; | |
margin-bottom: 0.5rem; | |
} | |
.video-stats { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding-bottom: 1rem; | |
border-bottom: 1px solid var(--bg-secondary); | |
} | |
.view-count { | |
color: var(--text-secondary); | |
} | |
.video-actions { | |
display: flex; | |
gap: 1rem; | |
} | |
.action-button { | |
display: flex; | |
align-items: center; | |
gap: 0.5rem; | |
background: none; | |
border: none; | |
color: var(--text-primary); | |
cursor: pointer; | |
} | |
.channel-info { | |
display: flex; | |
align-items: flex-start; | |
margin-top: 1rem; | |
padding-bottom: 1rem; | |
border-bottom: 1px solid var(--bg-secondary); | |
} | |
.channel-avatar { | |
width: 48px; | |
height: 48px; | |
border-radius: 50%; | |
background-color: var(--bg-secondary); | |
margin-right: 1rem; | |
} | |
.channel-details { | |
flex: 1; | |
} | |
.channel-name { | |
font-weight: bold; | |
margin-bottom: 0.25rem; | |
} | |
.subscriber-count { | |
color: var(--text-secondary); | |
font-size: 0.9rem; | |
margin-bottom: 0.5rem; | |
} | |
.subscribe-button { | |
background-color: var(--accent); | |
color: var(--text-primary); | |
border: none; | |
padding: 0.5rem 1rem; | |
border-radius: 20px; | |
cursor: pointer; | |
font-weight: bold; | |
} | |
.video-description { | |
margin-top: 1rem; | |
color: var(--text-secondary); | |
white-space: pre-line; | |
} | |
.recommendations { | |
width: 400px; | |
} | |
.recommendation { | |
display: flex; | |
margin-bottom: 0.5rem; | |
cursor: pointer; | |
} | |
.recommendation-thumbnail { | |
width: 160px; | |
height: 90px; | |
background-color: var(--bg-secondary); | |
margin-right: 0.5rem; | |
flex-shrink: 0; | |
} | |
.recommendation-info h3 { | |
font-size: 0.9rem; | |
margin-bottom: 0.25rem; | |
} | |
.recommendation-info p { | |
font-size: 0.8rem; | |
color: var(--text-secondary); | |
} | |
.comments-section { | |
margin-top: 1rem; | |
} | |
.comments-header { | |
display: flex; | |
align-items: center; | |
margin-bottom: 1rem; | |
} | |
.comment-count { | |
margin-right: 1rem; | |
} | |
.sort-button { | |
display: flex; | |
align-items: center; | |
background: none; | |
border: none; | |
color: var(--text-primary); | |
cursor: pointer; | |
} | |
.comment { | |
display: flex; | |
margin-bottom: 1rem; | |
} | |
.comment-avatar { | |
width: 40px; | |
height: 40px; | |
border-radius: 50%; | |
background-color: var(--bg-secondary); | |
margin-right: 1rem; | |
} | |
.comment-content { | |
flex: 1; | |
} | |
.comment-header { | |
display: flex; | |
align-items: center; | |
margin-bottom: 0.25rem; | |
} | |
.comment-author { | |
font-weight: bold; | |
margin-right: 0.5rem; | |
} | |
.comment-timestamp { | |
color: var(--text-secondary); | |
font-size: 0.9rem; | |
} | |
@media (max-width: 1200px) { | |
.recommendations { | |
width: 300px; | |
} | |
} | |
@media (max-width: 1000px) { | |
main { | |
flex-direction: column; | |
} | |
.video-container { | |
margin-right: 0; | |
margin-bottom: 1rem; | |
} | |
.recommendations { | |
width: 100%; | |
} | |
.recommendation { | |
width: 100%; | |
} | |
} | |
@media (max-width: 768px) { | |
.logo span { | |
display: none; | |
} | |
.user-actions { | |
display: none; | |
} | |
.video-stats { | |
flex-direction: column; | |
align-items: flex-start; | |
} | |
.video-actions { | |
margin-top: 0.5rem; | |
} | |
.recommendation-thumbnail { | |
width: 120px; | |
height: 68px; | |
} | |
} | |
</style> | |
</head> | |
<body> | |
<header> | |
<div class="logo"> | |
<i class="fab fa-youtube"></i> | |
<span>DarkTube</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> | |
<div class="video-container"> | |
<div class="video-player"> | |
<img src="/api/placeholder/1280/720" alt="Video player" style="position: absolute; width: 100%; height: 100%; object-fit: cover;"> | |
</div> | |
<div class="video-info"> | |
<h1 class="video-title">How to Build a Responsive Website from Scratch</h1> | |
<div class="video-stats"> | |
<span class="view-count">1.2M views • 2 months ago</span> | |
<div class="video-actions"> | |
<button class="action-button"> | |
<i class="fas fa-thumbs-up"></i> 100K | |
</button> | |
<button class="action-button"> | |
<i class="fas fa-thumbs-down"></i> 1K | |
</button> | |
<button class="action-button"> | |
<i class="fas fa-share"></i> Share | |
</button> | |
<button class="action-button"> | |
<i class="fas fa-download"></i> Download | |
</button> | |
</div> | |
</div> | |
</div> | |
<div class="channel-info"> | |
<div class="channel-avatar"></div> | |
<div class="channel-details"> | |
<h3 class="channel-name">WebDev Pro</h3> | |
<p class="subscriber-count">1.5M subscribers</p> | |
<p class="video-description">Learn how to build a responsive website from scratch in this comprehensive tutorial. We'll cover HTML, CSS, and JavaScript basics, as well as advanced techniques for creating a modern, user-friendly design.</p> | |
</div> | |
<button class="subscribe-button">Subscribe</button> | |
</div> | |
<div class="comments-section"> | |
<div class="comments-header"> | |
<h3 class="comment-count">1,234 Comments</h3> | |
<button class="sort-button"> | |
<i class="fas fa-sort-amount-down"></i> Sort by | |
</button> | |
</div> | |
<div class="comment"> | |
<div class="comment-avatar"></div> | |
<div class="comment-content"> | |
<div class="comment-header"> | |
<span class="comment-author">John Doe</span> | |
<span class="comment-timestamp">2 days ago</span> | |
</div> | |
<p>This tutorial was exactly what I needed! Thanks for the clear explanations.</p> | |
</div> | |
</div> | |
<div class="comment"> | |
<div class="comment-avatar"></div> | |
<div class="comment-content"> | |
<div class="comment-header"> | |
<span class="comment-author">Jane Smith</span> | |
<span class="comment-timestamp">1 week ago</span> | |
</div> | |
<p>Could you make a follow-up video on advanced CSS techniques?</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="recommendations"> | |
<div class="recommendation"> | |
<div class="recommendation-thumbnail"> | |
<img src="/api/placeholder/160/90" alt="Thumbnail"> | |
</div> | |
<div class="recommendation-info"> | |
<h3>CSS Grid Layout Tutorial</h3> | |
<p>WebDev Pro</p> | |
<p>850K views • 3 months ago</p> | |
</div> | |
</div> | |
<div class="recommendation"> | |
<div class="recommendation-thumbnail"> | |
<img src="/api/placeholder/160/90" alt="Thumbnail"> | |
</div> | |
<div class="recommendation-info"> | |
<h3>JavaScript for Beginners</h3> | |
<p>Code Master</p> | |
<p>1.1M views • 1 month ago</p> | |
</div> | |
</div> | |
<div class="recommendation"> | |
<div class="recommendation-thumbnail"> | |
<img src="/api/placeholder/160/90" alt="Thumbnail"> | |
</div> | |
<div class="recommendation-info"> | |
<h3>10 Web Design Trends in 2024</h3> | |
<p>Design Insights</p> | |
<p>500K views • 2 weeks ago</p> | |
</div> | |
</div> | |
</div> | |
</main> | |
</body> | |
</html> |