mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-07 14:39:30 -07:00
Added <Galaxy /> background
This commit is contained in:
28
src/constants/code/Backgrounds/galaxyCode.ts
Normal file
28
src/constants/code/Backgrounds/galaxyCode.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import code from '@content/Backgrounds/Galaxy/Galaxy.vue?raw';
|
||||
import { createCodeObject } from '../../../types/code';
|
||||
|
||||
export const galaxy = createCodeObject(code, 'Backgrounds/Galaxy', {
|
||||
installation: `npm install ogl`,
|
||||
usage: `<template>
|
||||
// Basic usage
|
||||
<div class="relative w-full h-[600px]">
|
||||
<Galaxy />
|
||||
</div>
|
||||
|
||||
// With custom prop values
|
||||
<div class="relative w-full h-[600px]">
|
||||
<Galaxy
|
||||
:mouse-repulsion="true"
|
||||
:mouse-interaction="true"
|
||||
:density="1.5"
|
||||
:glow-intensity="0.5"
|
||||
:saturation="0.8"
|
||||
:hue-shift="240"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import Galaxy from "./Galaxy.vue";
|
||||
</script>`
|
||||
});
|
||||
Reference in New Issue
Block a user