- Updated Layout component to enhance flex properties for better responsiveness. - Adjusted CredenzaContent width in UserDashboard for improved layout. - Modified Footer component for better spacing and logo size adjustments. - Enhanced ServizioContent layout with new AlarmClockSVG and improved button styling. - Updated Status500 and 404 pages to use muted foreground text for better readability. - Added new PasswordSVG and AlarmClockSVG components for better icon representation. - Refined table components to use muted foreground colors for icons. - Improved form components by removing unnecessary classes and enhancing label styling. - Cleaned up global CSS by removing unused CSS variables for better maintainability.
80 lines
2 KiB
TypeScript
80 lines
2 KiB
TypeScript
import Link from "next/link";
|
|
import BlurryDivider from "~/components/blurry_divider";
|
|
import { LogoSvg } from "~/components/svgs";
|
|
import { cn } from "~/lib/utils";
|
|
import { useTranslation } from "~/providers/I18nProvider";
|
|
|
|
type FooterProps = {
|
|
className?: string;
|
|
};
|
|
export const Footer = ({ className }: FooterProps) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<div className="mt-auto">
|
|
<footer className={cn("bottom-0 z-40 w-full", className)}>
|
|
<div className="mx-auto max-w-6xl px-2 xs:px-4 py-4 xs:py-6 sm:px-6 lg:px-8">
|
|
<div className="text-center">
|
|
<Link
|
|
aria-label="footerLogo"
|
|
className="flex items-center justify-center font-bold text-3xl tracking-wide antialiased"
|
|
href="/"
|
|
>
|
|
<LogoSvg className="h-8 xs:h-12 w-auto" />
|
|
</Link>
|
|
</div>
|
|
|
|
<nav aria-label="Footer Nav" className="mt-2 xs:mt-6">
|
|
<ul className="flex flex-wrap justify-center gap-4 xs:gap-6 md:gap-8 lg:gap-12">
|
|
<li>
|
|
<Link
|
|
aria-label="footerGuida"
|
|
className="text-xs xs:text-sm"
|
|
href="/guida"
|
|
>
|
|
{t.footer.Guida}
|
|
</Link>
|
|
</li>
|
|
|
|
<li>
|
|
<Link
|
|
aria-label="footerChiSiamo"
|
|
className="text-xs xs:text-sm"
|
|
href="/chi-siamo"
|
|
>
|
|
{t.footer["Chi Siamo"]}
|
|
</Link>
|
|
</li>
|
|
|
|
<li>
|
|
<Link
|
|
aria-label="footerTerminiCondizioni"
|
|
className="text-xs xs:text-sm"
|
|
href="/termini-condizioni"
|
|
>
|
|
{t.termini_condizioni_title}
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link
|
|
aria-label="footerPrivacyPolicy"
|
|
className="text-xs xs:text-sm"
|
|
href="/privacy-policy"
|
|
>
|
|
{t.privacy_policy_title}
|
|
</Link>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<div className="py-2 xs:py-4">
|
|
<BlurryDivider />
|
|
</div>
|
|
|
|
<div className="text-center text-xs">
|
|
<p>{t.footer.endtxt}</p>
|
|
<p>{t.footer.endtxt2}</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
);
|
|
};
|