Skip to content

The platform for continuously improving AI agents.

892 B
Raw Blame
import { cn } from "@/lib/utils";

/** Needs a `relative overflow-hidden` parent. */
function SplashArt({ className }: { className?: string }) {
  return (
    <div aria-hidden="true" className={cn("pointer-events-none absolute inset-0", className)}>
      <img
        alt=""
        className="absolute inset-0 h-full w-full animate-fade-in object-cover"
        src="/A2.png"
      />
      <img
        alt=""
        className="absolute inset-0 h-full w-full animate-fade-in object-cover mix-blend-screen [animation-delay:200ms]"
        src="/A1.png"
      />
    </div>
  );
}

export function SplashBackground({ children }: { children?: React.ReactNode }) {
  return (
    <div className="fixed inset-0 bg-auth-splash">
      <SplashArt />
      <div className="relative z-10 flex h-full items-center justify-center overflow-y-auto">
        {children}
      </div>
    </div>
  );
}