Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
import { ArrowUpRight } from "lucide-react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const footerData = {
|
||||
heading: "ShadcnBlocks",
|
||||
email: {
|
||||
label: "example@ShadcnBlocks",
|
||||
href: "#",
|
||||
},
|
||||
phone: {
|
||||
label: "(۱۲۳) ۴۵۶ ۷۸۹",
|
||||
href: "tel:+1234567890",
|
||||
},
|
||||
socialLinks: [
|
||||
{ label: "توییتر", href: "#" },
|
||||
{ label: "اینستاگرام", href: "#" },
|
||||
{ label: "تیکتاک", href: "#" },
|
||||
{ label: "فیسبوک", href: "#" },
|
||||
],
|
||||
navLinks: [
|
||||
{ label: "خانه", href: "#" },
|
||||
{ label: "عکسها", href: "#" },
|
||||
{ label: "ویدیوها", href: "#" },
|
||||
{ label: "درباره", href: "#" },
|
||||
{ label: "تماس", href: "#" },
|
||||
{ label: "حریم خصوصی", href: "#" },
|
||||
],
|
||||
};
|
||||
|
||||
interface Footer24Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Footer24 = ({ className }: Footer24Props) => {
|
||||
return (
|
||||
<section className={cn("py-16 md:py-32", className)}>
|
||||
<div className="container px-4 md:px-6">
|
||||
<div className="rounded-lg bg-muted p-8 md:p-16">
|
||||
<div className="mb-6 border-b border-border pb-6 text-start md:mb-8 md:pb-8 md:text-center">
|
||||
<h1 className="text-xl font-bold tracking-tight sm:text-2xll md:text-2xll lg:text-8xl xl:text-9xl">
|
||||
{footerData.heading}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div className="mb-12 flex flex-col gap-8 md:mb-16 lg:flex-row lg:justify-between lg:gap-4 xl:gap-8">
|
||||
{/* Email Section */}
|
||||
<div className="flex flex-col items-start gap-4">
|
||||
<h3 className="text-sm font-medium tracking-wide text-primary uppercase">
|
||||
ایمیل
|
||||
</h3>
|
||||
<a
|
||||
href={footerData.email.href}
|
||||
className="flex items-center gap-2 text-base text-muted-foreground transition-colors hover:text-primary md:text-lg"
|
||||
>
|
||||
{footerData.email.label}
|
||||
<ArrowUpRight className="h-4 w-4 rtl:rotate-180" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Social Links Section */}
|
||||
<div className="flex flex-col items-start gap-4">
|
||||
<h3 className="text-sm font-medium tracking-wide text-primary uppercase">
|
||||
ما را دنبال کنید
|
||||
</h3>
|
||||
<div className="grid grid-cols-2 gap-4 lg:grid-cols-4">
|
||||
{footerData.socialLinks.map((link) => (
|
||||
<a
|
||||
key={link.label}
|
||||
href={link.href}
|
||||
className="text-base text-muted-foreground transition-colors hover:text-primary md:text-lg"
|
||||
>
|
||||
{link.label}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Phone Section */}
|
||||
<div className="flex flex-col items-start gap-4">
|
||||
<h3 className="text-sm font-medium tracking-wide text-primary uppercase">
|
||||
تلفن
|
||||
</h3>
|
||||
<a
|
||||
href={footerData.phone.href}
|
||||
className="flex items-center gap-2 text-base text-muted-foreground transition-colors hover:text-primary md:text-lg"
|
||||
>
|
||||
{footerData.phone.label}
|
||||
<ArrowUpRight className="h-4 w-4 rtl:rotate-180" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Bottom Section */}
|
||||
<div className="flex flex-col gap-6 py-6 md:flex-row md:items-center md:justify-between md:py-4">
|
||||
<nav className="grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-6">
|
||||
{footerData.navLinks.map((link) => (
|
||||
<a
|
||||
key={link.label}
|
||||
href={link.href}
|
||||
className="text-sm text-muted-foreground transition-colors hover:text-primary"
|
||||
>
|
||||
{link.label}
|
||||
</a>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
<div className="text-sm text-muted-foreground md:text-end md:text-xs">
|
||||
طراحیشده در <strong>سان فرانسیسکو</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Footer24 };
|
||||
Reference in New Issue
Block a user