411 lines
9.8 KiB
PHP
411 lines
9.8 KiB
PHP
<main class="main-content">
|
||
<div class="container">
|
||
<section class="hero-section">
|
||
<div class="hero-content">
|
||
<h1>欢迎来到我们的网站</h1>
|
||
<p>我们提供专业的服务和优质的产品</p>
|
||
<a href="#" class="btn btn-primary">了解更多</a>
|
||
</div>
|
||
<div class="hero-image">
|
||
<img src="__STATIC__/images/hero.jpg" alt="欢迎图片">
|
||
</div>
|
||
</section>
|
||
|
||
<section class="features-section">
|
||
<h2 class="section-title">我们的特色</h2>
|
||
<div class="features-grid">
|
||
<div class="feature-card">
|
||
<div class="feature-icon">
|
||
<i class="layui-icon layui-icon-star"></i>
|
||
</div>
|
||
<h3>高品质服务</h3>
|
||
<p>我们致力于提供最优质的服务,满足客户的各种需求。</p>
|
||
</div>
|
||
<div class="feature-card">
|
||
<div class="feature-icon">
|
||
<i class="layui-icon layui-icon-diamond"></i>
|
||
</div>
|
||
<h3>专业团队</h3>
|
||
<p>我们拥有经验丰富的专业团队,为您提供最佳解决方案。</p>
|
||
</div>
|
||
<div class="feature-card">
|
||
<div class="feature-icon">
|
||
<i class="layui-icon layui-icon-heart"></i>
|
||
</div>
|
||
<h3>客户至上</h3>
|
||
<p>以客户需求为中心,提供个性化的服务和支持。</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="about-section">
|
||
<div class="about-content">
|
||
<h2 class="section-title">关于我们</h2>
|
||
<p>我们是一家专注于提供高质量服务的公司,成立于2010年。多年来,我们不断创新和发展,已经成为行业内的领先企业。</p>
|
||
<p>我们的使命是通过卓越的产品和服务,帮助客户实现他们的目标和愿景。</p>
|
||
<a href="#" class="btn btn-secondary">查看更多</a>
|
||
</div>
|
||
<div class="about-image">
|
||
<img src="__STATIC__/images/about.jpg" alt="关于我们">
|
||
</div>
|
||
</section>
|
||
|
||
<section class="products-section">
|
||
<h2 class="section-title">热门产品</h2>
|
||
<div class="products-grid">
|
||
<div class="product-card">
|
||
<img src="__STATIC__/images/product1.jpg" alt="产品1">
|
||
<h3>产品一</h3>
|
||
<p>产品描述信息,介绍产品的特点和优势。</p>
|
||
<a href="#" class="btn btn-small">查看详情</a>
|
||
</div>
|
||
<div class="product-card">
|
||
<img src="__STATIC__/images/product2.jpg" alt="产品2">
|
||
<h3>产品二</h3>
|
||
<p>产品描述信息,介绍产品的特点和优势。</p>
|
||
<a href="#" class="btn btn-small">查看详情</a>
|
||
</div>
|
||
<div class="product-card">
|
||
<img src="__STATIC__/images/product3.jpg" alt="产品3">
|
||
<h3>产品三</h3>
|
||
<p>产品描述信息,介绍产品的特点和优势。</p>
|
||
<a href="#" class="btn btn-small">查看详情</a>
|
||
</div>
|
||
<div class="product-card">
|
||
<img src="__STATIC__/images/product4.jpg" alt="产品4">
|
||
<h3>产品四</h3>
|
||
<p>产品描述信息,介绍产品的特点和优势。</p>
|
||
<a href="#" class="btn btn-small">查看详情</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="contact-section">
|
||
<h2 class="section-title">联系我们</h2>
|
||
<div class="contact-container">
|
||
<div class="contact-info">
|
||
<div class="contact-item">
|
||
<i class="layui-icon layui-icon-location"></i>
|
||
<p>地址:中国上海市浦东新区张江高科技园区</p>
|
||
</div>
|
||
<div class="contact-item">
|
||
<i class="layui-icon layui-icon-cellphone"></i>
|
||
<p>电话:400-123-4567</p>
|
||
</div>
|
||
<div class="contact-item">
|
||
<i class="layui-icon layui-icon-email"></i>
|
||
<p>邮箱:info@example.com</p>
|
||
</div>
|
||
</div>
|
||
<div class="contact-form">
|
||
<form action="#" method="post">
|
||
<div class="form-group">
|
||
<input type="text" name="name" placeholder="您的姓名">
|
||
</div>
|
||
<div class="form-group">
|
||
<input type="email" name="email" placeholder="您的邮箱">
|
||
</div>
|
||
<div class="form-group">
|
||
<textarea name="message" placeholder="您的留言"></textarea>
|
||
</div>
|
||
<button type="submit" class="btn btn-primary">提交</button>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</main>
|
||
|
||
<style>
|
||
.main-content {
|
||
padding: 50px 0;
|
||
background-color: #f8f9fa;
|
||
}
|
||
|
||
.container {
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
padding: 0 15px;
|
||
}
|
||
|
||
.section-title {
|
||
text-align: center;
|
||
margin-bottom: 40px;
|
||
font-size: 32px;
|
||
color: #333;
|
||
}
|
||
|
||
/* 英雄区域样式 */
|
||
.hero-section {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 80px;
|
||
}
|
||
|
||
.hero-content {
|
||
flex: 1;
|
||
padding-right: 50px;
|
||
}
|
||
|
||
.hero-content h1 {
|
||
font-size: 48px;
|
||
margin-bottom: 20px;
|
||
color: #333;
|
||
}
|
||
|
||
.hero-content p {
|
||
font-size: 18px;
|
||
margin-bottom: 30px;
|
||
color: #666;
|
||
}
|
||
|
||
.hero-image {
|
||
flex: 1;
|
||
}
|
||
|
||
.hero-image img {
|
||
max-width: 100%;
|
||
border-radius: 10px;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
||
}
|
||
|
||
/* 按钮样式 */
|
||
.btn {
|
||
display: inline-block;
|
||
padding: 12px 30px;
|
||
border-radius: 5px;
|
||
text-decoration: none;
|
||
font-weight: bold;
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.btn-primary {
|
||
background-color: #3492ED;
|
||
color: white;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background-color: #2a7fd9;
|
||
}
|
||
|
||
.btn-secondary {
|
||
background-color: #6c757d;
|
||
color: white;
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
background-color: #5a6268;
|
||
}
|
||
|
||
.btn-small {
|
||
padding: 8px 15px;
|
||
font-size: 14px;
|
||
}
|
||
|
||
/* 特色部分样式 */
|
||
.features-section {
|
||
margin-bottom: 80px;
|
||
}
|
||
|
||
.features-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 30px;
|
||
}
|
||
|
||
.feature-card {
|
||
background-color: white;
|
||
padding: 30px;
|
||
border-radius: 10px;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||
text-align: center;
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
.feature-card:hover {
|
||
transform: translateY(-10px);
|
||
}
|
||
|
||
.feature-icon {
|
||
font-size: 48px;
|
||
color: #3492ED;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.feature-card h3 {
|
||
margin-bottom: 15px;
|
||
color: #333;
|
||
}
|
||
|
||
.feature-card p {
|
||
color: #666;
|
||
}
|
||
|
||
/* 关于我们部分样式 */
|
||
.about-section {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 80px;
|
||
}
|
||
|
||
.about-content {
|
||
flex: 1;
|
||
padding-right: 50px;
|
||
}
|
||
|
||
.about-content h2 {
|
||
text-align: left;
|
||
}
|
||
|
||
.about-content p {
|
||
margin-bottom: 20px;
|
||
color: #666;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.about-image {
|
||
flex: 1;
|
||
}
|
||
|
||
.about-image img {
|
||
max-width: 100%;
|
||
border-radius: 10px;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
||
}
|
||
|
||
/* 产品部分样式 */
|
||
.products-section {
|
||
margin-bottom: 80px;
|
||
}
|
||
|
||
.products-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 20px;
|
||
}
|
||
|
||
.product-card {
|
||
background-color: white;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
.product-card:hover {
|
||
transform: translateY(-10px);
|
||
}
|
||
|
||
.product-card img {
|
||
width: 100%;
|
||
height: 200px;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.product-card h3 {
|
||
padding: 15px 15px 5px;
|
||
color: #333;
|
||
}
|
||
|
||
.product-card p {
|
||
padding: 0 15px 15px;
|
||
color: #666;
|
||
}
|
||
|
||
.product-card .btn {
|
||
margin: 0 15px 15px;
|
||
}
|
||
|
||
/* 联系我们部分样式 */
|
||
.contact-section {
|
||
margin-bottom: 50px;
|
||
}
|
||
|
||
.contact-container {
|
||
display: flex;
|
||
background-color: white;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
|
||
}
|
||
|
||
.contact-info {
|
||
flex: 1;
|
||
padding: 40px;
|
||
background-color: #3492ED;
|
||
color: white;
|
||
}
|
||
|
||
.contact-item {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.contact-item i {
|
||
font-size: 24px;
|
||
margin-right: 15px;
|
||
}
|
||
|
||
.contact-form {
|
||
flex: 2;
|
||
padding: 40px;
|
||
}
|
||
|
||
.form-group {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-group input,
|
||
.form-group textarea {
|
||
width: 100%;
|
||
padding: 12px;
|
||
border: 1px solid #ddd;
|
||
border-radius: 5px;
|
||
font-size: 16px;
|
||
}
|
||
|
||
.form-group textarea {
|
||
height: 150px;
|
||
resize: vertical;
|
||
}
|
||
|
||
/* 响应式设计 */
|
||
@media (max-width: 992px) {
|
||
.hero-section,
|
||
.about-section {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.hero-content,
|
||
.about-content {
|
||
padding-right: 0;
|
||
margin-bottom: 30px;
|
||
}
|
||
|
||
.features-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
|
||
.products-grid {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
|
||
.contact-container {
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 576px) {
|
||
.features-grid,
|
||
.products-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.hero-content h1 {
|
||
font-size: 36px;
|
||
}
|
||
}
|
||
</style>
|