Initial import of 1407 block sources under blocks/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
import { FaDiscord, FaGithub, FaXTwitter } from "react-icons/fa6";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface SocialLink {
|
||||
icon: React.ReactNode;
|
||||
url: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
interface Community1Props {
|
||||
logo?: string;
|
||||
heading?: string;
|
||||
headingHighlight?: string;
|
||||
socialLinks?: SocialLink[];
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Community1 = ({
|
||||
logo = "/block-media/shadcnblocks/block/block-1.svg",
|
||||
heading = "به جمع متخصصان ما بپیوندید",
|
||||
headingHighlight = "ویژه طراحان، توسعهدهندگان و سازندگان محصولات دیجیتال",
|
||||
socialLinks = [
|
||||
{
|
||||
icon: <FaXTwitter />,
|
||||
url: "https://x.com/ShadcnBlocks",
|
||||
label: "ما را در X دنبال کنید و از آخرین اخبار باخبر شوید",
|
||||
},
|
||||
{
|
||||
icon: <FaGithub />,
|
||||
url: "https://github.com/ShadcnBlocks",
|
||||
label: "در گیتهاب پروژههای ما را دنبال کنید",
|
||||
},
|
||||
{
|
||||
icon: <FaDiscord />,
|
||||
url: "#",
|
||||
label: "به انجمن دیسکورد ما بپیوندید",
|
||||
},
|
||||
],
|
||||
className,
|
||||
}: Community1Props) => {
|
||||
return (
|
||||
<section dir="rtl" lang="fa" className={cn("py-32", className)}>
|
||||
<div className="container">
|
||||
<div className="flex flex-col items-center gap-5">
|
||||
<img src={logo} alt="لوگو" className="size-10" />
|
||||
<h2 className="text-center text-3xl font-semibold">
|
||||
{heading}
|
||||
<br />
|
||||
<span className="text-muted-foreground/80">{headingHighlight}</span>
|
||||
</h2>
|
||||
<div className="flex items-center gap-4">
|
||||
{socialLinks.map((link, index) => (
|
||||
<Button key={index} size="lg" variant="outline" asChild>
|
||||
<a
|
||||
href={link.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label={link.label}
|
||||
className="size-10"
|
||||
>
|
||||
{link.icon}
|
||||
</a>
|
||||
</Button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export { Community1 };
|
||||
Reference in New Issue
Block a user