/* FORUM website — Header + Footer chrome. Exports window.ForumHeader, window.ForumFooter. */ function NavItem({ item }) { const [open, setOpen] = React.useState(false); const hasMenu = item.items && item.items.length > 0; return (
setOpen(true)} onMouseLeave={() => setOpen(false)} > {item.label} {hasMenu && ( )} {hasMenu && (
{/* Dropdown photo */}
{item.photo ? : }
{item.label}
{item.items.map((sub) => ( { e.currentTarget.style.background = 'rgba(125,186,246,0.14)'; e.currentTarget.style.color = '#fff'; }} onMouseLeave={(e) => { e.currentTarget.style.background = 'transparent'; e.currentTarget.style.color = 'var(--forum-sky-100)'; }}> {sub.l} ))}
)}
); } function ForumHeader({ logoSrc, onCta }) { const [scrolled, setScrolled] = React.useState(false); React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 24); window.addEventListener('scroll', onScroll, { passive: true }); onScroll(); return () => window.removeEventListener('scroll', onScroll); }, []); const nav = [ { label: 'Events', href: '#', photoId: 'nav-photo-events', photo: 'media/gala-ballroom.jpg', items: [ { l: 'Upcoming events', href: '#' }, { l: 'Past events', href: '#' }, { l: 'Event production', href: '#' }, ] }, { label: 'Advisory', href: '#', photoId: 'nav-photo-advisory', photo: 'media/advisory-photo.jpg', items: [ { l: 'Advisory overview', href: '#' }, { l: 'Brand identity', href: '#' }, { l: 'Work with us', href: '#' }, ] }, { label: 'Platform', href: '#', photoId: 'nav-photo-platform', photo: 'media/platform-photo.jpg', items: [ { l: 'How it works', href: '#' }, { l: 'Request a demo', href: '#' }, ] }, { label: 'Case Studies', href: '#' }, { label: 'Resources', href: '#', photoId: 'nav-photo-resources', photo: 'uploads/shutterstock_1968875902.jpg', items: [ { l: 'All resources', href: '#' }, { l: 'Blog', href: '#' }, { l: 'Reports', href: '#' }, ] }, { label: 'About', href: '#', photoId: 'nav-photo-about', photo: 'uploads/shutterstock_2604006819.jpg', items: [ { l: 'Overview', href: '#' }, { l: 'Mission', href: '#' }, { l: 'Team', href: '#' }, ] }, ]; return (
FORUM — Events · Advisory · Platform
); } function ForumFooter({ logoSrc }) { const cols = [ { h: 'Company', links: [ { l: 'About', href: '/about' }, { l: 'Mission', href: '/about/mission' }, { l: 'Team', href: '/about/team' }, { l: 'Work With Us', href: '/work-with-us' }, ] }, { h: 'Services', links: [ { l: 'Events', href: '/events' }, { l: 'Advisory', href: '/services/advisory' }, { l: 'Platform', href: '/platform' }, { l: 'Case Studies', href: '/casestudies' }, ] }, { h: 'Resources', links: [ { l: 'Blog', href: '/blog' }, { l: 'Reports', href: '/resources/reports' }, { l: 'Podcasts', href: '/resources' }, ] }, ]; return ( ); } window.ForumHeader = ForumHeader; window.ForumFooter = ForumFooter;