// ============================================================ // shared.jsx — Nav e Footer para o site multi-página // Carregado DEPOIS de sections.jsx, sobrescreve window.Nav e window.Footer // ============================================================ // Download e Cadastro removidos: o servidor ainda não está linkado ao site. // A única ação da landing é entrar na lista de espera. const NAV_LINKS = [ { href: '/index.php', img: '/assets/btn-home.png', label: 'Início', page: 'home', blue: false }, { href: '/noticias.php', img: '/assets/btn-noticias.png', label: 'Notícias', page: 'noticias', blue: false }, { href: '/rankings.php', img: '/assets/btn-rankings.png', label: 'Rankings', page: 'rankings', blue: false }, { href: '/sobre.php', img: '/assets/btn-sobre.png', label: 'Sobre', page: 'sobre', blue: false }, ]; const MultiNav = () => { const [scrolled, setScrolled] = React.useState(false); const { t } = useT(); const currentPage = (typeof window !== 'undefined' && window.CURRENT_PAGE) || 'home'; React.useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 80); onScroll(); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); // ── LANDING (home): página de captação, SEM navegação pra outras páginas. ── // Logo central em destaque (levemente maior) + seletor de idioma discreto à direita. // As outras páginas (notícias, rankings, sobre) seguem com o menu completo abaixo. if (currentPage === 'home') { return ( ); } const goldFilter = 'drop-shadow(0 4px 14px rgba(0,0,0,0.7)) drop-shadow(0 0 22px rgba(218,165,32,0.6)) brightness(1.0)'; const goldHover = 'drop-shadow(0 6px 22px rgba(0,0,0,0.7)) drop-shadow(0 0 32px rgba(255,200,80,0.95)) drop-shadow(0 0 55px rgba(218,165,32,0.55)) brightness(1.18)'; const blueFilter = 'drop-shadow(0 4px 14px rgba(0,0,0,0.7)) drop-shadow(0 0 18px rgba(80,150,255,0.6)) brightness(1.02)'; const blueHover = 'drop-shadow(0 6px 22px rgba(0,0,0,0.7)) drop-shadow(0 0 28px rgba(120,170,255,0.9)) drop-shadow(0 0 50px rgba(80,140,255,0.55)) brightness(1.2)'; const activeBoost = 'brightness(1.25) drop-shadow(0 0 18px rgba(218,165,32,0.5))'; return ( <> {/* Logo top-left */} KingdomTale {/* Language toggle top-right */}
); }; // Footer com domínio atualizado para kingdomtale.com.br const MultiFooter = () => { const { t } = useT(); const currentPage = (typeof window !== 'undefined' && window.CURRENT_PAGE) || 'home'; // ── LANDING (home): rodapé enxuto — sem colunas de navegação ("Reino"/"Jurídico"). ── // Mantém logo+nome, lema, domínio, seletor de idioma, link de Privacidade // (obrigatório p/ LGPD e aprovação de anúncios) e a linha de copyright/disclaimer. // As outras páginas seguem com o rodapé completo abaixo. if (currentPage === 'home') { return ( ); } return ( ); }; // Sobrescrever Nav e Footer do sections.jsx com as versões multi-página window.Nav = MultiNav; window.Footer = MultiFooter;