Added <Prism /> Background

This commit is contained in:
Utkarsh-Singhal-26
2025-08-21 18:38:38 +05:30
parent 3360cc3124
commit d0b1a02d30
5 changed files with 646 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 = ['Prism', 'Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal', 'Pill Nav', 'Card Nav', 'Logo Loop'];
export const UPDATED = [];
// Used for main sidebar navigation
@@ -95,6 +95,7 @@ export const CATEGORIES = [
{
name: 'Backgrounds',
subcategories: [
'Prism',
'Aurora',
'Beams',
'Dark Veil',

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'),
'prism': () => import('../demo/Backgrounds/PrismDemo.vue'),
};
export const componentMap = {

View File

@@ -0,0 +1,10 @@
import code from '@content/Backgrounds/Prism/Prism.vue?raw';
import { createCodeObject } from '../../../types/code';
export const prism = createCodeObject(code, 'Backgrounds/Prism', {
installation: `npm install ogl`,
usage: `
<script setup lang="ts">
import Prism from "./Prism.vue";
</script>`
});