infoalloggi-monorepo/apps/infoalloggi/src/components/footer.tsx

81 lines
1.9 KiB
TypeScript
Raw Normal View History

2025-08-04 17:45:44 +02:00
import Link from "next/link";
import BlurryDivider from "~/components/blurry_divider";
import { LogoSvg } from "~/components/svgs";
import { cn } from "~/lib/utils";
2025-08-04 17:45:44 +02:00
import { useTranslation } from "~/providers/I18nProvider";
type FooterProps = {
className?: string;
};
export const Footer = ({ className }: FooterProps) => {
2025-08-28 18:27:07 +02:00
const { t } = useTranslation();
return (
<div className="mt-auto">
<footer className={cn("bottom-0 z-40 w-full", className)}>
2025-08-28 18:27:07 +02:00
<div className="mx-auto max-w-6xl px-4 py-6 sm:px-6 lg:px-8">
<div className="text-center">
<Link
aria-label="footerLogo"
2025-10-10 16:18:43 +02:00
className="flex items-center justify-center font-bold text-3xl tracking-wide antialiased"
2025-08-29 16:18:32 +02:00
href="/"
2025-08-28 18:27:07 +02:00
>
<LogoSvg className="h-12 w-auto" />
2025-08-28 18:27:07 +02:00
</Link>
</div>
2025-08-04 17:45:44 +02:00
2025-08-28 18:27:07 +02:00
<nav aria-label="Footer Nav" className="mt-6">
<ul className="flex flex-wrap justify-center gap-6 md:gap-8 lg:gap-12">
<li>
<Link
2025-08-29 16:18:32 +02:00
aria-label="footerGuida"
2025-08-28 18:27:07 +02:00
className="text-sm"
href="/guida"
>
{t.footer.Guida}
</Link>
</li>
2025-08-04 17:45:44 +02:00
2025-08-28 18:27:07 +02:00
<li>
<Link
2025-08-29 16:18:32 +02:00
aria-label="footerChiSiamo"
2025-08-28 18:27:07 +02:00
className="text-sm"
href="/chi-siamo"
>
{t.footer["Chi Siamo"]}
</Link>
</li>
2025-08-04 17:45:44 +02:00
2025-08-28 18:27:07 +02:00
<li>
<Link
2025-08-29 16:18:32 +02:00
aria-label="footerTerminiCondizioni"
2025-08-28 18:27:07 +02:00
className="text-sm"
href="/termini-condizioni"
>
{t.termini_condizioni_title}
</Link>
</li>
<li>
<Link
2025-08-29 16:18:32 +02:00
aria-label="footerPrivacyPolicy"
2025-08-28 18:27:07 +02:00
className="text-sm"
href="/privacy-policy"
>
{t.privacy_policy_title}
</Link>
</li>
</ul>
</nav>
<div className="py-4">
<BlurryDivider />
</div>
2025-08-04 17:45:44 +02:00
2025-08-28 18:27:07 +02:00
<div className="text-center text-xs">
<p>{t.footer.endtxt}</p>
<p>{t.footer.endtxt2}</p>
</div>
</div>
</footer>
</div>
);
2025-08-04 17:45:44 +02:00
};