"use client"; import React, { useEffect, useState } from "react"; import { ShaderGradientCanvas, ShaderGradient } from "@shadergradient/react"; const ShaderGradientBackground = () => { const [supported, setSupported] = useState(true); useEffect(() => { try { const canvas = document.createElement("canvas"); const gl = canvas.getContext("webgl") || canvas.getContext("experimental-webgl"); if (!gl) setSupported(false); } catch { setSupported(false); } }, []); if (!supported) return null; return (
{/* Sphere 1 - Links oben */} {/* Sphere 2 - Rechts mitte */} {/* Sphere 3 - Unten links */}
); }; export default ShaderGradientBackground;