diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 1e7c583..33fc732 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -112,6 +112,7 @@ export const CATEGORIES = [ 'Liquid Chrome', 'Grid Distortion', 'Galaxy', + 'Light Rays', ] } ]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index c7d2540..a108ff4 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -98,6 +98,7 @@ const backgrounds = { 'ripple-grid': () => import('../demo/Backgrounds/RippleGridDemo.vue'), 'galaxy': () => import('../demo/Backgrounds/GalaxyDemo.vue'), 'faulty-terminal': () => import('../demo/Backgrounds/FaultyTerminalDemo.vue'), + 'light-rays': () => import('../demo/Backgrounds/LightRaysDemo.vue'), }; export const componentMap = { diff --git a/src/constants/code/Backgrounds/lightRaysCode.ts b/src/constants/code/Backgrounds/lightRaysCode.ts new file mode 100644 index 0000000..a168350 --- /dev/null +++ b/src/constants/code/Backgrounds/lightRaysCode.ts @@ -0,0 +1,26 @@ +import code from '@content/Backgrounds/LightRays/LightRays.vue?raw'; +import { createCodeObject } from '@/types/code'; + +export const lightRays = createCodeObject(code, 'Backgrounds/LightRays', { + installation: `npm install ogl`, + usage: ` + +` +}); diff --git a/src/content/Backgrounds/LightRays/LightRays.vue b/src/content/Backgrounds/LightRays/LightRays.vue new file mode 100644 index 0000000..1f10b0a --- /dev/null +++ b/src/content/Backgrounds/LightRays/LightRays.vue @@ -0,0 +1,525 @@ + + + diff --git a/src/demo/Backgrounds/LightRaysDemo.vue b/src/demo/Backgrounds/LightRaysDemo.vue new file mode 100644 index 0000000..43e49d8 --- /dev/null +++ b/src/demo/Backgrounds/LightRaysDemo.vue @@ -0,0 +1,262 @@ + + +