Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>YouTube Clone</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| background-color: #f9f9f9; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .container { | |
| width: 100%; | |
| max-width: 1200px; | |
| margin: 20px auto; | |
| background-color: #fff; | |
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | |
| padding: 20px; | |
| border-radius: 8px; | |
| } | |
| .search-bar { | |
| display: flex; | |
| justify-content: center; | |
| margin-bottom: 20px; | |
| } | |
| .search-bar input { | |
| width: 70%; | |
| padding: 10px; | |
| border: 1px solid #ccc; | |
| border-radius: 4px; | |
| } | |
| .search-bar button { | |
| padding: 10px 20px; | |
| background-color: #007BFF; | |
| color: #fff; | |
| border: none; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| margin-left: 10px; | |
| } | |
| .video-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); | |
| gap: 20px; | |
| } | |
| .video-card { | |
| background-color: #fff; | |
| border: 1px solid #ddd; | |
| border-radius: 8px; | |
| overflow: hidden; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
| } | |
| .video-card img { | |
| width: 100%; | |
| height: auto; | |
| } | |
| .video-card .video-info { | |
| padding: 10px; | |
| } | |
| .video-card .video-title { | |
| font-size: 16px; | |
| font-weight: bold; | |
| margin-bottom: 5px; | |
| } | |
| .video-card .video-channel { | |
| font-size: 14px; | |
| color: #666; | |
| } | |
| .video-card .video-link { | |
| display: block; | |
| text-align: center; | |
| padding: 10px; | |
| background-color: #007BFF; | |
| color: #fff; | |
| text-decoration: none; | |
| border-radius: 4px; | |
| margin-top: 10px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="search-bar"> | |
| <input type="text" placeholder="Search videos..."> | |
| <button>Search</button> | |
| </div> | |
| <div class="video-grid"> | |
| <!-- Example Video Card --> | |
| <div class="video-card"> | |
| <img src="thumbnail1.jpg" alt="Video Thumbnail"> | |
| <div class="video-info"> | |
| <div class="video-title">Amazing AI-Generated Art</div> | |
| <div class="video-channel">Artificial Creations</div> | |
| <a href="https://www.youtube.com/watch?v=VIDEO_ID_1" class="video-link" target="_blank">Watch on YouTube</a> | |
| </div> | |
| </div> | |
| <!-- Repeat the above structure for more videos --> | |
| <div class="video-card"> | |
| <img src="thumbnail2.jpg" alt="Video Thumbnail"> | |
| <div class="video-info"> | |
| <div class="video-title">Future Cities by AI</div> | |
| <div class="video-channel">Tech Visionaries</div> | |
| <a href="https://www.youtube.com/watch?v=VIDEO_ID_2" class="video-link" target="_blank">Watch on YouTube</a> | |
| </div> | |
| </div> | |
| <!-- Add more video cards as needed --> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |