refactor(components): 优化动画组件代码结构并移除冗余样式

style(pages): 使用实用类替换内联样式
refactor(composables): 简化页面标题模板逻辑
docs(components): 添加详细注释说明动画逻辑
This commit is contained in:
2026-04-27 02:28:49 +08:00
parent 044042fe7e
commit 76e7b4b817
5 changed files with 98 additions and 276 deletions
+2 -11
View File
@@ -64,20 +64,11 @@ watch(() => appStore.isAppLoading, async (isLoading) => {
<HomeIntro ref="homeIntroRef" />
<HomeHero ref="homeHeroRef" />
<section class="next-section">
<section class="grid min-h-[100svh] place-items-center">
<h2>Next Section</h2>
</section>
<section id="work" class="work-section" data-cursor-label="Read more">
<section id="work" class="grid min-h-[100svh] place-items-center" data-cursor-label="Read more">
<p>{{ t('home.welcome') }}</p>
</section>
</main>
</template>
<style scoped>
.next-section,
.work-section {
min-height: 100svh;
display: grid;
place-items: center;
}
</style>