Spaces:
Running
Running
File size: 12,481 Bytes
a4f6372 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
<!DOCTYPE html>
<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> |