Added <Plasma /> Background

This commit is contained in:
Utkarsh-Singhal-26
2025-08-22 16:40:28 +05:30
parent 3360cc3124
commit 4ae33f2360
5 changed files with 361 additions and 1 deletions

View File

@@ -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'];
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', 'Plasma'];
export const UPDATED = [];
// Used for main sidebar navigation
@@ -102,6 +102,7 @@ export const CATEGORIES = [
'Dot Grid',
'Hyperspeed',
'Faulty Terminal',
'Plasma',
'Ripple Grid',
'Silk',
'Lightning',

View File

@@ -105,6 +105,7 @@ 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'),
};
export const componentMap = {

View File

@@ -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: `<template>
<div style="width: 100%; height: 600px; position: relative;">
<Plasma
color="#ff6b35"
:speed="0.6"
direction="forward"
:scale="1.1"
:opacity="0.8"
:mouseInteractive="true"
/>
</div>
</template>
<script setup lang="ts">
import Plasma from "./Plasma.vue";
</script>`
});