Files
Investidor-V2/resources/js/components/tempo-footer.tsx
T
paulomassigue cb438b2b28
tests / ci (push) Canceled after 0s
correcao dos links do footer
2026-10-19 15:01:58 +02:00

135 lines
6.0 KiB
TypeScript

import { Link } from '@inertiajs/react';
import { ChevronRight, Mail, MapPin, Phone } from 'lucide-react';
import { TempoSocialLinks, useTempoUi } from '@/components/tempo-brand';
const navigation = [
['/', 'Início'],
['/apoio', 'Contacto'],
];
export function TempoFooter() {
const { t, language } = useTempoUi();
return (
<footer className="tempo-footer" lang={language}>
<div className="mx-auto grid max-w-[1440px] gap-9 px-5 py-12 sm:grid-cols-2 sm:px-8 lg:grid-cols-[1.25fr_1.2fr_1fr_1fr_1.1fr] lg:gap-8 lg:py-14">
<div className="space-y-6">
<Link href="/" aria-label="Tempo — início">
<img
src="/images/logo/logo-vermelho.png"
alt="Tempo"
width="1787"
height="564"
className="h-11 w-auto object-contain"
loading="lazy"
/>
</Link>
<div className="flex items-start gap-3">
<MapPin
className="mt-1 size-5 shrink-0 text-[#ed1c24]"
aria-hidden="true"
/>
<address className="border-l border-white/15 pl-3 text-sm leading-7 text-slate-300 not-italic">
Av. Ahmed Sekou Touré, 1126 RC
<br />
Maputo Cidade, Moçambique
</address>
</div>
</div>
<div>
<h2 className="tempo-footer-heading">{t('Contactos')}</h2>
<div className="space-y-3">
{[
['+258868010880', '+258 86 801 0880'],
['+258833219644', '+258 83 321 9644'],
].map(([number, label]) => (
<a
key={number}
href={`tel:${number}`}
className="tempo-contact-link"
>
<span className="tempo-contact-icon">
<Phone size={16} aria-hidden="true" />
</span>
<strong className="text-sm font-medium">
{label}
</strong>
</a>
))}
<a
href="mailto:info@tempo.co.mz"
className="tempo-contact-link"
>
<span className="tempo-contact-icon">
<Mail size={16} aria-hidden="true" />
</span>
<strong className="text-sm font-medium [overflow-wrap:anywhere]">
comercial@tempo.co.mz
</strong>
</a>
</div>
</div>
<nav aria-label="Navegação do rodapé">
<h2 className="tempo-footer-heading">{t('Navegação')}</h2>
<ul className="space-y-3">
{navigation.map(([href, label]) => (
<li key={href}>
<Link href={href} className="tempo-footer-link">
<ChevronRight
size={13}
aria-hidden="true"
/>
{t(label)}
</Link>
</li>
))}
</ul>
</nav>
<nav aria-label="Informação legal">
<h2 className="tempo-footer-heading">Legal</h2>
<ul className="space-y-3">
{[
[
'politica-de-privacidade',
'Política de Privacidade',
],
['termos-de-uso', 'Termos de Uso'],
].map(([path, label]) => (
<li key={path}>
<Link
href={`/${path}`}
className="tempo-footer-link"
>
<ChevronRight
size={13}
aria-hidden="true"
/>
{t(label)}
</Link>
</li>
))}
</ul>
</nav>
<div>
<h2 className="tempo-footer-heading">Social</h2>
<p className="mb-5 text-sm leading-6 text-slate-300">
{t(
'Siga a Revista Tempo para actualizações exclusivas.',
)}
</p>
<TempoSocialLinks footer />
</div>
</div>
<div className="border-t border-white/10">
<div className="mx-auto flex max-w-[1440px] flex-col justify-between gap-3 px-5 py-5 text-[11px] tracking-wide text-slate-400 sm:flex-row sm:px-8">
<p>
© {new Date().getFullYear()}{' '}
<span className="text-[#ed1c24]">Tempo</span>.{' '}
{t('Todos os direitos reservados.')}
</p>
<p>{t('Número de registo')}: 13/GABINFO-DE/: 2003</p>
</div>
</div>
</footer>
);
}