From 6705330900830f72dfaee1a2260b466b7a171f0d Mon Sep 17 00:00:00 2001 From: msavulescu Date: Mon, 14 Jul 2025 21:54:26 +0300 Subject: [PATCH] Migrated Balatro background component. --- src/constants/Categories.ts | 1 + src/constants/Components.ts | 3 +- src/constants/code/Backgrounds/balatroCode.ts | 19 ++ src/content/Backgrounds/Balatro/Balatro.vue | 280 ++++++++++++++++++ src/demo/Backgrounds/BalatroDemo.vue | 161 ++++++++++ 5 files changed, 463 insertions(+), 1 deletion(-) create mode 100644 src/constants/code/Backgrounds/balatroCode.ts create mode 100644 src/content/Backgrounds/Balatro/Balatro.vue create mode 100644 src/demo/Backgrounds/BalatroDemo.vue diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 5730838..2fc214b 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -80,6 +80,7 @@ export const CATEGORIES = [ 'Hyperspeed', 'Silk', 'Lightning', + 'Balatro', 'Letter Glitch', 'Particles', 'Shape Blur', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 6bec4cf..168b7aa 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -73,7 +73,8 @@ const backgrounds = { 'beams': () => import('../demo/Backgrounds/BeamsDemo.vue'), 'grid-motion': () => import('../demo/Backgrounds/GridMotionDemo.vue'), 'hyperspeed': () => import('../demo/Backgrounds/HyperspeedDemo.vue'), - 'shape-blur': () => import('../demo/Backgrounds/ShapeBlurDemo.vue') + 'shape-blur': () => import('../demo/Backgrounds/ShapeBlurDemo.vue'), + 'balatro': () => import('../demo/Backgrounds/BalatroDemo.vue') }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/balatroCode.ts b/src/constants/code/Backgrounds/balatroCode.ts new file mode 100644 index 0000000..e747813 --- /dev/null +++ b/src/constants/code/Backgrounds/balatroCode.ts @@ -0,0 +1,19 @@ +import code from '@content/Backgrounds/Balatro/Balatro.vue?raw'; +import type { CodeObject } from '../../../types/code'; + +export const balatro: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/Balatro`, + installation: `npm install ogl`, + usage: ` + +`, + code +}; diff --git a/src/content/Backgrounds/Balatro/Balatro.vue b/src/content/Backgrounds/Balatro/Balatro.vue new file mode 100644 index 0000000..95a5ae4 --- /dev/null +++ b/src/content/Backgrounds/Balatro/Balatro.vue @@ -0,0 +1,280 @@ + + + + + diff --git a/src/demo/Backgrounds/BalatroDemo.vue b/src/demo/Backgrounds/BalatroDemo.vue new file mode 100644 index 0000000..bd6b9b8 --- /dev/null +++ b/src/demo/Backgrounds/BalatroDemo.vue @@ -0,0 +1,161 @@ + + + + +