Init commit.
This commit is contained in:
302
temp.html
Normal file
302
temp.html
Normal file
@@ -0,0 +1,302 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>公司联系信息底部组件</title>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
|
||||
/>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #f5f7fa;
|
||||
color: #333;
|
||||
padding: 20px;
|
||||
line-height: 1.6;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
background: white;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
|
||||
padding: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.main-content h1 {
|
||||
color: #2c3e50;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 2px solid #f0f0f0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.main-content h1 i {
|
||||
margin-right: 10px;
|
||||
color: #6a11cb;
|
||||
}
|
||||
|
||||
/* 底部联系信息组件样式 */
|
||||
.footer-contact {
|
||||
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
||||
color: white;
|
||||
padding: 50px 0 20px;
|
||||
border-radius: 12px 12px 0 0;
|
||||
box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.footer-content {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 30px;
|
||||
}
|
||||
|
||||
.footer-section {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-size: 1.4rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
position: relative;
|
||||
padding-bottom: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer-title:after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 40px;
|
||||
height: 3px;
|
||||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.footer-title i {
|
||||
margin-right: 10px;
|
||||
color: #6a11cb;
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.contact-info li {
|
||||
margin-bottom: 15px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.contact-info i {
|
||||
width: 24px;
|
||||
margin-right: 15px;
|
||||
color: #6a11cb;
|
||||
font-size: 1.2rem;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.contact-info span {
|
||||
flex: 1;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.social-link {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 1.2rem;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.map-container {
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
height: 200px;
|
||||
background: #2c3e50;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.map-placeholder {
|
||||
color: #aaa;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.map-placeholder i {
|
||||
font-size: 2rem;
|
||||
margin-bottom: 10px;
|
||||
color: #6a11cb;
|
||||
}
|
||||
|
||||
.business-hours {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.business-hours li {
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.business-hours li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
max-width: 1200px;
|
||||
margin: 30px auto 0;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
font-size: 0.9rem;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 768px) {
|
||||
.footer-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.footer-section {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.footer-title {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="container">
|
||||
<div class="main-content">
|
||||
<h1><i class="fas fa-info-circle"></i> 页面内容区域</h1>
|
||||
<p>这是页面主要内容区域。向下滚动查看页面底部的公司联系信息组件。</p>
|
||||
<p>
|
||||
我们的产品采用先进的电解水技术,能够有效清除口腔细菌,保护牙齿健康。结合微气泡空化效应和次氯酸杀菌技术,提供双重清洁保护。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer-contact></footer-contact>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const { createApp } = Vue
|
||||
|
||||
// 底部联系信息组件
|
||||
const FooterContact = {
|
||||
template: `
|
||||
<footer class="footer-contact">
|
||||
<div class="footer-content">
|
||||
<div class="footer-section">
|
||||
<h3 class="footer-title"><i class="fas fa-map-marker-alt"></i> 公司地址</h3>
|
||||
<ul class="contact-info">
|
||||
<li>
|
||||
<i class="fas fa-building"></i>
|
||||
<span>健康科技有限公司<br>上海市浦东新区张江高科技园区博云路2号</span>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fas fa-phone"></i>
|
||||
<span>客服热线: 400-123-4567</span>
|
||||
</li>
|
||||
<li>
|
||||
<i class="fas fa-envelope"></i>
|
||||
<span>邮箱: info@healthtech.com</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<h3 class="footer-title"><i class="fas fa-clock"></i> 营业时间</h3>
|
||||
<ul class="business-hours">
|
||||
<li><span>星期一至星期五</span> <span>9:00 - 18:00</span></li>
|
||||
<li><span>星期六</span> <span>10:00 - 16:00</span></li>
|
||||
<li><span>星期日</span> <span>休息</span></li>
|
||||
<li><span>节假日</span> <span>详见公告</span></li>
|
||||
</ul>
|
||||
|
||||
<div class="social-links">
|
||||
<a href="#" class="social-link"><i class="fab fa-weixin"></i></a>
|
||||
<a href="#" class="social-link"><i class="fab fa-weibo"></i></a>
|
||||
<a href="#" class="social-link"><i class="fab fa-linkedin-in"></i></a>
|
||||
<a href="#" class="social-link"><i class="fab fa-facebook-f"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<h3 class="footer-title"><i class="fas fa-map-marked-alt"></i> 地图导航</h3>
|
||||
<div class="map-container">
|
||||
<div class="map-placeholder">
|
||||
<i class="fas fa-map"></i>
|
||||
<p>公司位置地图</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer-bottom">
|
||||
<p>© 2023 健康科技有限公司 版权所有 | 沪ICP备12345678号</p>
|
||||
</div>
|
||||
</footer>
|
||||
`,
|
||||
}
|
||||
|
||||
// 主应用
|
||||
const app = createApp({})
|
||||
|
||||
app.component('FooterContact', FooterContact)
|
||||
app.mount('#app')
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user