An animated WebGL cosmic background with a procedural twinkling starfield and flowing nebula-like wave distortions rendered in real time with shaders.
import CosmicRift from "@/components/ui/cosmicrift"; export default function Default() { return ( <div className="w-full"> <CosmicRift height="500px" className="justify-center rounded-xl"> <div className="relative z-10 mx-auto flex max-w-md flex-col items-center gap-4 px-6 text-center"> <h1 className="text-4xl font-bold tracking-tight text-white sm:text-5xl"> Explore the Cosmic Rift </h1> <p className="text-balance text-white/70"> A WebGL-powered animated starfield with twinkling stars and flowing nebula-like waves. </p> </div> </CosmicRift> </div> ); }