Skip to content

Commit e13f7b5

Browse files
committed
fix(website): move download CTA to first screen and add scroll hint
1 parent 040b303 commit e13f7b5

2 files changed

Lines changed: 37 additions & 8 deletions

File tree

‎website/app/download/page.tsx‎

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,24 @@ function AppMockup() {
138138
);
139139
}
140140

141+
/** 首屏滚动提示:暗示页面内容延续,避免用户误以为页面到此为止 */
142+
function ScrollHint() {
143+
return (
144+
<div
145+
className="absolute bottom-5 left-1/2 -translate-x-1/2 flex flex-col items-center gap-1.5 text-kb-text3 pointer-events-none"
146+
aria-hidden
147+
>
148+
<span className="text-[10px] tracking-[0.3em] uppercase">向下滚动</span>
149+
<span
150+
className="w-[18px] h-[30px] rounded-full border flex justify-center pt-1.5"
151+
style={{ borderColor: "var(--kb-border-strong)" }}
152+
>
153+
<span className="w-1 h-1.5 rounded-full scroll-hint-dot" style={{ background: "var(--kb-text3)" }} />
154+
</span>
155+
</div>
156+
);
157+
}
158+
141159
/* ---------- 页面 ---------- */
142160

143161
export default function DownloadPage() {
@@ -164,7 +182,7 @@ export default function DownloadPage() {
164182
return (
165183
<div className="pt-36 pb-8">
166184
{/* 标题区 */}
167-
<header className="text-center px-6 mb-16 relative">
185+
<header className="text-center px-6 mb-20 relative">
168186
<GlowOrb count={10} className="opacity-40" />
169187
<SectionReveal>
170188
<p className="text-sm tracking-[0.35em] text-kb-text3 uppercase mb-5">Download</p>
@@ -175,8 +193,16 @@ export default function DownloadPage() {
175193
免费、开源、本地优先。你的数据只属于你自己。
176194
</p>
177195
</SectionReveal>
196+
<ScrollHint />
178197
</header>
179198

199+
{/* 下载区(服务器直链 + 动态版本 + GitHub 备用源) */}
200+
<section className="max-w-3xl mx-auto px-6 mb-16">
201+
<SectionReveal>
202+
<DownloadCta />
203+
</SectionReveal>
204+
</section>
205+
180206
{/* 应用截图 Mockup */}
181207
<section className="max-w-4xl mx-auto px-6 mb-20">
182208
<SectionReveal>
@@ -187,13 +213,6 @@ export default function DownloadPage() {
187213
</SectionReveal>
188214
</section>
189215

190-
{/* 下载区(服务器直链 + 动态版本 + GitHub 备用源) */}
191-
<section className="max-w-3xl mx-auto px-6 mb-24">
192-
<SectionReveal>
193-
<DownloadCta />
194-
</SectionReveal>
195-
</section>
196-
197216
{/* 更新日志 */}
198217
<section className="max-w-3xl mx-auto px-6 mb-24">
199218
<SectionReveal className="mb-10">

‎website/app/globals.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,13 @@ body {
232232
::-webkit-scrollbar-thumb:hover {
233233
background: var(--kb-brand-400);
234234
}
235+
236+
/* 下载页滚动提示(向下滚动指示) */
237+
@keyframes scroll-hint-dot {
238+
0% { transform: translateY(0); opacity: 1; }
239+
70% { transform: translateY(10px); opacity: 0; }
240+
100% { transform: translateY(0); opacity: 0; }
241+
}
242+
.scroll-hint-dot {
243+
animation: scroll-hint-dot 1.8s ease-in-out infinite;
244+
}

0 commit comments

Comments
 (0)