{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-16",
  "type": "registry:block",
  "description": "Tabbed Latest, Most read and Staff picks switcher showing a lead story beside two thumbnail list items.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/blog/blog-16.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Flame,\n  Clock,\n  Star,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nimport { Macbook } from \"@/registry/designali/ui/apple/macbook\"\n\ntype Post = { title: string; excerpt: string; author: string; meta: string; image: string }\n\nconst tabs: { id: string; label: string; icon: typeof Clock; posts: Post[] }[] = [\n  {\n    id: \"latest\",\n    label: \"Latest\",\n    icon: Clock,\n    posts: [\n      { title: \"Planning a brand identity for a new studio\", excerpt: \"Logo, type, color, and the case for starting with one blue.\", author: \"Ali Imam\", meta: \"2 hours ago\", image: \"/images/templates/design-agency.jpg\" },\n      { title: \"Building a landing page in one afternoon\", excerpt: \"Three Designali blocks, one template, zero custom CSS.\", author: \"Ali Imam\", meta: \"Yesterday\", image: \"/images/templates/portfolio-simple.jpg\" },\n      { title: \"New on designali.com this winter\", excerpt: \"Fourteen new templates, from portfolios to resorts.\", author: \"Designali Studio\", meta: \"Nov 12\", image: \"/images/templates/resort.jpg\" },\n    ],\n  },\n  {\n    id: \"popular\",\n    label: \"Most read\",\n    icon: Flame,\n    posts: [\n      { title: \"The only five blocks every landing page needs\", excerpt: \"Hero, features, pricing, FAQ and a call to action.\", author: \"Ali Imam\", meta: \"48k reads\", image: \"/img/dashboard-1-light.jpg\" },\n      { title: \"Pixel-perfect handoff is a myth\", excerpt: \"Design in Figma, ship in code, review in the browser.\", author: \"Ali Imam\", meta: \"31k reads\", image: \"/stock/development.jpg\" },\n      { title: \"Installing @designali/icons without the mess\", excerpt: \"One package, 4,000+ icons, and ten calm minutes.\", author: \"Designali Studio\", meta: \"27k reads\", image: \"/images/templates/dalim-icons-old.jpg\" },\n    ],\n  },\n  {\n    id: \"staff\",\n    label: \"Staff picks\",\n    icon: Star,\n    posts: [\n      { title: \"A year of designing in public\", excerpt: \"Total output: 460+ blocks. Total cost: less than you think.\", author: \"Ali Imam\", meta: \"Pick of the month\", image: \"/images/templates/aliimam-comp.jpg\" },\n      { title: \"Why we stopped designing without code\", excerpt: \"The workflow, the tools, and what changed our minds.\", author: \"Designali Studio\", meta: \"Long read\", image: \"/stock/strategy.jpg\" },\n      { title: \"Design is a conversation\", excerpt: \"Ali Imam on reading what a client really wants.\", author: \"Ali Imam\", meta: \"Interview\", image: \"/ali.jpg\" },\n    ],\n  },\n]\n\nexport default function Blog16() {\n  const [active, setActive] = useState(\"latest\")\n  const current = tabs.find((t) => t.id === active) ?? tabs[0]!\n  const [lead, ...rest] = current.posts\n\n  return (\n    <section className=\"w-full bg-background py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-col gap-6 border-b md:flex-row md:items-end md:justify-between\">\n          <h2 className=\"pb-0 text-3xl font-medium tracking-tight md:pb-4 md:text-4xl\">Designali stories</h2>\n          <div role=\"tablist\" className=\"-mb-px flex overflow-x-auto\">\n            {tabs.map((t) => {\n              const on = t.id === active\n              const Icon = t.icon\n              return (\n                <button\n                  key={t.id}\n                  role=\"tab\"\n                  type=\"button\"\n                  aria-selected={on}\n                  onClick={() => setActive(t.id)}\n                  className={cn(\n                    \"inline-flex shrink-0 items-center gap-2 border-b-2 px-4 py-3 text-sm transition-colors\",\n                    on ? \"border-foreground text-foreground\" : \"border-transparent text-muted-foreground hover:text-foreground\"\n                  )}\n                >\n                  <Icon className=\"size-4\" />\n                  {t.label}\n                </button>\n              )\n            })}\n          </div>\n        </div>\n\n        <div role=\"tabpanel\" className=\"mt-10 grid gap-8 lg:grid-cols-[1.4fr_1fr]\">\n          {lead && (\n            <a href=\"#\" className=\"group block\">\n              <div className=\"flex aspect-[16/10] items-center justify-center overflow-hidden bg-muted px-4\">\n                <Macbook\n                  variant=\"macbook-air\"\n                  color=\"starlight\"\n                  className=\"max-w-full transition-transform duration-500 group-hover:scale-[1.02]\"\n                >\n                  <img\n                    src={lead.image}\n                    alt={lead.title}\n                    className=\"size-full object-cover object-top\"\n                  />\n                </Macbook>\n              </div>\n              <p className=\"mt-5 text-xs text-muted-foreground\">\n                {lead.author} · {lead.meta}\n              </p>\n              <h3 className=\"mt-2 text-2xl font-medium tracking-tight group-hover:underline group-hover:underline-offset-4 md:text-3xl\">\n                {lead.title}\n              </h3>\n              <p className=\"mt-2 text-muted-foreground\">{lead.excerpt}</p>\n            </a>\n          )}\n          <div className=\"flex flex-col gap-8\">\n            {rest.map((p) => (\n              <a key={p.title} href=\"#\" className=\"group grid grid-cols-[7rem_1fr] gap-4 sm:grid-cols-[9rem_1fr]\">\n                <img src={p.image} alt=\"\" className=\"aspect-square w-full object-cover\" />\n                <div className=\"min-w-0\">\n                  <p className=\"text-xs text-muted-foreground\">\n                    {p.author} · {p.meta}\n                  </p>\n                  <h3 className=\"mt-1 leading-snug font-medium group-hover:underline group-hover:underline-offset-4\">\n                    {p.title}\n                  </h3>\n                  <p className=\"mt-1 text-sm text-muted-foreground\">{p.excerpt}</p>\n                </div>\n              </a>\n            ))}\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "750px"
  },
  "categories": [
    "blog"
  ]
}