From 76cc0a27075d468cb85d9d1031911b767b6e18d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E9=91=AB?= <1219654535@qq.com> Date: Fri, 19 May 2023 19:45:34 +0800 Subject: [PATCH] chore --- components/section/GradientCard.vue | 3 ++- pages/index.vue | 28 ++++++++++++++++++++++++---- uno.config.ts | 1 + 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/components/section/GradientCard.vue b/components/section/GradientCard.vue index 654865b..1285bec 100644 --- a/components/section/GradientCard.vue +++ b/components/section/GradientCard.vue @@ -25,7 +25,8 @@ const colors = [

{{ $t(col.title) }} diff --git a/pages/index.vue b/pages/index.vue index cad3358..c5e86d3 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -10,8 +10,14 @@ import { useSectionThree } from '~/config/pages/home/use-section-three' import { useSectionTwo } from '~/config/pages/home/use-section-two' const sectionOne = useSectionOne() +const sectionOneEl = ref(null) +const sectionOneVis = useElementVisibility(sectionOneEl) const sectionTwo = useSectionTwo() +const sectionTwoEl = ref(null) +const sectionTwoVis = useElementVisibility(sectionTwoEl) const sectionThree = useSectionThree() +const sectionThreeEl = ref(null) +const sectionThreeVis = useElementVisibility(sectionThreeEl) const sectionFour = useSectionFour() const sectionFive = useSectionFive() const sectionSix = useSectionSix() @@ -27,7 +33,7 @@ const sectionNine = useSectionNine() -
+
@@ -35,6 +41,9 @@ const sectionNine = useSectionNine() v-for="(content, i) in sectionTwo.content" :key="i" class="h-10 w-full flex justify-center" + :class="[`animated-delay-${i * 100}ms`, { + 'animated animated-fade-in-up animated-faster': sectionTwoVis, + }]" :href="content.href" :title="$t(content.title)" > @@ -47,12 +56,17 @@ const sectionNine = useSectionNine()
-
-
+
+
@@ -60,6 +74,9 @@ const sectionNine = useSectionNine() v-for="(content, i) in sectionThree.contentSecondary" :key="i" :href="content.href" :img="content.img" :topic="content.topic" + :class="[`animated-delay-${i * 100}ms`, { + 'animated animated-fade-in-up animated-faster': sectionThreeVis, + }]" />
@@ -67,6 +84,9 @@ const sectionNine = useSectionNine() v-for="(content, i) in sectionThree.contentThird" :key="i" :href="content.href" :img="content.img" :topic="content.topic" + :class="[`animated-delay-${i * 100}ms`, { + 'animated animated-fade-in-up': sectionThreeVis, + }]" />
@@ -143,7 +163,7 @@ const sectionNine = useSectionNine()
-
+
`grid-cols-${i + 1}`), ...Array(10).fill('').map((_, i) => `lg:grid-cols-${i + 1}`), + ...Array(11).fill('').map((_, i) => `animated-delay-${i * 100}ms`), 'i-solar-airbuds-left-bold-duotone', 'text-gradient-pink', 'text-gradient-blue',