<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>影音社群網站</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
.navbar {
background-color: #333;
color: white;
padding: 10px 0;
text-align: center;
}
.navbar a {
color: white;
text-decoration: none;
padding: 14px 20px;
display: inline-block;
}
.navbar a:hover {
background-color: #575757;
}
.container {
display: flex;
margin: 20px;
}
.main-content {
flex: 2;
margin-right: 20px;
}
.video-player {
background-color: #000;
color: #fff;
padding: 10px;
}
.video-player iframe {
width: 100%;
height: 400px;
}
.video-info {
margin-top: 10px;
}
.video-info h1 {
font-size: 24px;
}
.video-info p {
font-size: 18px;
color: #666;
}
.comments {
margin-top: 20px;
}
.comments h2 {
font-size: 20px;
}
.comment-list {
list-style: none;
padding: 0;
}
.comment-list li {
border-bottom: 1px solid #ddd;
padding: 10px 0;
}
.recommendations {
flex: 1;
}
.recommendations h2 {
font-size: 20px;
}
.recommendations img {
width: 100%;
cursor: pointer;
border-radius: 8px;
margin-bottom: 10px;
}
.comment-form {
margin-top: 20px;
}
.comment-form textarea {
width: 100%;
height: 80px;
padding: 10px;
border-radius: 4px;
border: 1px solid #ddd;
}
.comment-form button {
padding: 10px 15px;
background-color: #333;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
.comment-form button:hover {
background-color: #575757;
}
</style>
</head>
<body>
<div class="navbar">
<a href="#">首頁</a>
<a href="#">熱門影片</a>
<a href="#">訂閱</a>
<a href="#">我的頻道</a>
</div>
<div class="container">
<div class="main-content">
<div class="video-player">
<iframe src="<https://www.youtube.com/embed/dQw4w9WgXcQ>" frameborder="0" allowfullscreen></iframe>
</div>
<div class="video-info">
<h1>示範影片標題</h1>
<p>這是一個描述影片內容的區域。這裡可以顯示影片的詳細資訊,例如發佈者、觀看次數等。</p>
</div>
<div class="comments">
<h2>評論區</h2>
<ul class="comment-list">
<li><strong>用戶A:</strong> 這是一個非常有趣的影片!</li>
<li><strong>用戶B:</strong> 我也覺得這影片很棒!</li>
</ul>
<div class="comment-form">
<textarea placeholder="寫下你的評論..."></textarea>
<button>發佈評論</button>
</div>
</div>
</div>
<div class="recommendations">
<h2>推薦影片</h2>
<img src="<https://via.placeholder.com/150>" alt="推薦影片1">
<img src="<https://via.placeholder.com/150>" alt="推薦影片2">
<img src="<https://via.placeholder.com/150>" alt="推薦影片3">
</div>
</div>
</body>
</html>