{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-14",
  "type": "registry:block",
  "description": "Multi-part series panel with reading progress and CTA beside a stepper list of read, current, upcoming and locked parts.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/designali/blocks/blog/blog-14.tsx",
      "content": "import {\n  Check,\n  Lock,\n  Play,\n} from \"@designali/icons\"\n\nimport { Button } from \"@workspace/ui/components/button\"\nimport { cn } from \"@workspace/ui/lib/utils\"\n\nconst parts = [\n  { n: 1, title: \"Why your first design system should be tiny\", read: 7, status: \"read\" },\n  { n: 2, title: \"Tokens: naming, layering, and one source of truth\", read: 11, status: \"read\" },\n  { n: 3, title: \"Building the first ten components\", read: 14, status: \"current\" },\n  { n: 4, title: \"Documentation people open on purpose\", read: 9, status: \"upcoming\" },\n  { n: 5, title: \"Versioning, deprecation, and saying no\", read: 12, status: \"upcoming\" },\n  { n: 6, title: \"Shipping it as Designali blocks\", read: 8, status: \"locked\" },\n] as const\n\nexport default function Blog14() {\n  const done = parts.filter((p) => p.status === \"read\").length\n  const pct = Math.round((done / parts.length) * 100)\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=\"grid gap-px border bg-border lg:grid-cols-[1fr_1.5fr]\">\n          <div className=\"flex flex-col justify-between gap-10 bg-muted/40 p-6 md:p-10\">\n            <div>\n              <span className=\"bg-background px-2 py-1 text-xs\">A series in 6 parts</span>\n              <h2 className=\"mt-6 text-3xl font-medium tracking-tight md:text-4xl\">\n                Design systems from zero\n              </h2>\n              <p className=\"mt-4 text-sm leading-6 text-muted-foreground\">\n                A practical series from Ali Imam on starting, shipping, and\n                maintaining a design system when you are the only person doing it.\n              </p>\n            </div>\n            <div>\n              <div className=\"flex items-baseline justify-between text-sm\">\n                <span>Your progress</span>\n                <span className=\"font-sans text-xs text-muted-foreground\">\n                  {done} of {parts.length} read\n                </span>\n              </div>\n              <div className=\"mt-3 h-1.5 bg-background\">\n                <div className=\"h-full bg-primary\" style={{ width: `${pct}%` }} />\n              </div>\n              <Button className=\"mt-6 w-full sm:w-auto\" nativeButton={false} render={<a href=\"#\" />}>\n                <Play data-icon=\"inline-start\" />\n                Continue with part 3\n              </Button>\n            </div>\n          </div>\n\n          <ol className=\"bg-background\">\n            {parts.map((p, i) => (\n              <li key={p.n} className=\"relative\">\n                {i < parts.length - 1 && (\n                  <span\n                    className={cn(\n                      \"pointer-events-none absolute top-14 left-[2.625rem] z-10 h-[calc(100%-2.25rem)] w-px md:left-[3.625rem]\",\n                      p.status === \"read\" ? \"bg-primary\" : \"bg-border\"\n                    )}\n                  />\n                )}\n                <a\n                  href=\"#\"\n                  aria-disabled={p.status === \"locked\"}\n                  className={cn(\n                    \"relative flex items-start gap-5 px-6 py-5 transition-colors md:px-10\",\n                    p.status === \"current\" && \"bg-muted/60\",\n                    p.status === \"locked\" ? \"pointer-events-none opacity-50\" : \"hover:bg-muted/40\"\n                  )}\n                >\n                  <span\n                    className={cn(\n                      \"flex size-9 shrink-0 items-center justify-center rounded-full border-2 text-xs font-semibold\",\n                      p.status === \"read\" && \"border-primary bg-primary text-primary-foreground\",\n                      p.status === \"current\" && \"border-primary bg-background\",\n                      (p.status === \"upcoming\" || p.status === \"locked\") && \"bg-background text-muted-foreground\"\n                    )}\n                  >\n                    {p.status === \"read\" ? (\n                      <Check className=\"size-4\" />\n                    ) : p.status === \"locked\" ? (\n                      <Lock className=\"size-3.5\" />\n                    ) : (\n                      p.n\n                    )}\n                  </span>\n                  <span className=\"min-w-0 pt-1.5\">\n                    <span className=\"block text-xs text-muted-foreground\">\n                      Part {p.n} · {p.read} min\n                      {p.status === \"current\" ? \" · Up next\" : \"\"}\n                      {p.status === \"locked\" ? \" · Publishes Dec 2\" : \"\"}\n                    </span>\n                    <span className=\"mt-1 block font-medium\">{p.title}</span>\n                  </span>\n                </a>\n              </li>\n            ))}\n          </ol>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "700px"
  },
  "categories": [
    "blog"
  ]
}