diff --git a/src/components/AboutSolutions.tsx b/src/components/AboutSolutions.tsx index f2a83f8..470c749 100644 --- a/src/components/AboutSolutions.tsx +++ b/src/components/AboutSolutions.tsx @@ -1,38 +1,56 @@ "use client"; +import { useEffect, useState } from "react"; + export function AboutSolutions() { + const totalCells = 2000; + const [active, setActive] = useState([]); + + // randomly activate some squares every 0.8 s + useEffect(() => { + const interval = setInterval(() => { + const newActive = Array.from({ length: 20 }, () => + Math.floor(Math.random() * totalCells) + ); + setActive(newActive); + }, 800); + return () => clearInterval(interval); + }, []); + return (
- {/* Square grid background */} + {/* Animated grid background */}