From ef4bf21da95a92e282c707a4a69b56619f465a1c Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Sat, 20 Dec 2025 22:32:22 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20New=20=20componen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/landing/Hero/Hero.vue | 6 +- src/constants/Categories.ts | 3 +- src/constants/Components.ts | 1 + src/constants/Information.ts | 8 + .../code/Backgrounds/pixelSnowCode.ts | 24 ++ .../Backgrounds/PixelSnow/PixelSnow.vue | 277 ++++++++++++++++++ src/demo/Backgrounds/PixelSnowDemo.vue | 170 +++++++++++ 7 files changed, 485 insertions(+), 4 deletions(-) create mode 100644 src/constants/code/Backgrounds/pixelSnowCode.ts create mode 100644 src/content/Backgrounds/PixelSnow/PixelSnow.vue create mode 100644 src/demo/Backgrounds/PixelSnowDemo.vue 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 @@ + + +