feat: implement index section 2

Co-authored-by: Sylvanysc <Sylvanysc@users.noreply.github.com>
Co-authored-by: xudeyu444 <xudeyu444@users.noreply.github.com>
Co-authored-by: 奕 <a18355849597@outlook.com>
This commit is contained in:
2025-05-30 01:05:59 +08:00
parent 2ba90f730b
commit 901a80d9a0
5 changed files with 170 additions and 2 deletions
+12 -1
View File
@@ -44,7 +44,18 @@ onMounted(() => {
</script>
<template>
<ScrollPanel ref="scrollPanel" style="width: 100vw; height: 100vh">
<ScrollPanel
ref="scrollPanel"
style="width: 100vw; height: 100vh"
:pt="{
content: {
class: 'snap-y snap-mandatory scroll-smooth',
style: {
scrollDuration: '2s',
},
},
}"
>
<header
class="fixed w-full z-10 px-12"
:style="{ '--s-progress': sProgress }"