All files / src/components AppBackground.tsx

0% Statements 0/1
0% Branches 0/1
0% Functions 0/1
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
import MeshGradient from './MeshGradient';
 
interface AppBackgroundProps {
  className?: string;
}
 
/**
 * The app's shared background layer: animated mesh gradient + dotted canvas
 * overlay. Renders as an absolutely-positioned layer that fills its parent,
 * so callers stay in control of layout. Place your foreground content in a
 * sibling `relative z-10` container.
 */
export default function AppBackground({ className = '' }: AppBackgroundProps) {
  return (
    <div className={`absolute inset-0 overflow-hidden ${className}`} aria-hidden="true">
      <MeshGradient />
      <div className="app-dotted-canvas absolute inset-0" />
    </div>
  );
}