navbar ajustado

This commit is contained in:
2026-11-23 15:31:43 +02:00
parent 05982e8228
commit 8caf3e41cd
5 changed files with 79 additions and 55 deletions
@@ -93,9 +93,10 @@ export function PortalGroupedMenu() {
const toolsId = useId();
const interestId = useId();
const toggle = useRef<HTMLButtonElement>(null);
const isHome = url.split('?')[0] === '/';
useEffect(() => router.on('navigate', () => setExpanded(false)), []);
useEffect(() => {
const onScroll = () => setScrolled(window.scrollY > 8);
const onScroll = () => setScrolled(window.scrollY > 30);
onScroll();
window.addEventListener('scroll', onScroll, { passive: true });
return () => window.removeEventListener('scroll', onScroll);
@@ -165,6 +166,7 @@ export function PortalGroupedMenu() {
lang={language}
data-expanded={expanded || undefined}
data-scrolled={scrolled || undefined}
data-home={isHome || undefined}
onKeyDown={(event) => {
if (
event.key === 'Escape' &&
@@ -296,7 +298,7 @@ export function PortalGroupedMenu() {
undefined
}
>
Mais
{t('Mais')}
<ChevronDown
size={14}
aria-hidden="true"
+11 -11
View File
@@ -19,8 +19,8 @@ export function TempoFooter() {
className="tempo-footer border-t border-white/5"
lang={language}
>
<div className="mx-auto grid max-w-7xl grid-cols-1 gap-6 px-6 py-6 md:grid-cols-2 lg:grid-cols-5 lg:gap-8 lg:px-12">
<div className="space-y-4">
<div className="mx-auto grid max-w-7xl grid-cols-1 gap-12 px-6 py-10 md:grid-cols-2 lg:grid-cols-5 lg:gap-16 lg:px-12">
<div className="space-y-8">
<Link
href="/"
aria-label="InvesteMoz — início"
@@ -43,9 +43,9 @@ export function TempoFooter() {
</address>
</div>
</div>
<div className="space-y-4">
<div className="space-y-8">
<h2 className="tempo-footer-heading">{t('Contactos')}</h2>
<div className="space-y-2">
<div className="space-y-5">
{[
['+258868010880', '+258 86 801 0880'],
['+258833219644', '+258 83 321 9644'],
@@ -89,9 +89,9 @@ export function TempoFooter() {
</Link>
</div>
</div>
<nav aria-label="Navegação do rodapé" className="space-y-4">
<nav aria-label="Navegação do rodapé" className="space-y-8">
<h2 className="tempo-footer-heading">{t('Navegação')}</h2>
<ul className="space-y-2">
<ul className="space-y-4">
{navigation.map(([href, label]) => (
<li key={href}>
<Link href={href} className="tempo-footer-link">
@@ -105,9 +105,9 @@ export function TempoFooter() {
))}
</ul>
</nav>
<nav aria-label="Informação legal" className="space-y-4">
<nav aria-label="Informação legal" className="space-y-8">
<h2 className="tempo-footer-heading">Legal</h2>
<ul className="space-y-2">
<ul className="space-y-4">
{[
[
'politica-de-privacidade',
@@ -130,7 +130,7 @@ export function TempoFooter() {
))}
</ul>
</nav>
<div className="space-y-4">
<div className="space-y-8">
<h2 className="tempo-footer-heading">Social</h2>
<p className="text-xs leading-relaxed font-medium text-slate-300">
{t(
@@ -140,8 +140,8 @@ export function TempoFooter() {
<TempoSocialLinks footer />
</div>
</div>
<div className="border-t border-white/10 py-1.5">
<div className="mx-auto flex max-w-7xl flex-col items-center justify-between gap-1 px-6 text-center text-[10px] tracking-[0.1em] text-slate-400 md:flex-row md:text-left md:text-[11px]">
<div className="border-t border-white/5 bg-black/40 py-2">
<div className="mx-auto flex max-w-7xl flex-col items-center justify-between gap-6 px-6 text-center text-[10px] tracking-[0.2em] text-white md:flex-row md:text-left md:text-xs">
<p>
© {new Date().getFullYear()}{' '}
<span className="text-[#ed1c24]">Tempo</span>.{' '}
@@ -132,6 +132,9 @@ function PortalNavigationContent({ children }: { children: ReactNode }) {
<PortalMenu primary />
</div>
}
{!printable && path !== '/' && (
<div className="h-[72px]" aria-hidden="true" />
)}
{path !== '/' && (
<nav
aria-label={t('Caminho de navegação')}