Skip to content

Commit

Permalink
feat: add particles component
Browse files Browse the repository at this point in the history
  • Loading branch information
selemondev committed Oct 8, 2024
1 parent 372c72e commit 1b1dec3
Show file tree
Hide file tree
Showing 5 changed files with 1,667 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/.vitepress/theme/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.fill-primary-light {
fill: #063528;
}

.fill-primary-dark {
fill: #0d9373;
}
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ import Demos from './src/components/Demos.vue'
<demo src="./src/example/marquee/Demo.vue" />

<demo src="./src/example/ripple/Demo.vue" />

<demo src="./src/example/particles/Demo.vue" />
11 changes: 11 additions & 0 deletions docs/src/example/particles/Demo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script setup lang='ts'>
import HeroParticles from './Particles.vue'
import HeroBackground from './ParticlesBackground.vue'
</script>

<template>
<div class="relative w-[600px] h-[400px]">
<HeroParticles :accelerate="true" class="absolute top-0" />
<HeroBackground />
</div>
</template>
Loading

0 comments on commit 1b1dec3

Please sign in to comment.