mirror of
https://github.com/DavidHDev/vue-bits.git
synced 2026-03-09 00:19:31 -06:00
address PR comments for Beams component
This commit is contained in:
@@ -59,6 +59,7 @@ export const CATEGORIES = [
|
|||||||
name: 'Backgrounds',
|
name: 'Backgrounds',
|
||||||
subcategories: [
|
subcategories: [
|
||||||
'Aurora',
|
'Aurora',
|
||||||
|
'Beams',
|
||||||
'Dot Grid',
|
'Dot Grid',
|
||||||
'Silk',
|
'Silk',
|
||||||
'Lightning',
|
'Lightning',
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export const beams: CodeObject = {
|
|||||||
:noise-intensity="1.75"
|
:noise-intensity="1.75"
|
||||||
:scale="0.2"
|
:scale="0.2"
|
||||||
:rotation="0"
|
:rotation="0"
|
||||||
class="w-full h-full"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -453,17 +453,3 @@ onUnmounted(() => {
|
|||||||
cleanup()
|
cleanup()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.beams-container {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.beams-container canvas {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -12,14 +12,11 @@
|
|||||||
:noise-intensity="noiseIntensity"
|
:noise-intensity="noiseIntensity"
|
||||||
:scale="scale"
|
:scale="scale"
|
||||||
:rotation="rotation"
|
:rotation="rotation"
|
||||||
class="w-full h-full"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Customize>
|
<Customize>
|
||||||
<div class="flex gap-4 items-center">
|
<PreviewColor title="Color" :model-value="lightColor" @update:model-value="lightColor = $event" />
|
||||||
<PreviewColor title="Color" :model-value="lightColor" @update:model-value="lightColor = $event" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<PreviewSlider
|
<PreviewSlider
|
||||||
title="Beam Width"
|
title="Beam Width"
|
||||||
|
|||||||
Reference in New Issue
Block a user