Skip to content

Commit c8a5386

Browse files
committed
feat: move DomeGallery styles to Tailwind classes
1 parent b2a63c3 commit c8a5386

File tree

5 files changed

+1120
-1
lines changed

5 files changed

+1120
-1
lines changed

src/constants/Categories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Highlighted sidebar items
2-
export const NEW = ['Liquid Ether', 'Staggered Menu', 'Pixel Blast', 'Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst'];
2+
export const NEW = ['Dome Gallery', 'Liquid Ether', 'Staggered Menu', 'Pixel Blast', 'Gradual Blur', 'Gradient Blinds', 'Bubble Menu', 'Prism', 'Plasma', 'Electric Border', 'Target Cursor', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Prismatic Burst'];
33
export const UPDATED = [];
44

55
// Used for main sidebar navigation
@@ -86,6 +86,7 @@ export const CATEGORIES = [
8686
'Tilted Card',
8787
'Glass Icons',
8888
'Decay Card',
89+
'Dome Gallery',
8990
'Flowing Menu',
9091
'Elastic Slider',
9192
'Stack',

src/constants/Components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const components = {
7070
'infinite-scroll': () => import('../demo/Components/InfiniteScrollDemo.vue'),
7171
'glass-icons': () => import('../demo/Components/GlassIconsDemo.vue'),
7272
'decay-card': () => import('../demo/Components/DecayCardDemo.vue'),
73+
'dome-gallery': () => import('../demo/Components/DomeGalleryDemo.vue'),
7374
'flowing-menu': () => import('../demo/Components/FlowingMenuDemo.vue'),
7475
'elastic-slider': () => import('../demo/Components/ElasticSliderDemo.vue'),
7576
'tilted-card': () => import('../demo/Components/TiltedCardDemo.vue'),
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import code from '@content/Components/DomeGallery/DomeGallery.vue?raw';
2+
import { createCodeObject } from '../../../types/code';
3+
4+
export const domeGallery = createCodeObject(code, 'Components/DomeGallery', {
5+
installation: `# No external dependencies required`,
6+
usage: `<template>
7+
<DomeGallery
8+
:images="[
9+
'https://images.unsplash.com/photo-1755331039789-7e5680e26e8f?q=80&w=774&auto=format&fit=crop',
10+
'https://images.unsplash.com/photo-1755569309049-98410b94f66d?q=80&w=772&auto=format&fit=crop',
11+
'https://images.unsplash.com/photo-1755497595318-7e5e3523854f?q=80&w=774&auto=format&fit=crop'
12+
]"
13+
:fit="0.8"
14+
fit-basis="auto"
15+
:min-radius="600"
16+
:segments="34"
17+
:drag-sensitivity="20"
18+
:enlarge-transition-ms="300"
19+
:grayscale="true"
20+
overlay-blur-color="#060010"
21+
image-border-radius="30px"
22+
opened-image-width="250px"
23+
opened-image-height="350px"
24+
/>
25+
</template>
26+
27+
<script setup lang="ts">
28+
import DomeGallery from "./DomeGallery.vue";
29+
</script>`
30+
});

0 commit comments

Comments
 (0)