Merge branch 'main' into feat/plasma

This commit is contained in:
David
2025-08-22 22:16:52 +03:00
committed by GitHub
5 changed files with 661 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', 'Plasma'];
export const NEW = ['Prism', 'Plasma' '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

@@ -106,6 +106,7 @@ const backgrounds = {
'faulty-terminal': () => import('../demo/Backgrounds/FaultyTerminalDemo.vue'),
'light-rays': () => import('../demo/Backgrounds/LightRaysDemo.vue'),
'plasma': () => import('../demo/Backgrounds/PlasmaDemo.vue'),
'prism': () => import('../demo/Backgrounds/PrismDemo.vue'),
};
export const componentMap = {

View File

@@ -0,0 +1,25 @@
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: `<template>
<div style="width: 100%; height: 600px; position: relative;">
<Prism
animation-type="rotate"
:time-scale="0.5"
:height="3.5"
:base-width="5.5"
:scale="3.6"
:hue-shift="0"
:color-frequency="1"
:noise="0.5"
:glow="1"
/>
</div>
</template>
<script setup lang="ts">
import Prism from "./Prism.vue";
</script>`
});