diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 562fe21..f7a4991 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -114,6 +114,7 @@ export const CATEGORIES = [ 'Liquid Chrome', 'Grid Distortion', 'Galaxy', + 'Light Rays', ] } ]; diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 018d058..e5871f0 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -100,6 +100,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..776d1b3 --- /dev/null +++ b/src/demo/Backgrounds/LightRaysDemo.vue @@ -0,0 +1,243 @@ + + + + +