Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
import {
|
||||
FaApple,
|
||||
FaDiscord,
|
||||
FaRedditAlien,
|
||||
FaTelegramPlane,
|
||||
FaTwitter,
|
||||
} from "react-icons/fa";
|
||||
|
||||
import { Logo, LogoImage, LogoText } from "@/components/shadcnblocks/logo";
|
||||
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: "وبلاگ", href: "#" },
|
||||
{ name: "فرصتهای شغلی", href: "#" },
|
||||
{ name: "تماس", href: "#" },
|
||||
{ name: "حریم خصوصی", href: "#" },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "منابع",
|
||||
links: [
|
||||
{ name: "راهنما", href: "#" },
|
||||
{ name: "فروش", href: "#" },
|
||||
{ name: "تبلیغات", href: "#" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
interface Footer1Props {
|
||||
logo?: {
|
||||
url: string;
|
||||
src: string;
|
||||
alt: string;
|
||||
title: string;
|
||||
className?: string;
|
||||
};
|
||||
className?: string;
|
||||
}
|
||||
const Footer1 = ({
|
||||
logo = {
|
||||
url: "https://www.ShadcnBlocks",
|
||||
src: "/block-media/shadcnblocks/block/logos/ShadcnBlockscom-icon.svg",
|
||||
alt: "لوگو",
|
||||
title: "ShadcnBlocks",
|
||||
},
|
||||
className,
|
||||
}: Footer1Props) => {
|
||||
return (
|
||||
<section className={cn("py-32 pb-16", className)}>
|
||||
<div className="container">
|
||||
<footer>
|
||||
<div className="flex flex-col justify-between gap-4 md:flex-row md:items-center">
|
||||
<Logo url="https://ShadcnBlocks">
|
||||
<LogoImage
|
||||
src={logo.src}
|
||||
alt={logo.alt}
|
||||
title={logo.title}
|
||||
className="h-10 dark:invert"
|
||||
/>
|
||||
<LogoText className="text-xl">{logo.title}</LogoText>
|
||||
</Logo>
|
||||
<div className="flex flex-col gap-4 md:flex-row md:items-center">
|
||||
<p className="text-lg font-medium">
|
||||
کد را بردارید و برای خودتان بسازید.
|
||||
</p>
|
||||
<div className="flex gap-2">
|
||||
<a
|
||||
href="#"
|
||||
className="inline-flex items-center justify-center rounded-lg bg-primary p-2"
|
||||
>
|
||||
<FaApple className="size-6 text-background" />
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
className="inline-flex items-center justify-center rounded-lg bg-primary p-2"
|
||||
>
|
||||
<img
|
||||
src="/block-media/shadcnblocks/block/logos/google-play-icon.svg"
|
||||
className="size-6 text-background"
|
||||
alt="گوگل پلی"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Separator className="my-14" />
|
||||
<div className="grid gap-8 md:grid-cols-2 lg:grid-cols-4">
|
||||
{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>
|
||||
<h3 className="mb-4 font-bold">حقوقی</h3>
|
||||
<ul className="space-y-4 text-muted-foreground">
|
||||
<li className="font-medium hover:text-primary">
|
||||
<a href="#">شرایط و ضوابط</a>
|
||||
</li>
|
||||
<li className="font-medium hover:text-primary">
|
||||
<a href="#">حریم خصوصی</a>
|
||||
</li>
|
||||
</ul>
|
||||
<h3 className="mt-8 mb-4 font-bold">شبکههای اجتماعی</h3>
|
||||
<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="#">
|
||||
<FaRedditAlien className="size-6" />
|
||||
</a>
|
||||
</li>
|
||||
<li className="font-medium hover:text-primary">
|
||||
<a href="#">
|
||||
<FaTwitter className="size-6" />
|
||||
</a>
|
||||
</li>
|
||||
<li className="font-medium hover:text-primary">
|
||||
<a href="#">
|
||||
<FaTelegramPlane className="size-6" />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<Separator className="my-14" />
|
||||
<p className="text-sm text-muted-foreground">
|
||||
© ۲۲۴ ری یو آی. تمامی حقوق محفوظ است.
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Footer1 };
|
||||
Reference in New Issue
Block a user