This commit is contained in:
eric
2026-03-08 12:30:50 -05:00
parent 0e75fb2e6e
commit 57a788006f
12 changed files with 536 additions and 17 deletions

View File

@@ -32,9 +32,9 @@ const footerSections = [
{
titleKey: "about" as const,
links: [
{ labelKey: "aboutUs" as const, href: "#" },
{ labelKey: "aboutUs" as const, href: "/about", internal: true },
{ labelKey: "contribute" as const, href: "#" },
{ labelKey: "privacy" as const, href: "#" },
{ labelKey: "privacy" as const, href: "/privacy", internal: true, openInNewTab: true },
{ labelKey: "contact" as const, href: "#" },
],
},
@@ -66,12 +66,23 @@ export default function Footer() {
<ul className="space-y-2.5">
{section.links.map((link) => (
<li key={link.labelKey}>
<a
href={link.href}
className="text-sm text-slate-500 transition-colors hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200"
>
{t(`links.${link.labelKey}`)}
</a>
{"internal" in link && link.internal ? (
<Link
href={link.href}
target={"openInNewTab" in link && link.openInNewTab ? "_blank" : undefined}
rel={"openInNewTab" in link && link.openInNewTab ? "noopener noreferrer" : undefined}
className="text-sm text-slate-500 transition-colors hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200"
>
{t(`links.${link.labelKey}`)}
</Link>
) : (
<a
href={link.href}
className="text-sm text-slate-500 transition-colors hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200"
>
{t(`links.${link.labelKey}`)}
</a>
)}
</li>
))}
</ul>