From b05118bd61562f5a5a6ce38d0daf87da22aa609f Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Mon, 2 Jun 2025 23:07:15 +0800 Subject: [PATCH] fix: implement index section 7 Co-authored-by: xudeyu444 Co-authored-by: Sylvanysc --- app.vue | 6 +++++- pages/index.vue | 54 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/app.vue b/app.vue index ae33a11..ab693a6 100644 --- a/app.vue +++ b/app.vue @@ -31,7 +31,11 @@ const handleScrollOrResize = () => { const scrollTop = (scrollPanel.value as unknown as { lastScrollTop: number }) .lastScrollTop; const clientHeight = scrollPanel.value?.$el.clientHeight; - sProgress.value = 1 - Math.min(scrollTop / clientHeight, 1); + sProgress.value = + 1 - + range(0, 1, scrollTop / clientHeight) + + 1 - + Math.abs(range(-0.5, 0.5, scrollTop / clientHeight - 6) * 2); }; onMounted(() => { diff --git a/pages/index.vue b/pages/index.vue index 826af9a..b59ed52 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -350,8 +350,8 @@ onMounted(() => { class="font-(family-name:--s-title-font) text-(--p-primary-400) font-normal" >COMMUNITY
- 社区共筑  精挑细选 - + 社区共筑  精挑细选 +
@@ -528,6 +528,56 @@ onMounted(() => { />
+
+
+ +
+ +
+
+

星火应用商店

+

+ SPARK STORE +

+
+

+ 更多精彩,
+ 邀您下载体验。 +

+

+ Linux 软件生态的构建并非依赖个体的孤立努力,而需要全社区共同参与;
+ 只有当大家的“星火”聚集一处,方可引发“燎原之势”。 +

+ + 前往下载 + +
+ +
+ +
+