diff --git a/src/components/landing/Hero/Hero.vue b/src/components/landing/Hero/Hero.vue index a273510..0d481c9 100644 --- a/src/components/landing/Hero/Hero.vue +++ b/src/components/landing/Hero/Hero.vue @@ -19,10 +19,10 @@ />
- - New 🎉 + + Christmas Special 🎁
- Light Pillar + Pixel Snow
diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 2cceb8f..7cd715b 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Color Bends', 'Ghost Cursor', 'Laser Flow', 'Liquid Ether', 'Pixel Blast', 'Floating Lines', 'Light Pillar']; +export const NEW = ['Color Bends', 'Ghost Cursor', 'Laser Flow', 'Liquid Ether', 'Pixel Blast', 'Floating Lines', 'Light Pillar', 'Pixel Snow']; export const UPDATED = []; // Used for main sidebar navigation @@ -130,6 +130,7 @@ export const CATEGORIES = [ 'Orb', 'Particles', 'Pixel Blast', + 'Pixel Snow', 'Plasma', 'Prism', 'Prismatic Burst', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 5426f0b..57bf847 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -122,6 +122,7 @@ const backgrounds = { 'color-bends': () => import('../demo/Backgrounds/ColorBendsDemo.vue'), 'floating-lines': () => import('../demo/Backgrounds/FloatingLinesDemo.vue'), 'light-pillar': () => import('../demo/Backgrounds/LightPillarDemo.vue'), + 'pixel-snow': () => import('../demo/Backgrounds/PixelSnowDemo.vue'), }; export const componentMap = { diff --git a/src/constants/Information.ts b/src/constants/Information.ts index 51758f1..4fbadc5 100644 --- a/src/constants/Information.ts +++ b/src/constants/Information.ts @@ -916,5 +916,13 @@ export const componentMetadata: ComponentMetadata = { name: 'LightPillar', docsUrl: 'https://vue-bits.dev/backgrounds/light-pillar', tags: [] + }, + 'Backgrounds/PixelSnow': { + videoUrl: '/assets/videos/pixelsnow.webm', + description: 'Falling pixelated snow effect with customizable density and speed.', + category: 'Backgrounds', + name: 'PixelSnow', + docsUrl: 'https://vue-bits.dev/backgrounds/pixel-snow', + tags: [] } }; diff --git a/src/constants/code/Backgrounds/pixelSnowCode.ts b/src/constants/code/Backgrounds/pixelSnowCode.ts new file mode 100644 index 0000000..27b35c5 --- /dev/null +++ b/src/constants/code/Backgrounds/pixelSnowCode.ts @@ -0,0 +1,24 @@ +import code from '@content/Backgrounds/PixelSnow/PixelSnow.vue?raw'; +import { createCodeObject } from '../../../types/code'; + +export const pixelSnow = createCodeObject(code, 'Backgrounds/PixelSnow', { + installation: `npm install three`, + usage: ` + +` +}); diff --git a/src/content/Backgrounds/PixelSnow/PixelSnow.vue b/src/content/Backgrounds/PixelSnow/PixelSnow.vue new file mode 100644 index 0000000..aa0d699 --- /dev/null +++ b/src/content/Backgrounds/PixelSnow/PixelSnow.vue @@ -0,0 +1,277 @@ + + + diff --git a/src/demo/Backgrounds/PixelSnowDemo.vue b/src/demo/Backgrounds/PixelSnowDemo.vue new file mode 100644 index 0000000..83fe4fe --- /dev/null +++ b/src/demo/Backgrounds/PixelSnowDemo.vue @@ -0,0 +1,170 @@ + + +