docs: add showcase page (#3659)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Hugo Richard
2025-04-02 13:06:46 +02:00
committed by GitHub
parent b3a6b861cd
commit 36c24ffe5c
16 changed files with 473 additions and 18 deletions

View File

@@ -14,6 +14,7 @@ const props = withDefaults(defineProps<{
color?: string
size?: { min: number, max: number }
speed?: 'slow' | 'normal' | 'fast'
isIndex?: boolean
}>(), {
starCount: 50,
color: 'var(--ui-primary)',
@@ -21,7 +22,8 @@ const props = withDefaults(defineProps<{
min: 1,
max: 3
}),
speed: 'normal'
speed: 'normal',
isIndex: false
})
const route = useRoute()
@@ -53,7 +55,7 @@ const twinkleDuration = computed(() => {
</script>
<template>
<div class="absolute pointer-events-none z-[-1] inset-y-0 left-4 right-4 lg:right-[50%] overflow-hidden">
<div class="absolute pointer-events-none z-[-1] overflow-hidden" :class="isIndex ? 'inset-y-0 left-4 right-4 lg:right-[50%]' : 'inset-0'">
<div
v-for="star in stars"
:key="star.id"