Skip to content

Commit 8c94add

Browse files
authored
Merge pull request #97 from onmax/feat/infinite-menu
feat: add InfiniteMenu component
2 parents 36a8fba + e894093 commit 8c94add

File tree

5 files changed

+1187
-0
lines changed

5 files changed

+1187
-0
lines changed

src/constants/Categories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const CATEGORIES = [
8383
'Flying Posters',
8484
'Folder',
8585
'Card Swap',
86+
'Infinite Menu',
8687
'Infinite Scroll',
8788
'Tilted Card',
8889
'Glass Icons',

src/constants/Components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const components = {
8484
'scroll-stack': () => import('../demo/Components/ScrollStackDemo.vue'),
8585
'bubble-menu': () => import('../demo/Components/BubbleMenuDemo.vue'),
8686
'staggered-menu': () => import('../demo/Components/StaggeredMenuDemo.vue'),
87+
'infinite-menu': () => import('../demo/Components/InfiniteMenuDemo.vue'),
8788
};
8889

8990
const backgrounds = {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import code from '@/content/Components/InfiniteMenu/InfiniteMenu.vue?raw';
2+
import { createCodeObject } from '@/types/code';
3+
4+
export const infiniteMenu = createCodeObject(code, 'Components/InfiniteMenu', {
5+
usage: `<template>
6+
<InfiniteMenu :items="menuItems" />
7+
</template>
8+
9+
<script setup lang="ts">
10+
import InfiniteMenu from "./InfiniteMenu.vue";
11+
12+
const menuItems = [
13+
{
14+
image: 'https://images.unsplash.com/photo-1517180102446-f3ece451e9d8?w=800&h=800&fit=crop',
15+
title: 'Sarah Chen',
16+
description: 'UI/UX Designer',
17+
link: 'https://dribbble.com/'
18+
},
19+
{
20+
image: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&h=800&fit=crop',
21+
title: 'Mike Johnson',
22+
description: 'Frontend Developer',
23+
link: 'https://github.com/'
24+
},
25+
{
26+
image: 'https://images.unsplash.com/photo-1494790108755-2616b612b793?w=800&h=800&fit=crop',
27+
title: 'Emma Wilson',
28+
description: 'Product Designer',
29+
link: 'https://behance.net/'
30+
}
31+
];
32+
</script>`
33+
});

0 commit comments

Comments
 (0)