Skip to content

Commit 20b3f7b

Browse files
authored
feat: add new landing page (#49)
1 parent 7a9c31d commit 20b3f7b

18 files changed

+890
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"lucide-react": "^0.486.0",
5353
"lucide-vue-next": "^0.486.0",
5454
"radix-vue": "^1.9.17",
55-
"reka-ui": "^2.1.0",
55+
"reka-ui": "^2.1.1",
5656
"tailwind-merge": "^3.0.2",
5757
"tailwindcss": "^4.0.14",
5858
"tailwindcss-animate": "^1.0.7",
341 KB
Loading
273 KB
Loading
233 KB
Loading
245 KB
Loading
311 KB
Loading
241 KB
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script setup lang="ts">
2+
import {
3+
AccordionRoot,
4+
type AccordionRootEmits,
5+
type AccordionRootProps,
6+
useForwardPropsEmits,
7+
} from 'reka-ui'
8+
9+
const props = defineProps<AccordionRootProps>()
10+
const emits = defineEmits<AccordionRootEmits>()
11+
12+
const forwarded = useForwardPropsEmits(props, emits)
13+
</script>
14+
15+
<template>
16+
<AccordionRoot data-slot="accordion" v-bind="forwarded">
17+
<slot />
18+
</AccordionRoot>
19+
</template>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<script setup lang="ts">
2+
import { cn } from '@/lib/utils'
3+
import { AccordionContent, type AccordionContentProps } from 'reka-ui'
4+
import { computed, type HTMLAttributes } from 'vue'
5+
6+
const props = defineProps<AccordionContentProps & { class?: HTMLAttributes['class'] }>()
7+
8+
const delegatedProps = computed(() => {
9+
const { class: _, ...delegated } = props
10+
11+
return delegated
12+
})
13+
</script>
14+
15+
<template>
16+
<AccordionContent
17+
data-slot="accordion-content"
18+
v-bind="delegatedProps"
19+
class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
20+
>
21+
<div :class="cn('pt-0 pb-4', props.class)">
22+
<slot />
23+
</div>
24+
</AccordionContent>
25+
</template>

0 commit comments

Comments
 (0)