import Link from "next/link"; import Image from "next/image"; import type { BlogPost } from "@/lib/blog"; export default function BlogCard({ post }: { post: BlogPost }) { const formattedDate = new Date(post.publishedAt).toLocaleDateString("pl-PL", { year: "numeric", month: "long", day: "numeric", }); const categoryLabel = post.category === "case-study" ? "Case Study" : "Blog"; const categoryColor = post.category === "case-study" ? "bg-purple-500/10 text-purple-400" : "bg-cyan-500/10 text-cyan-400"; return (
{post.title}
{categoryLabel}

{post.title}

{post.excerpt}

{(Array.isArray(post.tags) ? post.tags : [post.tags]).slice(0, 3).map((tag) => ( #{tag} ))}
Czytaj więcej →
); }