Skip to content

Commit

Permalink
feat: meteors and sparkles
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jan 15, 2025
1 parent 1a598a9 commit 396d6c8
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import TextLoader from '@stateless/TextLoader'
import BackgroundBoxes from '@stateless/BackgroundBoxes'
import TypeWriter from '@stateless/TypeWriter'
import SlideText from '@stateless/SlideText'
// import SparklesCore from '@stateless/Sparkles'
import SparklesCore from '@stateless/Sparkles'

import firstImage from '@assets/images/88-300x160.jpg'
import secondImage from '@assets/images/2-300x160.jpg'
Expand Down Expand Up @@ -304,6 +304,37 @@ const Home = () => {
]}
/>
</section>
<section
style={{
marginBottom: 15,
fontSize: 20,
height: 200,
width: 360,
background: '#111827',
position: 'relative',
overflow: 'hidden',
}}
>
<Meteors number={40} />
</section>
<section
style={{
marginBottom: 15,
fontSize: 20,
height: 200,
width: 360,
background: '#111827',
}}
>
<SparklesCore
background="transparent"
minSize={0.4}
maxSize={1}
particleDensity={1200}
className="w-full h-full"
particleColor="#FFFFFF"
/>
</section>
<section
style={{
marginBottom: 15,
Expand Down

0 comments on commit 396d6c8

Please sign in to comment.