第一页部分开发

This commit is contained in:
2026-02-26 20:26:22 +08:00
parent 23d9e73969
commit 47615475a5
14 changed files with 641 additions and 587 deletions

View File

@@ -2,228 +2,237 @@
<section class="page page-home">
<nav class="nav">
<div class="nav-logo">
<!-- 预留Logo图片位置 -->
<div class="logo-placeholder">LOGO</div>
<image src="/src/assets/images/logo-top.png" class="logo-img"></image>
<span class="logo-text">Key of Love</span>
</div>
<ul class="nav-links">
<li><a href="#" class="active">首页</a></li>
<li><a href="#">产品介绍</a></li>
<li><a href="#">核心优势</a></li>
<li><a href="#">联系我们</a></li>
<li><a href="#">Home</a></li>
<li><a href="#">Privacy Agreement</a></li>
</ul>
</nav>
<div class="bg-points"></div>
<div class="hero">
<div class="hero-content">
<!-- 预留主视觉图片位置 -->
<div class="hero-image-placeholder">
<span>主视觉图片</span>
<h1 class="hero-title">
Not just a tool but<br />
giving meaning to every click
</h1>
<div class="hero-buttons">
<a href="#" class="btn btn-primary">
<span class="btn-icon"></span> Android
</a>
<a href="#" class="btn btn-primary">
<span class="btn-icon">🍎</span> App Store
</a>
</div>
<h1 class="hero-title">LoveKeyOW</h1>
<p class="hero-subtitle">用心创造为爱而生</p>
<div class="hero-btn" @click="$emit('navigate', 1)">了解更多</div>
</div>
</div>
<div class="scroll-hint">
<div class="mouse">
<div class="wheel"></div>
<div class="hero-phones">
<img src="/src/assets/images/bg-top-phone.png" class="phone-main" />
</div>
<p>滚动探索</p>
<div class="deco deco-coin1">🪙</div>
<div class="deco deco-coin2">🏆</div>
<div class="deco deco-star1"></div>
<div class="deco deco-star2"></div>
</div>
</section>
</template>
<script setup>
defineEmits(['navigate'])
</script>
<style scoped>
<style scoped lang="less">
.page-home {
width: 100%;
height: 100vh;
background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 50%, #0d1137 100%);
color: #fff;
background: url('/src/assets/images/bg-top.png') center center / cover no-repeat;
color: #222;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.page-home::before {
content: '';
.bg-points {
position: absolute;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
top: -100px;
right: -100px;
border-radius: 50%;
}
.page-home::after {
content: '';
position: absolute;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
bottom: -50px;
left: -50px;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 90%;
height: 90%;
background: url('/src/assets/images/bg-top-points.png') center center / contain no-repeat;
z-index: 0;
pointer-events: none;
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 60px;
padding: 0 @nav-px;
height: @nav-h;
position: relative;
z-index: 10;
flex-shrink: 0;
}
.logo-placeholder {
width: 120px;
height: 40px;
border: 1px dashed rgba(255, 255, 255, 0.3);
.nav-logo {
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
border-radius: 6px;
gap: clamp(6px, 0.5vw, 12px);
.logo-img {
height: clamp(28px, 2.5vh, 52px);
}
}
.logo-text {
font-weight: 600;
color: #333;
font-size: @font-nav;
font-style: italic;
}
.nav-links {
display: flex;
gap: 36px;
}
.nav-links a {
font-size: 15px;
color: rgba(255, 255, 255, 0.7);
transition: color 0.3s;
position: relative;
}
.nav-links a:hover,
.nav-links a.active {
color: #fff;
}
.nav-links a.active::after {
content: '';
position: absolute;
bottom: -6px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #6366f1, #a855f7);
border-radius: 1px;
gap: clamp(16px, 2vw, 48px);
a {
font-size: @font-nav;
color: #000000;
transition: color 0.3s;
font-weight: 600;
&:hover { color: #00BFA5; }
}
}
.hero {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
justify-content: flex-start;
padding-top: clamp(10px, 1.5vh, 30px);
position: relative;
z-index: 10;
z-index: 1;
}
.hero-content {
text-align: center;
margin-bottom: clamp(20px, 2.5vh, 50px);
}
.hero-image-placeholder {
width: 280px;
height: 280px;
margin: 0 auto 40px;
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.3);
font-size: 16px;
background: rgba(255, 255, 255, 0.03);
.hero-emoji {
font-size: clamp(32px, 3.5vw, 72px);
margin-bottom: clamp(8px, 0.8vh, 16px);
}
.hero-title {
font-size: 56px;
font-weight: 700;
letter-spacing: 4px;
margin-bottom: 16px;
background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-size: @font-hero;
font-weight: 800;
line-height: 1.3;
color: #1a1a1a;
margin-bottom: clamp(16px, 2vh, 40px);
}
.hero-subtitle {
font-size: 20px;
color: rgba(255, 255, 255, 0.6);
letter-spacing: 8px;
margin-bottom: 48px;
.hero-buttons {
display: flex;
gap: clamp(10px, 1vw, 24px);
justify-content: center;
}
.hero-btn {
display: inline-block;
padding: 14px 48px;
background: linear-gradient(135deg, #6366f1, #a855f7);
.btn {
display: inline-flex;
align-items: center;
gap: clamp(6px, 0.5vw, 10px);
padding: clamp(10px, 0.8vh, 18px) clamp(20px, 1.8vw, 40px);
border-radius: 50px;
font-size: 16px;
font-size: @font-btn;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
letter-spacing: 2px;
}
.hero-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
.btn-primary {
background: #00BFA5;
color: #fff;
&:hover {
background: #00A98E;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 191, 165, 0.35);
}
}
.scroll-hint {
.btn-icon { font-size: 0.85em; }
.hero-phones {
position: absolute;
bottom: 40px;
bottom: 0;
left: 50%;
transform: translateX(-50%);
text-align: center;
z-index: 10;
animation: fadeInUp 1.5s ease infinite;
display: flex;
justify-content: center;
align-items: flex-end;
}
.mouse {
width: 24px;
height: 38px;
border: 2px solid rgba(255, 255, 255, 0.4);
border-radius: 12px;
margin: 0 auto 8px;
position: relative;
.phone-main {
height: clamp(320px, 52vh, 680px);
width: auto;
display: block;
}
.wheel {
width: 4px;
height: 8px;
background: rgba(255, 255, 255, 0.6);
border-radius: 2px;
.phone-placeholder {
border: 2px dashed #ddd;
border-radius: clamp(16px, 1.5vw, 32px);
display: flex;
align-items: center;
justify-content: center;
color: #bbb;
font-size: @font-small;
background: #fafafa;
}
.phone-center {
width: @phone-w-main;
height: @phone-h-main;
z-index: 2;
}
.phone-left {
width: @phone-w-side;
height: @phone-h-side;
transform: rotate(-6deg);
z-index: 1;
}
.phone-right {
width: @phone-w-side;
height: @phone-h-side;
transform: rotate(6deg);
z-index: 1;
}
.deco {
position: absolute;
top: 6px;
left: 50%;
transform: translateX(-50%);
animation: scrollWheel 1.5s ease infinite;
font-size: clamp(20px, 2.2vw, 52px);
z-index: 0;
animation: float 3s ease-in-out infinite;
}
.scroll-hint p {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
letter-spacing: 2px;
.deco-coin1 { top: 30%; left: 8%; animation-delay: 0s; }
.deco-coin2 { top: 25%; right: 8%; animation-delay: 0.5s; }
.deco-star1 { top: 50%; left: 15%; font-size: clamp(16px, 1.6vw, 38px); animation-delay: 1s; }
.deco-star2 { top: 45%; right: 15%; font-size: clamp(14px, 1.3vw, 32px); animation-delay: 1.5s; }
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
@keyframes scrollWheel {
0% { opacity: 1; transform: translateX(-50%) translateY(0); }
100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes fadeInUp {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
@media (max-width: 768px) {
.hero-phones { gap: 8px; }
.phone-center { width: 140px; height: 260px; }
.phone-left, .phone-right { width: 110px; height: 210px; }
.deco { display: none; }
}
</style>