Best Services - Welcome to Our Website
<header class='header'>
<div class='logo'>Logo</div>
<nav class='nav'>
<a href='#'>Home</a>
<a href='#'>Services</a>
<a href='#'>About</a>
<a href='#'>Contact</a>
</nav>
</header>
<section class='hero-section'>
<div class='hero-text'>
<h1>Welcome to our website</h1>
<p>We offer the best services for your needs</p>
<button>Learn more</button>
</div>
</section>
<style>
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #fff;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
<p>.logo {
font-size: 28px;
font-weight: bold;
}</p>
<p>.nav {
display: flex;
justify-content: center;
align-items: center;
}</p>
<p>.nav a {
margin: 0 10px;
text-decoration: none;
color: #333;
font-weight: bold;
}</p>
<p>.nav a:hover {
color: #f00;
}</p>
<p>.hero-section {
display: flex;
justify-content: center;
align-items: center;
height: 80vh;
background-image: url('https://images.unsplash.com/photo-1614135783993-7d1b3db8a7a2');
background-size: cover;
background-position: center;
}</p>
<p>.hero-text {
text-align: center;
color: #fff;
}</p>
<p>.hero-text h1 {
font-size: 48px;
font-weight: bold;
margin-bottom: 20px;
}</p>
<p>.hero-text p {
font-size: 24px;
margin-bottom: 30px;
}</p>
<p>button {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #f00;
color: #fff;
font-size: 18px;
cursor: pointer;
}</p>
<p>button:hover {
background-color: #f75;
}
</style></p>
原文地址: https://www.cveoy.top/t/topic/mLOU 著作权归作者所有。请勿转载和采集!