From 6f346506d3d467c5f1da1e6e5506390dc8360427 Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Sat, 19 Jul 2025 10:08:42 +0530 Subject: [PATCH] Added background --- src/constants/Categories.ts | 3 +- src/constants/Components.ts | 1 + .../code/Backgrounds/rippleGridCode.ts | 26 ++ .../Backgrounds/RippleGrid/RippleGrid.vue | 275 ++++++++++++++++++ src/demo/Backgrounds/RippleGridDemo.vue | 176 +++++++++++ 5 files changed, 480 insertions(+), 1 deletion(-) create mode 100644 src/constants/code/Backgrounds/rippleGridCode.ts create mode 100644 src/content/Backgrounds/RippleGrid/RippleGrid.vue create mode 100644 src/demo/Backgrounds/RippleGridDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 8e525aa..a00c736 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -95,7 +95,8 @@ export const CATEGORIES = [ 'Orb', 'Ballpit', 'Liquid Chrome', - 'Grid Distortion' + 'Grid Distortion', + 'Ripple Grid', ] } ]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 2c8bd01..b9a6e2a 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -82,6 +82,7 @@ const backgrounds = { 'ballpit': () => import('../demo/Backgrounds/BallpitDemo.vue'), 'liquid-chrome': () => import('../demo/Backgrounds/LiquidChromeDemo.vue'), 'grid-distortion': () => import('../demo/Backgrounds/GridDistortionDemo.vue'), + 'ripple-grid': () => import('../demo/Backgrounds/RippleGridDemo.vue'), }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/rippleGridCode.ts b/src/constants/code/Backgrounds/rippleGridCode.ts new file mode 100644 index 0000000..1fcb140 --- /dev/null +++ b/src/constants/code/Backgrounds/rippleGridCode.ts @@ -0,0 +1,26 @@ +import code from '@content/Backgrounds/RippleGrid/RippleGrid.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const rippleGrid: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/RippleGrid`, + installation: `npm install ogl`, + usage: ` + +`, + code +}; diff --git a/src/content/Backgrounds/RippleGrid/RippleGrid.vue b/src/content/Backgrounds/RippleGrid/RippleGrid.vue new file mode 100644 index 0000000..e30e827 --- /dev/null +++ b/src/content/Backgrounds/RippleGrid/RippleGrid.vue @@ -0,0 +1,275 @@ + + + diff --git a/src/demo/Backgrounds/RippleGridDemo.vue b/src/demo/Backgrounds/RippleGridDemo.vue new file mode 100644 index 0000000..c243412 --- /dev/null +++ b/src/demo/Backgrounds/RippleGridDemo.vue @@ -0,0 +1,176 @@ + + + + +