// src/components/TestSuccess.tsx import React, { useState, useEffect } from 'react'; const TestSuccess = () => { const [particles, setParticles] = useState([]); useEffect(() => { const items = []; for (let i = 0; i < 25; i++) { const r = 140; const rmax = 180 + Math.random() * (241 - 180); const angle = Math.random() * Math.PI * 2; const x1 = 240 + Math.cos(angle) * r; const y1 = 240 + Math.sin(angle) * r; const x2 = 240 + Math.cos(angle) * rmax; const y2 = 240 + Math.sin(angle) * rmax; items.push({ id: i, x1, y1, x2, y2, dur: '2s', start: Math.floor(Math.random() * 10 * 100) / 100, delay: Math.floor((Math.random() * 10 + 0.5) * 100) / 100, scaleStart: Math.floor(Math.random() * 1.5 * 100) / 100, scaleEnd: Math.floor(Math.random() * 1.5 * 100) / 100 }); } setParticles(items); }, []); return ( // Changed bg-gray-50 to bg-black to match original Stylus 'background-color #000'
{particles.map((p) => ( ))}
); }; export default TestSuccess;