diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 6de8594..5730838 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -67,7 +67,8 @@ export const CATEGORIES = [ 'Glass Icons', 'Decay Card', 'Flowing Menu', - 'Elastic Slider' + 'Elastic Slider', + 'Stack' ] }, { diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 8fb37fa..6bec4cf 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -34,8 +34,8 @@ const textAnimations = { 'scramble-text': () => import("../demo/TextAnimations/ScrambleTextDemo.vue"), 'true-focus': () => import("../demo/TextAnimations/TrueFocusDemo.vue"), 'scroll-float': () => import("../demo/TextAnimations/ScrollFloatDemo.vue"), - 'scroll-reveal': ()=> import("../demo/TextAnimations/ScrollRevealDemo.vue"), - 'rotating-text': ()=> import("../demo/TextAnimations/RotatingTextDemo.vue"), + 'scroll-reveal': () => import("../demo/TextAnimations/ScrollRevealDemo.vue"), + 'rotating-text': () => import("../demo/TextAnimations/RotatingTextDemo.vue"), 'glitch-text': () => import("../demo/TextAnimations/GlitchTextDemo.vue"), }; @@ -55,7 +55,8 @@ const components = { 'decay-card': () => import('../demo/Components/DecayCardDemo.vue'), 'flowing-menu': () => import('../demo/Components/FlowingMenuDemo.vue'), 'elastic-slider': () => import('../demo/Components/ElasticSliderDemo.vue'), - 'tilted-card': () => import('../demo/Components/TiltedCardDemo.vue') + 'tilted-card': () => import('../demo/Components/TiltedCardDemo.vue'), + 'stack': () => import('../demo/Components/StackDemo.vue'), }; const backgrounds = { diff --git a/src/constants/code/Components/stackCode.ts b/src/constants/code/Components/stackCode.ts new file mode 100644 index 0000000..09721f0 --- /dev/null +++ b/src/constants/code/Components/stackCode.ts @@ -0,0 +1,26 @@ +import code from '@content/Components/Stack/Stack.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const stack: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Components/Stack`, + usage: ` + +`, + code +}; diff --git a/src/content/Components/Stack/Stack.vue b/src/content/Components/Stack/Stack.vue new file mode 100644 index 0000000..bb86e62 --- /dev/null +++ b/src/content/Components/Stack/Stack.vue @@ -0,0 +1,145 @@ + + + diff --git a/src/demo/Components/StackDemo.vue b/src/demo/Components/StackDemo.vue new file mode 100644 index 0000000..17d634b --- /dev/null +++ b/src/demo/Components/StackDemo.vue @@ -0,0 +1,123 @@ + + +