import { AnimatedGridPattern } from "@/components/ui/animated-grid-pattern";
import { cn } from "@/lib/utils";
const settings = {
numSquares: 30,
maxOpacity: 0.1,
width: 40,
repeatDelay: 1,
strokeDasharray: 0,
};
export default function Demo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="relative flex h-screen w-screen items-center justify-center overflow-hidden bg-background">
<AnimatedGridPattern
numSquares={s.numSquares}
maxOpacity={s.maxOpacity}
width={s.width}
duration={3}
repeatDelay={s.repeatDelay}
strokeDasharray={s.strokeDasharray}
className={cn(
"[mask-image:radial-gradient(500px_circle_at_center,white,transparent)]",
"inset-x-0 inset-y-[-30%] h-[200%] skew-y-12",
)}
/>
</div>
);
}