diff --git a/src/pages/HomePage/sections/Splash.tsx b/src/pages/HomePage/sections/Splash.tsx index de2da68..711585e 100644 --- a/src/pages/HomePage/sections/Splash.tsx +++ b/src/pages/HomePage/sections/Splash.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import Button from '@/components/ui/Button'; +import { motion } from 'motion/react'; export default function SplashSection() { const [isVisible, setIsVisible] = useState(true); @@ -22,30 +22,65 @@ export default function SplashSection() { setIsSplashing(true); setTimeout(() => { setIsVisible(false); - }, 1200); + }, 1500); }; + const droplets = Array.from({ length: 40 }).map((_, i) => { + const angle = (i / 40) * Math.PI * 2; + const distance = 200 + Math.random() * 300; + const tx = Math.cos(angle) * distance; + const ty = Math.sin(angle) * distance; + const scale = 0.5 + Math.random() * 1.5; + return { tx, ty, scale, delay: Math.random() * 0.15 }; + }); + return (