{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-1",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button",
    "utils"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/blog-1.tsx",
      "content": "import { ArrowUpRight } from \"lucide-react\";\nimport { cn } from \"@/lib/utils\";\n\ninterface BlogPostAuthor {\n  name: string;\n  role: string;\n}\n\ninterface BlogPost {\n  date: string;\n  title: string;\n  author: BlogPostAuthor;\n  href?: string;\n}\n\ninterface BlogSectionHeader {\n  badge: string;\n  heading: string;\n  description: string;\n  ctaText: string;\n  ctaHref: string;\n}\n\ninterface Blog1Props {\n  header: BlogSectionHeader;\n  posts: BlogPost[];\n  className?: string;\n  /** Optional render override for the CTA link */\n  renderCtaLink?: (props: {\n    href: string;\n    children: React.ReactNode;\n  }) => React.ReactNode;\n  /** Optional render override for individual card links */\n  renderCardLink?: (props: {\n    href: string;\n    children: React.ReactNode;\n  }) => React.ReactNode;\n}\n\nexport default function Blog1({\n  header,\n  posts,\n  className,\n  renderCtaLink,\n  renderCardLink,\n}: Blog1Props) {\n  const ctaContent = (\n    <span className=\"group/cta inline-flex items-center gap-1.5 text-sm font-semibold text-foreground transition-colors hover:text-primary\">\n      {header.ctaText}\n      <ArrowUpRight className=\"size-4 transition-transform group-hover/cta:translate-x-0.5 group-hover/cta:-translate-y-0.5\" />\n    </span>\n  );\n\n  return (\n    <section\n      className={cn(\n        \"w-full h-full bg-background px-4 py-8 flex justify-center items-center\",\n        className,\n      )}\n    >\n      <div className=\" max-w-6xl\">\n        <div className=\"mb-10 flex flex-col gap-6 md:mb-14 md:flex-row md:items-end md:justify-between\">\n          <div className=\"max-w-xl space-y-3\">\n            <h2 className=\"text-3xl font-semibold leading-tight tracking-tight text-foreground sm:text-4xl md:text-[2.75rem]\">\n              {header.heading}\n            </h2>\n          </div>\n\n          <div className=\"flex shrink-0 flex-col items-start gap-3 md:items-end md:text-right\">\n            <p className=\"max-w-xs text-sm leading-relaxed text-muted-foreground md:text-[0.9375rem]\">\n              {header.description}\n            </p>\n\n            {renderCtaLink ? (\n              renderCtaLink({ href: header.ctaHref, children: ctaContent })\n            ) : (\n              <a href={header.ctaHref}>{ctaContent}</a>\n            )}\n          </div>\n        </div>\n\n        <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n          {posts.map((post, index) => {\n            const card = (\n              <div\n                key={index}\n                className={cn(\n                  \"group bg-muted/50 relative flex flex-col justify-between rounded-none p-6 shadow-[inset_0_0_2px_2px_rgba(255,255,255,1),inset_0_0_0_1px_rgba(0,0,0,0.2),0px_0px_0px_1px_rgba(0,0,0,0.08),0px_1px_2px_-1px_rgba(0,0,0,0.08),0px_2px_4px_0px_rgba(0,0,0,0.06)] duration-300 dark:shadow-[inset_0_0_2px_2px_rgba(255,255,255,0.04),inset_0_0_0_1px_rgba(255,255,255,0.08),0px_0px_0px_1px_rgba(255,255,255,0.06),0px_1px_2px_-1px_rgba(0,0,0,0.5),0px_2px_4px_0px_rgba(0,0,0,0.4)]\",\n                  \"min-h-[220px] sm:min-h-[240px]\",\n                )}\n              >\n                <span className=\"text-muted-foreground/70 text-sm font-medium\">\n                  {post.date}\n                </span>\n\n                <h3 className=\"text-foreground mt-6 text-base leading-snug font-medium sm:text-lg\">\n                  {post.title}\n                </h3>\n\n                <div className=\"mt-auto flex items-end justify-between pt-8\">\n                  <div className=\"leading-tight\">\n                    <p className=\"text-primary text-md font-medium\">\n                      {post.author.name}\n                    </p>\n                    <p className=\"text-muted-foreground text-sm\">\n                      {post.author.role}\n                    </p>\n                  </div>\n\n                  <div className=\"border-border bg-background text-muted-foreground group-hover:border-foreground/20 group-hover:text-foreground flex size-8 shrink-0 items-center justify-center rounded-none border transition-colors\">\n                    <ArrowUpRight className=\"size-3.5\" />\n                  </div>\n                </div>\n              </div>\n            );\n\n            if (renderCardLink && post.href) {\n              return renderCardLink({\n                href: post.href,\n                children: card,\n              });\n            }\n\n            if (post.href) {\n              return (\n                <a\n                  key={index}\n                  href={post.href}\n                  className=\"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 rounded-2xl\"\n                >\n                  {card}\n                </a>\n              );\n            }\n\n            return card;\n          })}\n        </div>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/blog-1.tsx"
    }
  ],
  "type": "registry:ui"
}
