Files
aragrp/components/footer.tsx
T

52 lines
1.4 KiB
TypeScript
Raw Normal View History

import { Logo } from "@/components/logo";
import Link from "next/link";
import { ChangelogPanel } from "@/components/changelog-panel";
import type { ChangelogRelease } from "@/lib/changelog-types";
import { type } from "@/lib/typography";
import { cn } from "@/lib/utils";
const links = [
{
2025-12-15 21:02:35 +03:30
title: "درباره ما",
href: "/about",
},
2026-02-05 19:58:48 +03:30
{
title: "دانشنامه",
2026-02-05 19:58:48 +03:30
href: "/blog",
},
{
2025-12-15 21:02:35 +03:30
title: "راه حل‌ها",
href: "/solutions",
},
];
export default function FooterSection({
releases,
}: {
releases: ChangelogRelease[];
}) {
return (
2026-02-05 19:58:48 +03:30
<footer className="py-16 md:py-16 bg-muted border-t">
<div className="mx-auto max-w-5xl px-6 flex items-center flex-col">
<Logo hasCaption className="mx-auto" />
<div className={cn("my-4 flex flex-wrap justify-center gap-6", type.link)}>
{links.map((link, index) => (
<Link
key={index}
href={link.href}
2025-12-04 14:27:31 +03:30
className="text-muted-foreground hover:text-accent transition-colors duration-150"
>
<span>{link.title}</span>
</Link>
))}
</div>
<span className={cn(type.link, "block text-center")}>
2026-02-05 19:58:48 +03:30
© 1404 فیپ، تمامی حقوق محفوظ است
</span>
<ChangelogPanel releases={releases} />
</div>
</footer>
);
}