Merge pull request #63 from Gazoon007/feat/light-rays

Create <LightRays /> background
This commit is contained in:
David
2025-07-26 22:22:09 +03:00
committed by GitHub
5 changed files with 796 additions and 0 deletions

View File

@@ -114,6 +114,7 @@ export const CATEGORIES = [
'Liquid Chrome',
'Grid Distortion',
'Galaxy',
'Light Rays',
]
}
];

View File

@@ -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 = {

View File

@@ -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: `<template>
<div class="w-full h-[600px] relative">
<LightRays
rays-origin="top-center"
rays-color="#00ffff"
:rays-speed="1.5"
:light-spread="0.8"
:ray-length="1.2"
:follow-mouse="true"
:mouse-influence="0.1"
:noise-amount="0.1"
:distortion="0.05"
class-name="custom-rays"
/>
</div>
</template>
<script setup lang="ts">
import LightRays from "./LightRays.vue";
</script>`
});