Skip to content

Commit

Permalink
fix: sparkles
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jan 15, 2025
1 parent 98ae1fe commit fd533ce
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ import Meteors from '@stateless/Meteors'
import CompareAll from '@stateless/CompareAll'
import TextLoader from '@stateless/TextLoader'
import FloatAny from '@stateless/FloatAny'

Check warning on line 49 in src/pages/home/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unused import

Unused import FloatAny from '@stateless/FloatAny'
// import BackgroundBoxes from '@stateless/BackgroundBoxes'
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 @@ -115,7 +115,6 @@ const Home = () => {
if (!mouseEnterRef.current) return

const direction = getDirection(event, mouseEnterRef.current)
console.log('direction', direction)
switch (direction) {
case 0:
setEnterDirection('top')
Expand Down Expand Up @@ -341,7 +340,7 @@ const Home = () => {
>
<Meteors number={40} />
</section>
<section
{/* <section
style={{
marginBottom: 15,
fontSize: 20,
Expand All @@ -358,8 +357,8 @@ const Home = () => {
className="w-full h-full"
particleColor="#FFFFFF"
/>
</section>
{/* <section
</section> */}
<section
style={{
marginBottom: 15,
fontSize: 20,
Expand All @@ -371,7 +370,7 @@ const Home = () => {
className="bg-slate-900"
>
<BackgroundBoxes />
</section> */}
</section>
<section
onMouseEnter={handleMouseEnter}
ref={mouseEnterRef}
Expand Down

0 comments on commit fd533ce

Please sign in to comment.