// Nav, LiveBadge, Hero, Marquee, Stats // Reads from window.locale set by index.html (function injectNavStyles() { if (document.getElementById('tvm-nav-styles')) return; const s = document.createElement('style'); s.id = 'tvm-nav-styles'; s.textContent = ` .tvm-hamburger { display: none; background: none; border: none; padding: 6px; cursor: pointer; color: var(--tvm-text, #1d1d1f); border-radius: 8px; transition: background 0.2s ease; flex-shrink: 0; } .tvm-hamburger:hover { background: rgba(0,0,0,0.06); } .tvm-mobile-backdrop { display: none; position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.18); } .tvm-mobile-backdrop.open { display: block; } .tvm-mobile-nav { display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 99; background: rgba(255,255,255,0.96); backdrop-filter: blur(40px) saturate(1.8); -webkit-backdrop-filter: blur(40px) saturate(1.8); border-bottom: 0.5px solid rgba(0,0,0,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 8px 32px rgba(0,0,0,0.10); } .tvm-mobile-nav-inner { padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 4px; } .tvm-mobile-nav-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 17px; font-weight: 500; color: var(--tvm-text, #1d1d1f); text-decoration: none; border-radius: 12px; transition: background 0.15s ease; } .tvm-mobile-nav-link svg { flex-shrink: 0; opacity: 0.55; } .tvm-mobile-nav-link:hover, .tvm-mobile-nav-link:active { background: rgba(0,0,0,0.05); } @media (max-width: 768px) { .tvm-hamburger { display: flex; align-items: center; justify-content: center; } .tvm-nav-links { display: none !important; } .tvm-nav-cta { display: none !important; } .tvm-mobile-nav { display: block; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.24s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.24s ease; } .tvm-mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; } } `; document.head.appendChild(s); })(); function Nav() { const C = COPY[window.locale]; const [open, setOpen] = React.useState(false); return ( <> {open &&
{C.heroSub}
{C.anchor1} {C.anchor2}