mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Added <Prism /> Background
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
10
src/constants/code/Backgrounds/prismCode.ts
Normal file
10
src/constants/code/Backgrounds/prismCode.ts
Normal 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>`
|
||||
});
|
||||
Reference in New Issue
Block a user