152 lines
5.1 KiB
TypeScript
152 lines
5.1 KiB
TypeScript
import { FaDiscord, FaTwitter } from "react-icons/fa";
|
|
|
|
import {
|
|
Logo,
|
|
LogoImageDesktop,
|
|
LogoImageMobile,
|
|
} from "@/components/shadcnblocks/logo";
|
|
import { Button } from "@/components/ui/button";
|
|
import { Input } from "@/components/ui/input";
|
|
import { Separator } from "@/components/ui/separator";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const sections = [
|
|
{
|
|
title: "محصول",
|
|
links: [
|
|
{ name: "نمای کلی", href: "#" },
|
|
{ name: "قیمتگذاری", href: "#" },
|
|
{ name: "ممیزی فنی", href: "#" },
|
|
{ name: "ردیابی رتبه", href: "#" },
|
|
{ name: "یکپارچهسازیها", href: "#" },
|
|
{ name: "پیشنهاد کلمات کلیدی", href: "#" },
|
|
],
|
|
},
|
|
{
|
|
title: "شرکت",
|
|
links: [
|
|
{ name: "درباره ما", href: "#" },
|
|
{ name: "تیم", href: "#" },
|
|
{ name: "وبلاگ SEO", href: "#" },
|
|
{ name: "فرصتهای شغلی", href: "#" },
|
|
{ name: "تماس", href: "#" },
|
|
{ name: "حریم خصوصی", href: "#" },
|
|
],
|
|
},
|
|
{
|
|
title: "منابع",
|
|
links: [
|
|
{ name: "راهنمای سئو", href: "#" },
|
|
{ name: "چکلیست فنی", href: "#" },
|
|
{ name: "مطالعات موردی", href: "#" },
|
|
],
|
|
},
|
|
];
|
|
|
|
interface Footer4Props {
|
|
logo?: {
|
|
url: string;
|
|
src: string;
|
|
alt: string;
|
|
title: string;
|
|
srcMobile: string;
|
|
};
|
|
className?: string;
|
|
}
|
|
const Footer4 = ({
|
|
logo = {
|
|
url: "https://www.ShadcnBlocks",
|
|
src: "/block-media/shadcnblocks/block/logos/ShadcnBlocks-logo-word.svg",
|
|
srcMobile:
|
|
"/block-media/shadcnblocks/block/logos/ShadcnBlocks-logo.svg",
|
|
alt: "لوگوی رنکبوست",
|
|
title: "RankBoost",
|
|
},
|
|
className,
|
|
}: Footer4Props) => {
|
|
return (
|
|
<section className={cn("py-32", className)}>
|
|
<div className="container">
|
|
<footer>
|
|
<div className="grid grid-cols-2 gap-8 lg:grid-cols-6">
|
|
<div className="col-span-2 flex h-full items-center justify-between md:items-start lg:col-span-3 lg:flex-col">
|
|
<Logo url="https://ShadcnBlocks">
|
|
<LogoImageDesktop
|
|
src={logo.src}
|
|
alt={logo.alt}
|
|
title={logo.title}
|
|
className="h-9"
|
|
/>
|
|
<LogoImageMobile
|
|
src={logo.srcMobile}
|
|
alt={logo.alt}
|
|
title={logo.title}
|
|
className="h-8"
|
|
/>
|
|
</Logo>
|
|
<ul className="flex items-center gap-6 text-muted-foreground">
|
|
<li className="font-medium hover:text-primary">
|
|
<a href="#">
|
|
<FaDiscord className="size-6" />
|
|
</a>
|
|
</li>
|
|
|
|
<li className="font-medium hover:text-primary">
|
|
<a href="#">
|
|
<FaTwitter className="size-6" />
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<Separator className="col-span-2 my-6 lg:hidden" />
|
|
{sections.map((section, sectionIdx) => (
|
|
<div key={sectionIdx}>
|
|
<h3 className="mb-4 font-bold">{section.title}</h3>
|
|
<ul className="space-y-4 text-muted-foreground">
|
|
{section.links.map((link, linkIdx) => (
|
|
<li
|
|
key={linkIdx}
|
|
className="font-medium hover:text-primary"
|
|
>
|
|
<a href={link.href}>{link.name}</a>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
))}
|
|
</div>
|
|
<Separator className="my-14 lg:my-20" />
|
|
<div className="flex flex-col justify-between gap-8 lg:flex-row lg:items-center">
|
|
<div>
|
|
<p className="mb-2 text-3xl font-semibold lg:text-xl">
|
|
بهروزرسانیهای سئو را دریافت کنید
|
|
</p>
|
|
<p className="text-muted-foreground">
|
|
رتبهها، فرصتهای محتوا و هشدارهای تکنیکال را هفتگی دریافت کنید.
|
|
</p>
|
|
</div>
|
|
<div className="flex w-full max-w-sm items-center gap-2">
|
|
<Input type="email" placeholder="ایمیل کاری" />
|
|
<Button type="submit">ثبتنام</Button>
|
|
</div>
|
|
</div>
|
|
<Separator className="my-14 lg:my-20" />
|
|
<div className="flex flex-col justify-between gap-4 text-sm font-medium text-muted-foreground md:flex-row md:items-center">
|
|
<ul className="flex gap-4">
|
|
<li className="underline hover:text-primary">
|
|
<a href="#"> شرایط و ضوابط</a>
|
|
</li>
|
|
<li className="underline hover:text-primary">
|
|
<a href="#"> حریم خصوصی</a>
|
|
</li>
|
|
</ul>
|
|
<p>© ۱۴۰۴ RankBoost. تمامی حقوق محفوظ است.</p>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export { Footer4 };
|