diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index fa91fe0..77e872d 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav', 'Logo Loop', 'Electric Border']; +export const NEW = ['Prism', 'Plasma', 'Electric Border', '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 @@ -96,6 +96,7 @@ export const CATEGORIES = [ { name: 'Backgrounds', subcategories: [ + 'Prism', 'Aurora', 'Beams', 'Dark Veil', @@ -103,6 +104,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 250db56..5d22f15 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -106,6 +106,8 @@ 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'), }; export const componentMap = { 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/constants/code/Backgrounds/prismCode.ts b/src/constants/code/Backgrounds/prismCode.ts new file mode 100644 index 0000000..f620522 --- /dev/null +++ b/src/constants/code/Backgrounds/prismCode.ts @@ -0,0 +1,25 @@ +import code from '@content/Backgrounds/Prism/Prism.vue?raw'; +import { createCodeObject } from '../../../types/code'; + +export const prism = createCodeObject(code, 'Backgrounds/Prism', { + 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/content/Backgrounds/Prism/Prism.vue b/src/content/Backgrounds/Prism/Prism.vue new file mode 100644 index 0000000..f33ab11 --- /dev/null +++ b/src/content/Backgrounds/Prism/Prism.vue @@ -0,0 +1,459 @@ + + + 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 @@ + + + + + diff --git a/src/demo/Backgrounds/PrismDemo.vue b/src/demo/Backgrounds/PrismDemo.vue new file mode 100644 index 0000000..16b553a --- /dev/null +++ b/src/demo/Backgrounds/PrismDemo.vue @@ -0,0 +1,174 @@ + + + + +