import { ArrowRight } from "lucide-react"; import { Card } from "@/components/ui/card"; import { cn } from "@/lib/utils"; interface Post { id: string; title: string; summary: string; label: string; author: string; published: string; url: string; image: string; tags?: string[]; } interface Blog8Props { heading?: string; description?: string; posts?: Post[]; className?: string; } const Blog8 = ({ heading = "مطالب وبلاگ", description = "جدیدترین آموزش‌ها، تحلیل‌ها و نکات کاربردی درباره توسعه وب، طراحی رابط کاربری و معماری مبتنی بر کامپوننت را بخوانید.", posts = [ { id: "post-1", title: "ساخت رابط‌های کاربری مدرن با ری یو آی و رابط کاربری", summary: "در این مقاله با روش‌های ساخت رابط‌های کاربری مدرن با shadcn/ui و React آشنا می‌شوید و بهترین شیوه‌های پیاده‌سازی را یاد می‌گیرید.", label: "طراحی وب", author: "سارا احمدی", published: "۲۶ بهمن ۱۴۲", url: "https://ShadcnBlocks", image: "/block-media/shadcnblocks/block/placeholder-dark-1.svg", tags: ["طراحی وب", "توسعه رابط"], }, { id: "post-2", title: "تسلط بر استایل‌دهی مدرن: از مبانی تا تکنیک‌های پیشرفته", summary: "یاد بگیرید چگونه با Tailwind CSS وب‌سایت‌هایی زیبا، واکنش‌گرا و با کدی تمیز و قابل نگهداری ایجاد کنید.", label: "طراحی وب", author: "مهدی پارک", published: "۳ اسفند ۱۴۲", url: "https://ShadcnBlocks", image: "/block-media/shadcnblocks/block/placeholder-dark-1.svg", tags: ["طراحی وب", "CSS"], }, ], className, }: Blog8Props) => { return (

{heading}

{description}

{posts.map((post) => (
{post.tags?.map((tag) => ( {tag} ))}

{post.title}

{post.summary}

{post.author} {post.published}
))}
); }; export { Blog8 };