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..fa61237 --- /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..cf54d2c --- /dev/null +++ b/src/content/Backgrounds/Balatro/Balatro.vue @@ -0,0 +1,273 @@ + + + diff --git a/src/demo/Backgrounds/BalatroDemo.vue b/src/demo/Backgrounds/BalatroDemo.vue new file mode 100644 index 0000000..b0de718 --- /dev/null +++ b/src/demo/Backgrounds/BalatroDemo.vue @@ -0,0 +1,160 @@ + + + + +