{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog3",
  "title": "Card Grid with Authors",
  "description": "Three-column responsive grid of blog cards featuring author avatars, tag badges, and hover zoom effects. Clean card design with date and read time metadata.",
  "dependencies": [
    "clsx",
    "tailwind-merge",
    "lucide-react"
  ],
  "registryDependencies": [
    "badge",
    "avatar"
  ],
  "files": [
    {
      "path": "registry/blog3/blog3.tsx",
      "content": "\"use client\";\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport Link from \"next/link\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Author {\n  name: string;\n  title?: string;\n  avatar?: {\n    src: string;\n    alt: string;\n  };\n  href?: string;\n}\n\ninterface Tag {\n  label: string;\n  href?: string;\n}\n\ninterface BlogPost {\n  image: {\n    src: string;\n    alt: string;\n  };\n  title: string;\n  summary: string;\n  date?: string;\n  readTime?: string;\n  author?: Author;\n  tags?: Tag[];\n  href?: string;\n}\n\ninterface Blog3Props {\n  badge?: {\n    label: string;\n    variant?: \"default\" | \"secondary\" | \"outline\";\n  };\n  heading?: string;\n  description?: string;\n  posts?: BlogPost[];\n  className?: string;\n}\n\nexport const blog3Demo: Blog3Props = {\n  badge: { label: \"Blog\", variant: \"default\" },\n  heading: \"Latest Articles\",\n  description: \"Discover insights, tutorials, and updates from our team of experts.\",\n  posts: [\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839259112-aaea03db3633?w=800&fit=crop\",\n        alt: \"Design systems article\",\n      },\n      title: \"The Future of Design Systems in Modern Web Development\",\n      summary:\n        \"Exploring how design systems are evolving to meet the demands of increasingly complex web applications.\",\n      date: \"January 15, 2026\",\n      readTime: \"8 min read\",\n      author: {\n        name: \"Lisa Park\",\n        title: \"Senior Developer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1595429935434-f2d6f6004424?w=100&fit=crop\",\n          alt: \"Lisa Park\",\n        },\n      },\n      tags: [\n        { label: \"Design Systems\", href: \"/block/post3\" },\n        { label: \"Web Development\", href: \"/block/post3\" },\n      ],\n      href: \"/block/post3\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839258671-6495fdc188b3?w=800&fit=crop\",\n        alt: \"API design article\",\n      },\n      title: \"Building Scalable APIs with Modern Architecture\",\n      summary: \"Learn the best practices for designing APIs that can handle millions of requests.\",\n      date: \"January 12, 2026\",\n      readTime: \"12 min read\",\n      author: {\n        name: \"David Chen\",\n        title: \"Backend Engineer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1613508862761-40728c924737?w=100&fit=crop\",\n          alt: \"David Chen\",\n        },\n      },\n      tags: [{ label: \"API\", href: \"/block/post7\" }],\n      href: \"/block/post7\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839258575-038fef381ee7?w=800&fit=crop\",\n        alt: \"React performance article\",\n      },\n      title: \"React Performance Optimization Techniques\",\n      summary: \"Practical strategies to improve the performance of your React applications.\",\n      date: \"January 10, 2026\",\n      readTime: \"10 min read\",\n      author: {\n        name: \"Alex Turner\",\n        title: \"Frontend Lead\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1677531427892-239e0797cf60?w=100&fit=crop\",\n          alt: \"Alex Turner\",\n        },\n      },\n      tags: [\n        { label: \"React\", href: \"/block/post11\" },\n        { label: \"Performance\", href: \"/block/post11\" },\n      ],\n      href: \"/block/post11\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1761839257946-4616bcfafec7?w=800&fit=crop\",\n        alt: \"TypeScript article\",\n      },\n      title: \"Advanced TypeScript Patterns for Large Applications\",\n      summary:\n        \"Discover advanced TypeScript techniques that will make your codebase more maintainable.\",\n      date: \"January 8, 2026\",\n      readTime: \"15 min read\",\n      author: {\n        name: \"Maria Santos\",\n        title: \"Tech Lead\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1731394726166-2817371bf003?w=100&fit=crop\",\n          alt: \"Maria Santos\",\n        },\n      },\n      tags: [{ label: \"TypeScript\", href: \"/block/post15\" }],\n      href: \"/block/post15\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1576579639321-29a1cd83c64b?w=800&fit=crop\",\n        alt: \"CSS article\",\n      },\n      title: \"Modern CSS Techniques You Should Know\",\n      summary: \"A comprehensive guide to the latest CSS features and how to use them effectively.\",\n      date: \"January 5, 2026\",\n      readTime: \"7 min read\",\n      author: {\n        name: \"Lisa Park\",\n        title: \"Senior Developer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1595429935434-f2d6f6004424?w=100&fit=crop\",\n          alt: \"Lisa Park\",\n        },\n      },\n      tags: [{ label: \"CSS\", href: \"/block/post19\" }],\n      href: \"/block/post19\",\n    },\n    {\n      image: {\n        src: \"https://images.unsplash.com/photo-1579088013384-34f5f99cacdb?w=800&fit=crop\",\n        alt: \"Testing article\",\n      },\n      title: \"Testing Best Practices for Frontend Applications\",\n      summary: \"Learn how to write effective tests that give you confidence in your code.\",\n      date: \"January 3, 2026\",\n      readTime: \"11 min read\",\n      author: {\n        name: \"David Chen\",\n        title: \"Backend Engineer\",\n        avatar: {\n          src: \"https://images.unsplash.com/photo-1613508862761-40728c924737?w=100&fit=crop\",\n          alt: \"David Chen\",\n        },\n      },\n      tags: [\n        { label: \"Testing\", href: \"/block/post23\" },\n        { label: \"Quality\", href: \"/block/post23\" },\n      ],\n      href: \"/block/post23\",\n    },\n  ],\n};\n\nexport function Blog3({ badge, heading, description, posts = [], className }: Blog3Props) {\n  return (\n    <section className={cn(\"py-16 md:py-24 w-full\", className)}>\n      <div className=\"mx-auto max-w-6xl px-4 md:px-6\">\n        {(badge || heading || description) && (\n          <div className=\"mx-auto mb-12 max-w-3xl text-center\">\n            {badge && (\n              <div className=\"mb-4 flex justify-center\">\n                <Badge variant={badge.variant ?? \"default\"}>{badge.label}</Badge>\n              </div>\n            )}\n            {heading && <h2 className=\"text-2xl font-semibold md:text-4xl\">{heading}</h2>}\n            {description && (\n              <p className=\"mt-4 text-base text-muted-foreground md:text-lg\">{description}</p>\n            )}\n          </div>\n        )}\n\n        <div className=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n          {posts.map((post, index) => (\n            <article\n              key={index}\n              className=\"group/blog3 flex flex-col overflow-hidden rounded-md border bg-card\"\n            >\n              <Link href={post.href ?? \"#\"} className=\"relative aspect-video overflow-hidden\">\n                <img\n                  className=\"absolute inset-0 size-full object-cover transition-transform duration-300 group-hover/blog3:scale-105\"\n                  src={post.image.src}\n                  alt={post.image.alt}\n                />\n              </Link>\n\n              <div className=\"flex flex-1 flex-col p-5\">\n                {post.tags && post.tags.length > 0 && (\n                  <div className=\"mb-3 flex flex-wrap gap-2\">\n                    {post.tags.map((tag, tagIndex) => (\n                      <Link key={tagIndex} href={tag.href ?? \"#\"}>\n                        <Badge variant=\"outline\" className=\"text-xs\">\n                          {tag.label}\n                        </Badge>\n                      </Link>\n                    ))}\n                  </div>\n                )}\n\n                <Link href={post.href ?? \"#\"}>\n                  <h3 className=\"mb-2 line-clamp-2 text-lg font-semibold transition-colors group-hover/blog3:text-primary\">\n                    {post.title}\n                  </h3>\n                </Link>\n\n                <p className=\"mb-4 line-clamp-2 flex-1 text-sm text-muted-foreground\">\n                  {post.summary}\n                </p>\n\n                <div className=\"mt-auto flex items-center justify-between\">\n                  {post.author && (\n                    <div className=\"flex items-center gap-2\">\n                      {post.author.avatar && (\n                        <Avatar className=\"size-8\">\n                          <AvatarImage\n                            src={post.author.avatar.src}\n                            alt={post.author.avatar.alt}\n                            className=\"object-cover\"\n                          />\n                          <AvatarFallback>\n                            {post.author.name\n                              .split(\" \")\n                              .map((n) => n[0])\n                              .join(\"\")}\n                          </AvatarFallback>\n                        </Avatar>\n                      )}\n                      <span className=\"text-sm font-medium\">{post.author.name}</span>\n                    </div>\n                  )}\n\n                  {(post.date || post.readTime) && (\n                    <div className=\"flex items-center gap-1 text-xs text-muted-foreground\">\n                      {post.date && <span>{post.date}</span>}\n                      {post.date && post.readTime && (\n                        <span className=\"block sm:hidden xl:block\">&middot;</span>\n                      )}\n                      {post.readTime && (\n                        <span className=\"block sm:hidden xl:block\">{post.readTime}</span>\n                      )}\n                    </div>\n                  )}\n                </div>\n              </div>\n            </article>\n          ))}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/beste/block/blog3.tsx"
    }
  ],
  "type": "registry:block"
}