({ children, className }: GridBackgroundProps)
| 4 | } |
| 5 | |
| 6 | export function GridBackground({ children, className }: GridBackgroundProps) { |
| 7 | return ( |
| 8 | <div className={className}> |
| 9 | <div |
| 10 | className="absolute inset-0 dark:hidden" |
| 11 | style={{ |
| 12 | backgroundImage: |
| 13 | "linear-gradient(oklch(from var(--foreground) l c h / 0.06) 1px, transparent 1px), linear-gradient(90deg, oklch(from var(--foreground) l c h / 0.06) 1px, transparent 1px)", |
| 14 | backgroundSize: "40px 40px", |
| 15 | maskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)", |
| 16 | WebkitMaskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)", |
| 17 | }} |
| 18 | /> |
| 19 | |
| 20 | <div |
| 21 | className="absolute inset-0 hidden dark:block" |
| 22 | style={{ |
| 23 | backgroundImage: |
| 24 | "linear-gradient(oklch(from var(--foreground) l c h / 0.03) 1px, transparent 1px), linear-gradient(90deg, oklch(from var(--foreground) l c h / 0.03) 1px, transparent 1px)", |
| 25 | backgroundSize: "40px 40px", |
| 26 | maskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)", |
| 27 | WebkitMaskImage: "radial-gradient(ellipse 60% 22% at 50% 24%, black 0%, transparent 100%)", |
| 28 | }} |
| 29 | /> |
| 30 | |
| 31 | <div className="relative">{children}</div> |
| 32 | </div> |
| 33 | ) |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected