Skip to content

Commit 63302cb

Browse files
authored
Merge branch 'main' into feat/bounce-cards
2 parents 67bae8e + b0bfed3 commit 63302cb

File tree

16 files changed

+2083
-4
lines changed

16 files changed

+2083
-4
lines changed

src/constants/Categories.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Highlighted sidebar items
2-
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel'];
2+
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal'];
33
export const UPDATED = [];
44

55
// Used for main sidebar navigation
@@ -63,6 +63,7 @@ export const CATEGORIES = [
6363
'Masonry',
6464
'Glass Surface',
6565
'Magic Bento',
66+
'Scroll Stack',
6667
'Profile Card',
6768
'Dock',
6869
'Gooey Nav',
@@ -81,7 +82,9 @@ export const CATEGORIES = [
8182
'Elastic Slider',
8283
'Stack',
8384
'Chroma Grid',
84-
'Bounce Cards'
85+
'Bounce Cards',
86+
'Counter',
87+
'Rolling Gallery'
8588
]
8689
},
8790
{
@@ -93,6 +96,7 @@ export const CATEGORIES = [
9396
'Dither',
9497
'Dot Grid',
9598
'Hyperspeed',
99+
'Faulty Terminal',
96100
'Ripple Grid',
97101
'Silk',
98102
'Lightning',

src/constants/Components.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ const components = {
7070
'stack': () => import('../demo/Components/StackDemo.vue'),
7171
'chroma-grid': () => import('../demo/Components/ChromaGridDemo.vue'),
7272
'bounce-cards': () => import('../demo/Components/BounceCardsDemo.vue'),
73+
'counter': () => import('../demo/Components/CounterDemo.vue'),
74+
'rolling-gallery': () => import('../demo/Components/RollingGalleryDemo.vue'),
75+
'scroll-stack': () => import('../demo/Components/ScrollStackDemo.vue'),
7376
};
7477

7578
const backgrounds = {
@@ -95,6 +98,7 @@ const backgrounds = {
9598
'grid-distortion': () => import('../demo/Backgrounds/GridDistortionDemo.vue'),
9699
'ripple-grid': () => import('../demo/Backgrounds/RippleGridDemo.vue'),
97100
'galaxy': () => import('../demo/Backgrounds/GalaxyDemo.vue'),
101+
'faulty-terminal': () => import('../demo/Backgrounds/FaultyTerminalDemo.vue'),
98102
};
99103

100104
export const componentMap = {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import code from '@content/Backgrounds/FaultyTerminal/FaultyTerminal.vue?raw';
2+
import { createCodeObject } from '../../../types/code';
3+
4+
export const faultyTerminal = createCodeObject(code, 'Backgrounds/FaultyTerminal', {
5+
installation: `npm install ogl`,
6+
usage: `<template>
7+
<div class="relative w-full h-[600px]">
8+
<FaultyTerminal
9+
:scale="1.5"
10+
:grid-mul="[2, 1]"
11+
:digit-size="1.2"
12+
:time-scale="1"
13+
:pause="false"
14+
:scanline-intensity="1"
15+
:glitch-amount="1"
16+
:flicker-amount="1"
17+
:noise-amp="1"
18+
:chromatic-aberration="0"
19+
:dither="0"
20+
:curvature="0"
21+
tint="#ffffff"
22+
:mouse-react="true"
23+
:mouse-strength="0.5"
24+
:page-load-animation="false"
25+
:brightness="1"
26+
/>
27+
</div>
28+
</template>
29+
30+
<script setup lang="ts">
31+
import FaultyTerminal from "./FaultyTerminal.vue";
32+
</script>`
33+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import code from '@content/Components/Counter/Counter.vue?raw';
2+
import { createCodeObject } from '../../../types/code';
3+
4+
export const counter = createCodeObject(code, 'Components/Counter', {
5+
installation: `npm i motion-v`,
6+
usage: `import Counter from './Counter.vue'
7+
8+
<Counter
9+
:value="1"
10+
:places="[100, 10, 1]"
11+
:fontSize="80"
12+
:padding="5"
13+
:gap="10"
14+
textColor="white"
15+
:fontWeight="900"
16+
/>`
17+
});
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import code from '@content/Components/RollingGallery/RollingGallery.vue?raw';
2+
import { createCodeObject } from '@/types/code.ts';
3+
4+
export const rollingGallery = createCodeObject(code, 'Components/RollingGallery', {
5+
installation: `npm install motion-v`,
6+
usage: `<template>
7+
<RollingGallery
8+
:autoplay="true"
9+
:pause-on-hover="true"
10+
:images="customImages"
11+
/>
12+
</template>
13+
14+
<script setup lang="ts">
15+
import RollingGallery from "./RollingGallery.vue";
16+
17+
const customImages = [
18+
"https://images.unsplash.com/photo-1528181304800-259b08848526?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
19+
"https://images.unsplash.com/photo-1506665531195-3566af2b4dfa?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
20+
"https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?q=80&w=3456&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
21+
"https://images.unsplash.com/photo-1495103033382-fe343886b671?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
22+
"https://images.unsplash.com/photo-1506781961370-37a89d6b3095?q=80&w=3264&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
23+
// Add more images as needed
24+
];
25+
</script>`
26+
});
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import code from '@content/Components/ScrollStack/ScrollStack.vue?raw';
2+
import { createCodeObject } from '../../../types/code';
3+
4+
export const scrollStack = createCodeObject(code, 'Components/ScrollStack', {
5+
installation: `npm install lenis`,
6+
usage: `<template>
7+
<ScrollStack>
8+
<ScrollStackItem>
9+
<h2>Card 1</h2>
10+
<p>This is the first card in the stack</p>
11+
</ScrollStackItem>
12+
<ScrollStackItem>
13+
<h2>Card 2</h2>
14+
<p>This is the second card in the stack</p>
15+
</ScrollStackItem>
16+
<ScrollStackItem>
17+
<h2>Card 3</h2>
18+
<p>This is the third card in the stack</p>
19+
</ScrollStackItem>
20+
</ScrollStack>
21+
</template>
22+
23+
<script setup lang="ts">
24+
import ScrollStack, { ScrollStackItem } from "./ScrollStack.vue";
25+
</script>`
26+
});

0 commit comments

Comments
 (0)