From 65c52eeb4789af57eae387448f9935d940189b66 Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Wed, 16 Jul 2025 18:59:14 +0530 Subject: [PATCH 1/2] Added background --- src/constants/Categories.ts | 3 +- src/constants/Components.ts | 1 + .../code/Backgrounds/liquidChromeCode.ts | 22 ++ .../Backgrounds/LiquidChrome/LiquidChrome.vue | 199 ++++++++++++++++++ src/demo/Backgrounds/LiquidChromeDemo.vue | 161 ++++++++++++++ 5 files changed, 385 insertions(+), 1 deletion(-) create mode 100644 src/constants/code/Backgrounds/liquidChromeCode.ts create mode 100644 src/content/Backgrounds/LiquidChrome/LiquidChrome.vue create mode 100644 src/demo/Backgrounds/LiquidChromeDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 2ceaea5..3cb0a8e 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -90,7 +90,8 @@ export const CATEGORIES = [ 'Threads', 'Grid Motion', 'Orb', - 'Ballpit' + 'Ballpit', + 'Liquid Chrome', ] } ]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index a6dba2d..3e00484 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -77,6 +77,7 @@ const backgrounds = { 'balatro': () => import('../demo/Backgrounds/BalatroDemo.vue'), 'orb': () => import('../demo/Backgrounds/OrbDemo.vue'), 'ballpit': () => import('../demo/Backgrounds/BallpitDemo.vue'), + 'liquid-chrome': () => import('../demo/Backgrounds/LiquidChromeDemo.vue'), }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/liquidChromeCode.ts b/src/constants/code/Backgrounds/liquidChromeCode.ts new file mode 100644 index 0000000..b33d535 --- /dev/null +++ b/src/constants/code/Backgrounds/liquidChromeCode.ts @@ -0,0 +1,22 @@ +import code from '@content/Backgrounds/LiquidChrome/LiquidChrome.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const liquidChrome: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/LiquidChrome`, + installation: `npm i ogl`, + usage: ` + +`, + code +}; diff --git a/src/content/Backgrounds/LiquidChrome/LiquidChrome.vue b/src/content/Backgrounds/LiquidChrome/LiquidChrome.vue new file mode 100644 index 0000000..e472401 --- /dev/null +++ b/src/content/Backgrounds/LiquidChrome/LiquidChrome.vue @@ -0,0 +1,199 @@ + + + diff --git a/src/demo/Backgrounds/LiquidChromeDemo.vue b/src/demo/Backgrounds/LiquidChromeDemo.vue new file mode 100644 index 0000000..8c6fe2b --- /dev/null +++ b/src/demo/Backgrounds/LiquidChromeDemo.vue @@ -0,0 +1,161 @@ + + + From 7423b9e068ae85cc3809a46363353a4fc1983edd Mon Sep 17 00:00:00 2001 From: Utkarsh-Singhal-26 Date: Thu, 17 Jul 2025 09:43:53 +0530 Subject: [PATCH 2/2] Updated background --- src/demo/Backgrounds/LiquidChromeDemo.vue | 76 ++++------------------- 1 file changed, 12 insertions(+), 64 deletions(-) diff --git a/src/demo/Backgrounds/LiquidChromeDemo.vue b/src/demo/Backgrounds/LiquidChromeDemo.vue index 8c6fe2b..845465e 100644 --- a/src/demo/Backgrounds/LiquidChromeDemo.vue +++ b/src/demo/Backgrounds/LiquidChromeDemo.vue @@ -6,75 +6,17 @@ - + - + - + - + - + - + @@ -159,3 +101,9 @@ const propData = [ } ]; + +