{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "portfolio-15",
  "type": "registry:block",
  "description": "Case study process stepper with progress bars and a detail card for each project phase.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/portfolio/portfolio-15.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { ArrowLeft, ArrowRight } from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst phases = [\n  {\n    name: \"Listen\",\n    weeks: \"Weeks 1-2\",\n    title: \"Discovery before a single sketch\",\n    body: \"We started with the brief, the brand and a few honest conversations. The client said the site looked dated. The research said visitors could not find the work.\",\n    artefacts: [\"Discovery notes\", \"Site audit\", \"Moodboard\"],\n  },\n  {\n    name: \"Frame\",\n    weeks: \"Weeks 3-4\",\n    title: \"One direction, written on one page\",\n    body: \"We narrowed every idea to a single statement the whole team signed: show the work first, and make starting a project one click away.\",\n    artefacts: [\"Brand direction\", \"Sitemap\", \"Scope agreement\"],\n  },\n  {\n    name: \"Make\",\n    weeks: \"Weeks 5-10\",\n    title: \"Figma prototypes every Friday\",\n    body: \"Six weekly rounds of clickable prototypes in Figma, then the same screens built as Designali blocks in Next.js and Tailwind CSS.\",\n    artefacts: [\"Figma prototypes\", \"Design system\", \"Next.js build\"],\n  },\n  {\n    name: \"Ship\",\n    weeks: \"Weeks 11-14\",\n    title: \"Launched on Vercel, then refined\",\n    body: \"Ali Imam stayed on through launch, watching analytics and feedback daily and shipping fixes within the week.\",\n    artefacts: [\"Production code\", \"Launch checklist\", \"Post-launch review\"],\n  },\n]\n\nexport default function Portfolio15() {\n  const [active, setActive] = useState(0)\n  const phase = phases[active]!\n\n  return (\n    <section className=\"w-full bg-muted/40 py-16 text-foreground md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-6\">\n        <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n          How a Designali project unfolds\n        </p>\n        <h2 className=\"mt-3 max-w-2xl text-3xl font-medium tracking-tight md:text-5xl\">\n          Fourteen weeks, four phases\n        </h2>\n\n        <ol className=\"mt-10 grid grid-cols-4 gap-2\">\n          {phases.map((p, i) => (\n            <li key={p.name}>\n              <button\n                type=\"button\"\n                onClick={() => setActive(i)}\n                className=\"group w-full text-left\"\n                aria-current={active === i ? \"step\" : undefined}\n              >\n                <span className=\"block h-1 w-full bg-border\">\n                  <span\n                    className={cn(\n                      \"block h-full bg-foreground transition-all duration-500\",\n                      i <= active ? \"w-full\" : \"w-0\"\n                    )}\n                  />\n                </span>\n                <span className=\"mt-3 flex items-baseline gap-2\">\n                  <span className=\"font-sans text-xs text-muted-foreground\">\n                    0{i + 1}\n                  </span>\n                  <span\n                    className={cn(\n                      \"text-sm font-medium transition-colors\",\n                      active === i\n                        ? \"text-foreground\"\n                        : \"text-muted-foreground group-hover:text-foreground\"\n                    )}\n                  >\n                    {p.name}\n                  </span>\n                </span>\n              </button>\n            </li>\n          ))}\n        </ol>\n\n        <div className=\"mt-8 grid gap-8 border border-border bg-background p-6 md:grid-cols-[1.4fr_1fr] md:p-10\">\n          <div>\n            <p className=\"text-xs text-muted-foreground\">{phase.weeks}</p>\n            <h3 className=\"mt-2 text-2xl leading-tight font-medium tracking-tight md:text-3xl\">\n              {phase.title}\n            </h3>\n            <p className=\"mt-4 leading-7 text-muted-foreground\">{phase.body}</p>\n          </div>\n          <div className=\"flex flex-col justify-between gap-8 md:border-l md:border-border md:pl-8\">\n            <div>\n              <p className=\"text-xs tracking-widest text-muted-foreground uppercase\">\n                Artefacts\n              </p>\n              <ul className=\"mt-4 space-y-3\">\n                {phase.artefacts.map((item) => (\n                  <li key={item} className=\"flex items-center gap-3 text-sm\">\n                    <span className=\"size-1.5 bg-foreground\" />\n                    {item}\n                  </li>\n                ))}\n              </ul>\n            </div>\n            <div className=\"flex gap-2\">\n              <Button\n                variant=\"outline\"\n                size=\"icon-lg\"\n                aria-label=\"Previous phase\"\n                disabled={active === 0}\n                onClick={() => setActive((a) => a - 1)}\n              >\n                <ArrowLeft />\n              </Button>\n              <Button\n                className=\"flex-1\"\n                size=\"lg\"\n                disabled={active === phases.length - 1}\n                onClick={() => setActive((a) => a + 1)}\n              >\n                Next phase\n                <ArrowRight />\n              </Button>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "750px"
  },
  "categories": [
    "portfolio"
  ]
}