mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 22:49:31 -07:00
Migrate <CircularGallery />
This commit is contained in:
@@ -47,6 +47,7 @@ export const CATEGORIES = [
|
||||
'Pixel Card',
|
||||
'Carousel',
|
||||
'Spotlight Card',
|
||||
'Circular Gallery',
|
||||
'Flying Posters',
|
||||
'Card Swap',
|
||||
'Infinite Scroll',
|
||||
|
||||
@@ -35,6 +35,7 @@ const components = {
|
||||
'pixel-card': () => import("../demo/Components/PixelCardDemo.vue"),
|
||||
'carousel': () => import("../demo/Components/CarouselDemo.vue"),
|
||||
'spotlight-card': () => import("../demo/Components/SpotlightCardDemo.vue"),
|
||||
'circular-gallery': () => import("../demo/Components/CircularGalleryDemo.vue"),
|
||||
'flying-posters': () => import("../demo/Components/FlyingPostersDemo.vue"),
|
||||
'card-swap': () => import("../demo/Components/CardSwapDemo.vue"),
|
||||
'infinite-scroll': () => import("../demo/Components/InfiniteScrollDemo.vue"),
|
||||
|
||||
27
src/constants/code/Components/circularGalleryCode.ts
Normal file
27
src/constants/code/Components/circularGalleryCode.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import code from '@content/Components/CircularGallery/CircularGallery.vue?raw'
|
||||
import type { CodeObject } from '../../../types/code'
|
||||
|
||||
export const circularGallery: CodeObject = {
|
||||
cli: `npx jsrepo add https://vue-bits.dev/ui/Components/CircularGallery`,
|
||||
installation: `npm install ogl`,
|
||||
usage: `<template>
|
||||
<CircularGallery
|
||||
:items="[
|
||||
{ image: 'https://picsum.photos/800/600?random=1', text: 'Beautiful Nature' },
|
||||
{ image: 'https://picsum.photos/800/600?random=2', text: 'City Life' },
|
||||
{ image: 'https://picsum.photos/800/600?random=3', text: 'Ocean Views' }
|
||||
]"
|
||||
:bend="3"
|
||||
text-color="#ffffff"
|
||||
:border-radius="0.05"
|
||||
font="bold 30px Arial"
|
||||
:scroll-speed="2"
|
||||
:scroll-ease="0.05"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import CircularGallery from "./CircularGallery.vue";
|
||||
</script>`,
|
||||
code
|
||||
}
|
||||
Reference in New Issue
Block a user