"use client"; import { useRef } from "react"; import Link from "next/link"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { Container } from "@/components/Container"; import { Placeholder } from "@/components/Placeholder"; import { blogPosts } from "@/lib/data"; export function BlogCarousel() { const scroller = useRef(null); const scrollByCard = (direction: number) => { const node = scroller.current; if (!node) return; const card = node.querySelector("article"); const amount = card ? card.getBoundingClientRect().width + 20 : 340; node.scrollBy({ left: direction * amount, behavior: "smooth" }); }; return (

Blog

آخرین مقالات

نکته‌هایی از تعمیرگاه و بورس قطعات — برای مصرف‌کننده و همکار.

مشاهده همه
{blogPosts.map((post) => (

{post.date}

{post.title}

{post.excerpt}

))}
); }