Files
love-key-web/src/components/PageAdvantage.vue

111 lines
2.3 KiB
Vue
Raw Normal View History

2026-02-25 18:49:41 +08:00
<template>
<section class="page page-advantage">
2026-02-26 20:26:22 +08:00
<div class="content-wrapper">
<div class="image-side">
<div class="phone-placeholder"><span>手机截图</span></div>
2026-02-25 18:49:41 +08:00
</div>
2026-02-26 20:26:22 +08:00
<div class="text-side">
<h2 class="section-title">
Every opening is an<br />
unknown encounter
</h2>
<p class="section-desc">
每一次开启都是一场未知的邂逅探索全新的交互体验让沟通充满惊喜与期待
</p>
2026-02-25 18:49:41 +08:00
</div>
</div>
2026-02-26 20:26:22 +08:00
<div class="deco deco-1">💎</div>
<div class="deco deco-2">🎁</div>
2026-02-25 18:49:41 +08:00
</section>
</template>
<script setup>
</script>
2026-02-26 20:26:22 +08:00
<style scoped lang="less">
2026-02-25 18:49:41 +08:00
.page-advantage {
width: 100%;
height: 100vh;
2026-02-26 20:26:22 +08:00
background: #ffffff;
color: #222;
2026-02-25 18:49:41 +08:00
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
2026-02-26 20:26:22 +08:00
.content-wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: @gap-section;
max-width: @content-max;
width: 100%;
padding: 0 @gap-content;
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
.text-side { flex: 1; }
2026-02-25 18:49:41 +08:00
.section-title {
2026-02-26 20:26:22 +08:00
font-size: @font-title;
font-weight: 800;
line-height: 1.25;
margin-bottom: clamp(12px, 1.2vh, 28px);
color: #1a1a1a;
2026-02-25 18:49:41 +08:00
}
.section-desc {
2026-02-26 20:26:22 +08:00
font-size: @font-desc;
line-height: 1.8;
color: #888;
max-width: clamp(260px, 22vw, 480px);
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
.image-side {
2026-02-25 18:49:41 +08:00
flex: 1;
display: flex;
justify-content: center;
}
2026-02-26 20:26:22 +08:00
.phone-placeholder {
width: @phone-w-main;
height: @phone-h-main;
border: 2px dashed #ddd;
border-radius: clamp(16px, 1.5vw, 36px);
2026-02-25 18:49:41 +08:00
display: flex;
align-items: center;
justify-content: center;
2026-02-26 20:26:22 +08:00
color: #bbb;
font-size: @font-small;
background: #fafafa;
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
.deco {
position: absolute;
font-size: clamp(24px, 2.5vw, 60px);
opacity: 0.15;
animation: float 3.5s ease-in-out infinite;
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
.deco-1 { top: 15%; left: 8%; animation-delay: 0.3s; }
.deco-2 { bottom: 12%; right: 10%; animation-delay: 1.2s; }
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
@media (max-width: 768px) {
.content-wrapper {
flex-direction: column-reverse;
gap: 32px;
padding: 0 24px;
2026-02-25 18:49:41 +08:00
}
2026-02-26 20:26:22 +08:00
.section-title { text-align: center; }
.section-desc { text-align: center; }
.phone-placeholder { width: 180px; height: 333px; }
2026-02-25 18:49:41 +08:00
}
</style>