Skip to content

Commit 1f23e96

Browse files
committed
feat: animation for not found package
1 parent 726f68e commit 1f23e96

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

inertia/pages/home/components/main_section.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ defineOptions({
4040
</section>
4141

4242
<!-- Not found package section -->
43-
<div v-else class="h-96 flex flex-col items-center justify-center" :class="$attrs.class">
43+
<motion.div
44+
v-else
45+
class="h-96 flex flex-col items-center justify-center"
46+
:class="$attrs.class"
47+
:initial="{ opacity: 0, y: 30 }"
48+
:animate="{
49+
opacity: 1,
50+
y: 0,
51+
transition: { duration: 0.5, ease: 'easeOut' },
52+
}"
53+
>
4454
<p class="text-4xl font-semibold">No packages found !</p>
4555
<div class="mt-4 text-center text-base11 text-sm">
4656
If you think a package is missing here,
@@ -56,5 +66,5 @@ defineOptions({
5666
>
5767
Contribute on GitHub
5868
</Button>
59-
</div>
69+
</motion.div>
6070
</template>

0 commit comments

Comments
 (0)