diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index da10bcc..15e7b8b 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Prism', 'Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav', 'Logo Loop']; +export const NEW = ['Prism', 'Plasma' 'Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav', 'Logo Loop']; export const UPDATED = []; // Used for main sidebar navigation @@ -103,6 +103,7 @@ export const CATEGORIES = [ 'Dot Grid', 'Hyperspeed', 'Faulty Terminal', + 'Plasma', 'Ripple Grid', 'Silk', 'Lightning', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 2e7535c..df31a09 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -105,6 +105,7 @@ const backgrounds = { 'galaxy': () => import('../demo/Backgrounds/GalaxyDemo.vue'), 'faulty-terminal': () => import('../demo/Backgrounds/FaultyTerminalDemo.vue'), 'light-rays': () => import('../demo/Backgrounds/LightRaysDemo.vue'), + 'plasma': () => import('../demo/Backgrounds/PlasmaDemo.vue'), 'prism': () => import('../demo/Backgrounds/PrismDemo.vue'), }; diff --git a/src/constants/code/Backgrounds/plasmaCode.ts b/src/constants/code/Backgrounds/plasmaCode.ts new file mode 100644 index 0000000..bcd52ed --- /dev/null +++ b/src/constants/code/Backgrounds/plasmaCode.ts @@ -0,0 +1,22 @@ +import code from '@content/Backgrounds/Plasma/Plasma.vue?raw'; +import { createCodeObject } from '../../../types/code'; + +export const plasma = createCodeObject(code, 'Backgrounds/Plasma', { + installation: `npm install ogl`, + usage: ` + +` +}); diff --git a/src/content/Backgrounds/Plasma/Plasma.vue b/src/content/Backgrounds/Plasma/Plasma.vue new file mode 100644 index 0000000..bf70bc4 --- /dev/null +++ b/src/content/Backgrounds/Plasma/Plasma.vue @@ -0,0 +1,224 @@ + + + diff --git a/src/demo/Backgrounds/PlasmaDemo.vue b/src/demo/Backgrounds/PlasmaDemo.vue new file mode 100644 index 0000000..0993b11 --- /dev/null +++ b/src/demo/Backgrounds/PlasmaDemo.vue @@ -0,0 +1,112 @@ + + + + +