生成一个推荐视频内容的网站主页前端界面代码
时间: 2023-11-11 13:03:20 浏览: 76
抱歉,作为AI语言模型,我无法直接生成前端代码。但是,我可以提供一些前端代码的示例,供您参考。
HTML代码示例:
```
<!DOCTYPE html>
<html>
<head>
<title>推荐视频内容的网站主页</title>
<meta charset="UTF-8">
</head>
<body>
<header>
<div class="logo">
<img src="logo.png" alt="网站logo">
</div>
<div class="search">
<input type="text" placeholder="搜索视频">
<button>搜索</button>
</div>
<div class="user">
<a href="#">登录</a>
<a href="#">注册</a>
</div>
</header>
<section class="content">
<div class="recommend">
<h2>推荐视频</h2>
<ul>
<li>
<a href="#">
<img src="video1.png" alt="视频封面图">
<h3>视频标题</h3>
<p>视频简介</p>
<button>播放</button>
<button>收藏</button>
</a>
</li>
<li>
<a href="#">
<img src="video2.png" alt="视频封面图">
<h3>视频标题</h3>
<p>视频简介</p>
<button>播放</button>
<button>收藏</button>
</a>
</li>
<li>
<a href="#">
<img src="video3.png" alt="视频封面图">
<h3>视频标题</h3>
<p>视频简介</p>
<button>播放</button>
<button>收藏</button>
</a>
</li>
</ul>
</div>
<div class="classification">
<h2>视频分类</h2>
<ul>
<li><a href="#">题材一</a></li>
<li><a href="#">题材二</a></li>
<li><a href="#">题材三</a></li>
<li><a href="#">题材四</a></li>
<li><a href="#">题材五</a></li>
</ul>
</div>
</section>
<footer>
<div class="copyright">
<p>版权信息</p>
</div>
<div class="contact">
<p>联系方式</p>
</div>
<div class="help">
<p>帮助中心</p>
</div>
</footer>
</body>
</html>
```
CSS代码示例:
```
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #f0f0f0;
}
.logo img {
height: 50px;
}
.search input {
padding: 10px;
border: none;
border-radius: 5px;
}
.search button {
padding: 10px;
border: none;
border-radius: 5px;
background-color: #008CBA;
color: #fff;
cursor: pointer;
margin-left: 10px;
}
.user a {
margin-left: 10px;
text-decoration: none;
color: #333;
}
.user a:hover {
color: #008CBA;
}
.content {
display: flex;
justify-content: space-between;
padding: 20px;
}
.recommend ul {
list-style: none;
margin: 0;
padding: 0;
}
.recommend li {
margin-bottom: 20px;
}
.recommend a {
display: block;
text-decoration: none;
color: #333;
}
.recommend img {
width: 100%;
}
.recommend h3 {
margin: 10px 0;
}
.recommend p {
margin: 0;
}
.recommend button {
padding: 10px;
border: none;
border-radius: 5px;
background-color: #008CBA;
color: #fff;
cursor: pointer;
margin-right: 10px;
}
.classification ul {
list-style: none;
margin: 0;
padding: 0;
}
.classification li {
margin-bottom: 10px;
}
.classification a {
text-decoration: none;
color: #333;
}
.classification a:hover {
color: #008CBA;
}
footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #f0f0f0;
}
footer p {
margin: 0;
}
```
以上是一个简单的推荐视频内容的网站主页前端界面代码示例,可以根据实际需求进行修改和完善。
阅读全文