请参考网址https://www.ixigua.com/?wid_try=1,写一个类似的html页面,要求给出完整的布局框架代码
时间: 2023-05-28 18:01:17 浏览: 185
网页布局框架
<!DOCTYPE html>
<html>
<head>
<title>iXigua</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
margin: 0;
padding: 0;
}
.header{
background-color: #131313;
height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 40px;
}
.logo{
font-size: 30px;
font-weight: bold;
color: white;
}
.navigation{
display: flex;
align-items: center;
}
.navigation a{
margin-left: 30px;
font-size: 18px;
color: white;
text-decoration: none;
transition: all 0.3s ease;
}
.navigation a:hover{
color: #FF3B3F;
}
.hero-section{
background-image: url("https://cdn.pixabay.com/photo/2017/02/01/22/02/mountains-2031539_1280.jpg");
height: 600px;
background-size: cover;
background-position: center center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
}
.hero-section h1{
font-size: 60px;
line-height: 80px;
margin-bottom: 30px;
}
.hero-section p{
font-size: 28px;
line-height: 40px;
margin-bottom: 50px;
}
.hero-section button{
background-color: #FF3B3F;
color: white;
padding: 15px 40px;
font-size: 18px;
font-weight: bold;
border-radius: 50px;
transition: all 0.3s ease;
cursor: pointer;
}
.hero-section button:hover{
background-color: white;
color: #FF3B3F;
border: 2px solid #FF3B3F;
}
.features{
padding: 100px 0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
background-color: #F9F9F9;
text-align: center;
}
.feature{
flex-basis: 300px;
padding: 50px;
margin: 30px;
background-color: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.feature h2{
font-size: 24px;
margin-bottom: 30px;
}
.feature p{
font-size: 18px;
line-height: 30px;
}
.get-started{
background-color: #FF3B3F;
color: white;
padding: 100px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.get-started h2{
font-size: 48px;
margin-bottom: 50px;
}
.get-started button{
background-color: white;
color: #FF3B3F;
padding: 15px 40px;
font-size: 24px;
font-weight: bold;
border-radius: 50px;
transition: all 0.3s ease;
cursor: pointer;
margin-top: 30px;
border: none;
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.get-started button:hover{
background-color: #FF3B3F;
color: white;
border: none;
}
.footer{
background-color: #131313;
color: white;
padding: 50px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
.footer p{
flex-basis: 100%;
text-align: center;
}
.footer a{
color: white;
text-decoration: none;
margin-left: 10px;
margin-right: 10px;
font-size: 18px;
transition: all 0.3s ease;
}
.footer a:hover{
color: #FF3B3F;
}
@media only screen and (max-width: 768px){
.header{
height: auto;
flex-direction: column;
padding: 20px;
}
.navigation{
margin-top: 20px;
}
.hero-section h1{
font-size: 42px;
line-height: 60px;
}
.hero-section p{
font-size: 20px;
line-height: 30px;
}
.hero-section button{
font-size: 16px;
padding: 10px 30px;
}
.features{
padding: 50px 0;
}
.feature{
flex-basis: auto;
padding: 30px;
margin: 20px;
}
.get-started{
padding: 50px;
}
.get-started h2{
font-size: 36px;
}
.get-started button{
font-size: 20px;
padding: 10px 30px;
}
.footer{
padding: 30px;
}
}
</style>
</head>
<body>
<header class="header">
<h1 class="logo">iXigua</h1>
<nav class="navigation">
<a href="#">Home</a>
<a href="#">Features</a>
<a href="#">Pricing</a>
<a href="#">Contact</a>
</nav>
</header>
<section class="hero-section">
<h1>The Ultimate Video Platform</h1>
<p>Experience the power of our state-of-the-art platform.</p>
<button>Get Started</button>
</section>
<section class="features">
<div class="feature">
<h2>Fast and Reliable</h2>
<p>Our platform is built to deliver videos quickly and reliably, so you can enjoy a seamless viewing experience.</p>
</div>
<div class="feature">
<h2>HD Quality</h2>
<p>With iXigua, you can watch your favorite videos in stunning high-definition, bringing every detail to life.</p>
</div>
<div class="feature">
<h2>Great Selection</h2>
<p>From trending clips to full-length movies, our vast library of content has something for everyone.</p>
</div>
</section>
<section class="get-started">
<h2>Ready to Get Started?</h2>
<button>Get Started Now</button>
</section>
<footer class="footer">
<p>© 2022 iXigua. All rights reserved. | <a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a> | <a href="#">FAQs</a></p>
</footer>
</body>
</html>
阅读全文