chore
This commit is contained in:
parent
46f86d4620
commit
76cc0a2707
|
@ -25,7 +25,8 @@ const colors = [
|
||||||
<div
|
<div
|
||||||
v-for="(col, i) in content"
|
v-for="(col, i) in content"
|
||||||
:key="i"
|
:key="i"
|
||||||
class="h-full w-full flex flex-col items-center justify-center"
|
class="h-full w-full flex flex-col items-center justify-center animated animated-fade-in-up animated-faster"
|
||||||
|
:class="`animated-delay-${i * 100}ms`"
|
||||||
>
|
>
|
||||||
<h2 :title="$t(col.title)" class="text-h2 w-full text-center text-7xl font-bold text-transparent" :class="colors[i]">
|
<h2 :title="$t(col.title)" class="text-h2 w-full text-center text-7xl font-bold text-transparent" :class="colors[i]">
|
||||||
{{ $t(col.title) }}
|
{{ $t(col.title) }}
|
||||||
|
|
|
@ -10,8 +10,14 @@ import { useSectionThree } from '~/config/pages/home/use-section-three'
|
||||||
import { useSectionTwo } from '~/config/pages/home/use-section-two'
|
import { useSectionTwo } from '~/config/pages/home/use-section-two'
|
||||||
|
|
||||||
const sectionOne = useSectionOne()
|
const sectionOne = useSectionOne()
|
||||||
|
const sectionOneEl = ref(null)
|
||||||
|
const sectionOneVis = useElementVisibility(sectionOneEl)
|
||||||
const sectionTwo = useSectionTwo()
|
const sectionTwo = useSectionTwo()
|
||||||
|
const sectionTwoEl = ref(null)
|
||||||
|
const sectionTwoVis = useElementVisibility(sectionTwoEl)
|
||||||
const sectionThree = useSectionThree()
|
const sectionThree = useSectionThree()
|
||||||
|
const sectionThreeEl = ref(null)
|
||||||
|
const sectionThreeVis = useElementVisibility(sectionThreeEl)
|
||||||
const sectionFour = useSectionFour()
|
const sectionFour = useSectionFour()
|
||||||
const sectionFive = useSectionFive()
|
const sectionFive = useSectionFive()
|
||||||
const sectionSix = useSectionSix()
|
const sectionSix = useSectionSix()
|
||||||
|
@ -27,7 +33,7 @@ const sectionNine = useSectionNine()
|
||||||
<SectionGradientCard :content="sectionOne.content" :topic="sectionOne.topic" />
|
<SectionGradientCard :content="sectionOne.content" :topic="sectionOne.topic" />
|
||||||
|
|
||||||
<!-- Section Two -->
|
<!-- Section Two -->
|
||||||
<Section class="border-b-2 border-dark/40 border-b-solid from-dark/30 bg-gradient-to-t dark:(border-light-50/10 from-light/5)">
|
<Section ref="sectionTwoEl" class="border-b-2 border-dark/40 border-b-solid from-dark/30 bg-gradient-to-t dark:(border-light-50/10 from-light/5)">
|
||||||
<Typography :title=" $t(sectionTwo.title) " :description=" $t(sectionTwo.description) " />
|
<Typography :title=" $t(sectionTwo.title) " :description=" $t(sectionTwo.description) " />
|
||||||
|
|
||||||
<div class="grid-row grid-cols-2 gap-18 py-10 md:(grid-cols-3 gap-10)" :class="`lg:grid-cols-${sectionTwo.content.length} lg:gap-2 `">
|
<div class="grid-row grid-cols-2 gap-18 py-10 md:(grid-cols-3 gap-10)" :class="`lg:grid-cols-${sectionTwo.content.length} lg:gap-2 `">
|
||||||
|
@ -35,6 +41,9 @@ const sectionNine = useSectionNine()
|
||||||
v-for="(content, i) in sectionTwo.content"
|
v-for="(content, i) in sectionTwo.content"
|
||||||
:key="i"
|
:key="i"
|
||||||
class="h-10 w-full flex justify-center"
|
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"
|
:href="content.href"
|
||||||
:title="$t(content.title)"
|
:title="$t(content.title)"
|
||||||
>
|
>
|
||||||
|
@ -47,12 +56,17 @@ const sectionNine = useSectionNine()
|
||||||
<Section text-center class="section-three">
|
<Section text-center class="section-three">
|
||||||
<Typography :title=" $t(sectionThree.title) " :topic=" $t(sectionThree.topic) " :description=" $t(sectionThree.description) " />
|
<Typography :title=" $t(sectionThree.title) " :topic=" $t(sectionThree.topic) " :description=" $t(sectionThree.description) " />
|
||||||
|
|
||||||
<div>
|
<div ref="sectionThreeEl">
|
||||||
<div class="grid-row py-10 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentPrimary.length}`">
|
<div
|
||||||
|
class="grid-row py-10 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentPrimary.length}`"
|
||||||
|
>
|
||||||
<ImageHover
|
<ImageHover
|
||||||
v-for="(content, i) in sectionThree.contentPrimary"
|
v-for="(content, i) in sectionThree.contentPrimary"
|
||||||
:key="i"
|
:key="i"
|
||||||
:href="content.href" :img="content.img" :topic="content.topic"
|
:href="content.href" :img="content.img" :topic="content.topic"
|
||||||
|
:class="[`animated-delay-${i * 100}ms`, {
|
||||||
|
'animated animated-fade-in-up animated-faster': sectionThreeVis,
|
||||||
|
}]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-row pb-10 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentSecondary.length}`">
|
<div class="grid-row pb-10 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentSecondary.length}`">
|
||||||
|
@ -60,6 +74,9 @@ const sectionNine = useSectionNine()
|
||||||
v-for="(content, i) in sectionThree.contentSecondary"
|
v-for="(content, i) in sectionThree.contentSecondary"
|
||||||
:key="i"
|
:key="i"
|
||||||
:href="content.href" :img="content.img" :topic="content.topic"
|
:href="content.href" :img="content.img" :topic="content.topic"
|
||||||
|
:class="[`animated-delay-${i * 100}ms`, {
|
||||||
|
'animated animated-fade-in-up animated-faster': sectionThreeVis,
|
||||||
|
}]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-row pb-20 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentThird.length}`">
|
<div class="grid-row pb-20 md:(grid-cols-2)" :class="`lg:grid-cols-${sectionThree.contentThird.length}`">
|
||||||
|
@ -67,6 +84,9 @@ const sectionNine = useSectionNine()
|
||||||
v-for="(content, i) in sectionThree.contentThird"
|
v-for="(content, i) in sectionThree.contentThird"
|
||||||
:key="i"
|
:key="i"
|
||||||
:href="content.href" :img="content.img" :topic="content.topic"
|
:href="content.href" :img="content.img" :topic="content.topic"
|
||||||
|
:class="[`animated-delay-${i * 100}ms`, {
|
||||||
|
'animated animated-fade-in-up': sectionThreeVis,
|
||||||
|
}]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -143,7 +163,7 @@ const sectionNine = useSectionNine()
|
||||||
|
|
||||||
<!-- Section Eight -->
|
<!-- Section Eight -->
|
||||||
<Section>
|
<Section>
|
||||||
<div class="grid-row gap-20 pb-20 lg:(grid-cols-4) md:(grid-cols-2)">
|
<div class="grid-row grid-cols-2 gap-20 pb-20 lg:(grid-cols-4)">
|
||||||
<div
|
<div
|
||||||
v-for="(content, i) in sectionEight.content"
|
v-for="(content, i) in sectionEight.content"
|
||||||
:key="i"
|
:key="i"
|
||||||
|
|
|
@ -44,6 +44,7 @@ export default defineConfig({
|
||||||
safelist: [
|
safelist: [
|
||||||
...Array(10).fill('').map((_, i) => `grid-cols-${i + 1}`),
|
...Array(10).fill('').map((_, i) => `grid-cols-${i + 1}`),
|
||||||
...Array(10).fill('').map((_, i) => `lg: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',
|
'i-solar-airbuds-left-bold-duotone',
|
||||||
'text-gradient-pink',
|
'text-gradient-pink',
|
||||||
'text-gradient-blue',
|
'text-gradient-blue',
|
||||||
|
|
Loading…
Reference in New Issue