mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Merge branch 'main' into feat/rolling-gallery
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Highlighted sidebar items
|
||||
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel'];
|
||||
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack'];
|
||||
export const UPDATED = [];
|
||||
|
||||
// Used for main sidebar navigation
|
||||
@@ -63,6 +63,7 @@ export const CATEGORIES = [
|
||||
'Masonry',
|
||||
'Glass Surface',
|
||||
'Magic Bento',
|
||||
'Scroll Stack',
|
||||
'Profile Card',
|
||||
'Dock',
|
||||
'Gooey Nav',
|
||||
|
||||
@@ -70,6 +70,7 @@ const components = {
|
||||
'stack': () => import('../demo/Components/StackDemo.vue'),
|
||||
'chroma-grid': () => import('../demo/Components/ChromaGridDemo.vue'),
|
||||
'rolling-gallery': () => import('../demo/Components/RollingGalleryDemo.vue'),
|
||||
'scroll-stack': () => import('../demo/Components/ScrollStackDemo.vue'),
|
||||
};
|
||||
|
||||
const backgrounds = {
|
||||
|
||||
26
src/constants/code/Components/scrollStackCode.ts
Normal file
26
src/constants/code/Components/scrollStackCode.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import code from '@content/Components/ScrollStack/ScrollStack.vue?raw';
|
||||
import { createCodeObject } from '../../../types/code';
|
||||
|
||||
export const scrollStack = createCodeObject(code, 'Components/ScrollStack', {
|
||||
installation: `npm install lenis`,
|
||||
usage: `<template>
|
||||
<ScrollStack>
|
||||
<ScrollStackItem>
|
||||
<h2>Card 1</h2>
|
||||
<p>This is the first card in the stack</p>
|
||||
</ScrollStackItem>
|
||||
<ScrollStackItem>
|
||||
<h2>Card 2</h2>
|
||||
<p>This is the second card in the stack</p>
|
||||
</ScrollStackItem>
|
||||
<ScrollStackItem>
|
||||
<h2>Card 3</h2>
|
||||
<p>This is the third card in the stack</p>
|
||||
</ScrollStackItem>
|
||||
</ScrollStack>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import ScrollStack, { ScrollStackItem } from "./ScrollStack.vue";
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user