import { ArrowLeft } from "lucide-react"; import { Container } from "@/components/container"; import { MotionReveal, MotionRevealItem } from "@/components/motion-reveal"; import { Button } from "@/components/ui/button"; import { layout } from "@/lib/layout"; import { type } from "@/lib/typography"; import { cn } from "@/lib/utils"; interface Post { id: string; title: string; summary: string; author: string; published: string; url: string; image: string; tags?: string[]; } interface Blog8Props { heading?: string; description?: string; posts?: Post[]; button?: { text: string; url: string; }; className?: string; } const defaultPosts: Post[] = [ { id: "post-1", title: "طراحی رابط کاربری مدرن با کامپوننت‌های React", summary: "نگاهی عملی به ساخت رابط‌های کاربری مدرن با React و کامپوننت‌های آماده؛ از ساختار تا جزئیات تجربه کاربری.", author: "امین رایان", published: "۱۵ بهمن ۱۴۰۳", url: "#", image: "/assets/main-pic/201.jpg", tags: ["طراحی وب", "تجربه کاربری"], }, { id: "post-2", title: "سئو و رشد دیده شدن کسب‌وکار در گوگل", summary: "چطور با بهینه‌سازی فنی و محتوایی، وب‌سایت‌تان در نتایج جستجو بهتر دیده شود و مشتری بیشتری جذب کند.", author: "امین رایان", published: "۲۲ بهمن ۱۴۰۳", url: "#", image: "/assets/main-pic/202.jpg", tags: ["سئو", "بازاریابی دیجیتال"], }, { id: "post-3", title: "اتوماسیون فرآیندها برای کسب‌وکارهای در حال رشد", summary: "چگونه با یکپارچه‌سازی سیستم‌ها و اتوماسیون کارهای تکراری، تیم‌تان سریع‌تر و دقیق‌تر کار کند.", author: "امین رایان", published: "۵ اسفند ۱۴۰۳", url: "#", image: "/assets/main-pic/203.jpg", tags: ["اتوماسیون", "یکپارچه‌سازی"], }, ]; export function Blog8({ heading = "مجله و آخرین اخبار امین رایان", description = "نکات کاربردی درباره طراحی سایت، سئو و رشد آنلاین کسب‌وکار؛ از تجربه تیم امین رایان.", posts = defaultPosts, button = { text: "مشاهده همه مقالات", url: "#", }, className, }: Blog8Props) { return (

{heading}

{description}

{posts.map((post) => ( {/* RTL: first = right → تصویر کوچک سمت راست */}

{post.title}

{post.summary}

))}
); }