{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "grid-16",
  "type": "registry:block",
  "description": "Project grid where a clicked card expands to two columns with summary and results.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/grid/grid-16.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport {\n  Minus,\n  Plus,\n} from \"@designali/icons\"\n\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst projects = [\n  { name: \"Designali Agency\", sector: \"Brand & web\", year: \"2026\", image: \"/images/templates/design-agency.jpg\", summary: \"Brand identity and a production-ready Next.js site for the Designali studio.\", results: [[\"+38%\", \"Enquiries\"], [\"100\", \"Lighthouse\"], [\"11 wks\", \"To launch\"]] },\n  { name: \"Portfolio Simple\", sector: \"Template\", year: \"2026\", image: \"/images/templates/portfolio-simple.jpg\", summary: \"A clean Next.js portfolio template for designers and developers.\", results: [[\"2.1x\", \"Downloads\"], [\"-26%\", \"Setup time\"], [\"9 wks\", \"To launch\"]] },\n  { name: \"Dalim Agency\", sector: \"Branding\", year: \"2025\", image: \"/images/templates/dalim-agency-old.jpg\", summary: \"Brand identity and website for the first Dalim studio by Ali Imam.\", results: [[\"+64%\", \"Leads\"], [\"-52%\", \"Bounce\"], [\"6 wks\", \"To launch\"]] },\n  { name: \"Dalim UI\", sector: \"UI kit\", year: \"2025\", image: \"/images/templates/dalim-ui-old.jpg\", summary: \"A component kit that grew into the 460+ Designali blocks.\", results: [[\"460+\", \"Blocks\"], [\"AA\", \"WCAG\"], [\"14 wks\", \"To launch\"]] },\n  { name: \"Dalim Icons\", sector: \"Icon system\", year: \"2025\", image: \"/images/templates/dalim-icons-old.jpg\", summary: \"An icon set that evolved into 4000+ icons in @designali/icons.\", results: [[\"4000+\", \"Icons\"], [\"+3x\", \"Usage\"], [\"8 wks\", \"To launch\"]] },\n  { name: \"Ali Imam\", sector: \"Portfolio\", year: \"2024\", image: \"/images/templates/aliimam-comp.jpg\", summary: \"Personal portfolio for Ali Imam, designed in Figma and built with Next.js.\", results: [[\"240+\", \"Pages\"], [\"-45%\", \"Load time\"], [\"10 wks\", \"To launch\"]] },\n]\n\nexport default function Grid16() {\n  const [open, setOpen] = useState<string | null>(projects[0]!.name)\n\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"flex flex-col justify-between gap-4 md:flex-row md:items-end\">\n          <h2 className=\"text-4xl font-semibold tracking-tight md:text-5xl\">Selected Designali work</h2>\n          <p className=\"text-sm text-muted-foreground\">Tap a project to see the outcome.</p>\n        </div>\n\n        <div className=\"mt-12 grid grid-flow-dense grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3\">\n          {projects.map((project) => {\n            const isOpen = open === project.name\n            return (\n              <article\n                key={project.name}\n                className={cn(\n                  \"overflow-hidden border border-border bg-background transition-colors\",\n                  isOpen && \"sm:col-span-2 border-foreground\"\n                )}\n              >\n                <button\n                  type=\"button\"\n                  aria-expanded={isOpen}\n                  onClick={() => setOpen(isOpen ? null : project.name)}\n                  className={cn(\"grid w-full text-left\", isOpen && \"md:grid-cols-2\")}\n                >\n                  <div\n                    className={cn(\"relative\", isOpen ? \"aspect-[16/10]\" : \"aspect-[16/9]\")}\n                    style={{\n                      background: `linear-gradient(to top, oklch(0 0 0 / 0.55), transparent 60%), url(\"${project.image}\") center / cover`,\n                    }}\n                  >\n                    <span className=\"absolute bottom-4 left-4 text-2xl font-semibold tracking-tight text-white\">\n                      {project.name}\n                    </span>\n                  </div>\n                  <div className=\"flex flex-col justify-between p-5\">\n                    <div className=\"flex items-center justify-between gap-4\">\n                      <span className=\"text-xs text-muted-foreground\">\n                        {project.sector} · {project.year}\n                      </span>\n                      <span className=\"flex size-7 items-center justify-center border border-border\">\n                        {isOpen ? <Minus className=\"size-3.5\" /> : <Plus className=\"size-3.5\" />}\n                      </span>\n                    </div>\n                    {isOpen && (\n                      <>\n                        <p className=\"mt-4 text-sm leading-6\">{project.summary}</p>\n                        <dl className=\"mt-6 grid grid-cols-3 gap-4 border-t border-border pt-5\">\n                          {project.results.map(([value, label]) => (\n                            <div key={label}>\n                              <dt className=\"text-xs text-muted-foreground\">{label}</dt>\n                              <dd className=\"text-xl font-semibold tracking-tight\">{value}</dd>\n                            </div>\n                          ))}\n                        </dl>\n                      </>\n                    )}\n                  </div>\n                </button>\n              </article>\n            )\n          })}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "1000px"
  },
  "categories": [
    "grid"
  ]
}