import { BRACKT_GRADIENT_START, BRACKT_GRADIENT_END } from "~/lib/brand"; export function BracketDecor({ flip = false, mobileTall = false }: { flip?: boolean; mobileTall?: boolean }) { const base = flip ? "r" : "l"; const id = mobileTall ? `${base}-m` : base; const W = 399; const H = mobileTall ? 2000 : 560; const pad = 36; const spacing = (H - 2 * pad) / 7; const r1Ys = Array.from({ length: 8 }, (_, i) => pad + i * spacing); const r2Ys = [0, 1, 2, 3].map((i) => (r1Ys[i * 2] + r1Ys[i * 2 + 1]) / 2); const r3Ys = [0, 1].map((i) => (r2Ys[i * 2] + r2Ys[i * 2 + 1]) / 2); const champY = (r3Ys[0] + r3Ys[1]) / 2; const x0 = 4; const x1 = 77; const x2 = 161; const x3 = 252; const gradId = `grad-${id}`; const glowId = `glow-${id}`; const dotsGlowId = `dots-glow-${id}`; const finalsGlowId = `finals-glow-${id}`; const finalsHaloId = `finals-halo-${id}`; const finalsFadeMaskGradId = `finals-fade-mask-grad-${id}`; const finalsFadeMaskId = `finals-fade-mask-${id}`; const finalsLineGlowId = `finals-line-glow-${id}`; return ( {r3Ys.map((midY) => ( ))} {r3Ys.map((midY) => ( ))} {r1Ys.map((y) => ( ))} {r2Ys.map((midY, i) => ( ))} {r3Ys.map((midY, i) => ( ))} ); }