Skip to content

Commit bce67c4

Browse files
committed
🎉 feat: animation
1 parent 2af8cd1 commit bce67c4

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/components/fern/sponsor.vue

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
2-
<section
3-
class="flex flex-col w-full max-w-5xl mx-auto mt-4 fern-gap"
4-
>
5-
<div ref="scope" />
2+
<section class="flex flex-col w-full max-w-5xl mx-auto mt-4 fern-gap" ref="scope">
63
<motion.h2
74
class="text-5xl lg:text-6xl !leading-[4rem] sm:text-center font-bold mb-4 bg-clip-text text-transparent bg-gradient-to-tl from-rose-400 to-fuchsia-400"
85
v-bind="flyIn()"
@@ -84,11 +81,7 @@
8481
}}
8582
</h5>
8683
<p>
87-
{{
88-
dayjs()
89-
.from(dayjs(sponsor.createdAt))
90-
.replace('in', 'for')
91-
}}
84+
{{ sponsor.duration }}
9285
</p>
9386
</section>
9487
</a>
@@ -138,11 +131,7 @@
138131
}}
139132
</h6>
140133
<p>
141-
{{
142-
dayjs()
143-
.from(dayjs(sponsor.createdAt))
144-
.replace('in', 'for')
145-
}}
134+
{{ sponsor.duration }}
146135
</p>
147136
</section>
148137
</a>

0 commit comments

Comments
 (0)