diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 646629f..9234c53 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -59,6 +59,7 @@ export const CATEGORIES = [ name: 'Backgrounds', subcategories: [ 'Aurora', + 'Beams', 'Dot Grid', 'Silk', 'Lightning', @@ -70,4 +71,4 @@ export const CATEGORIES = [ 'Threads', ], } -]; \ No newline at end of file +]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index ac70fc8..d1c9376 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -54,6 +54,7 @@ const backgrounds = { 'iridescence': () => import("../demo/Backgrounds/IridescenceDemo.vue"), 'threads': () => import("../demo/Backgrounds/ThreadsDemo.vue"), 'aurora': () => import("../demo/Backgrounds/AuroraDemo.vue"), + 'beams': () => import("../demo/Backgrounds/BeamsDemo.vue"), }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/beamsCode.ts b/src/constants/code/Backgrounds/beamsCode.ts new file mode 100644 index 0000000..753e6d9 --- /dev/null +++ b/src/constants/code/Backgrounds/beamsCode.ts @@ -0,0 +1,36 @@ +import code from '@content/Backgrounds/Beams/Beams.vue?raw' +import type { CodeObject } from '../../../types/code' + +export const beams: CodeObject = { + cli: `npx jsrepo add https://vue-bits.dev/ui/Backgrounds/Beams`, + installation: `npm install three`, + usage: ` + + + +`, + code +} diff --git a/src/content/Backgrounds/Beams/Beams.vue b/src/content/Backgrounds/Beams/Beams.vue new file mode 100644 index 0000000..48441d4 --- /dev/null +++ b/src/content/Backgrounds/Beams/Beams.vue @@ -0,0 +1,455 @@ + + + diff --git a/src/demo/Backgrounds/BeamsDemo.vue b/src/demo/Backgrounds/BeamsDemo.vue new file mode 100644 index 0000000..3907233 --- /dev/null +++ b/src/demo/Backgrounds/BeamsDemo.vue @@ -0,0 +1,180 @@ + + + + +