mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Merge branch 'main' into feat/plasma
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', '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',
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
25
src/constants/code/Backgrounds/prismCode.ts
Normal file
25
src/constants/code/Backgrounds/prismCode.ts
Normal 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>`
|
||||
});
|
||||
Reference in New Issue
Block a user