{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lists-09",
  "type": "registry:block",
  "description": "Book table of contents with sticky cover, parts and large chapter numbers.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/lists/lists-09.tsx",
      "content": "const parts = [\n  {\n    part: \"Part one\",\n    title: \"Foundations\",\n    chapters: [\n      { title: \"Why systems fail\", page: 3, minutes: 14 },\n      { title: \"Tokens before components\", page: 21, minutes: 22 },\n      { title: \"A vocabulary for spacing\", page: 47, minutes: 18 },\n    ],\n  },\n  {\n    part: \"Part two\",\n    title: \"Building\",\n    chapters: [\n      { title: \"Primitives that compose\", page: 69, minutes: 26 },\n      { title: \"Variants without the sprawl\", page: 98, minutes: 19 },\n      { title: \"Documentation people read\", page: 121, minutes: 16 },\n      { title: \"Testing the visual layer\", page: 140, minutes: 21 },\n    ],\n  },\n  {\n    part: \"Part three\",\n    title: \"Scaling\",\n    chapters: [\n      { title: \"Governance without gatekeeping\", page: 165, minutes: 24 },\n      { title: \"Versioning and deprecation\", page: 193, minutes: 17 },\n      { title: \"Measuring adoption\", page: 214, minutes: 15 },\n    ],\n  },\n]\n\nconst offsets = parts.map((_, i) =>\n  parts.slice(0, i).reduce((sum, part) => sum + part.chapters.length, 0)\n)\n\nexport default function Lists09() {\n  return (\n    <section className=\"w-full bg-background py-24\">\n      <div className=\"mx-auto grid max-w-6xl gap-12 px-6 lg:grid-cols-[360px_1fr]\">\n        <div className=\"lg:sticky lg:top-24 lg:self-start\">\n          <div className=\"aspect-[3/4] max-w-[260px] bg-gradient-to-br from-foreground to-foreground p-6 text-background shadow-2xl dark:from-foreground dark:to-muted-foreground dark:text-background\">\n            <div className=\"flex h-full flex-col justify-between border border-current/30 p-4\">\n              <p className=\"font-sans text-[10px] tracking-widest uppercase opacity-70\">A Designali guide</p>\n              <div>\n                <p className=\"text-3xl leading-tight font-semibold tracking-tight\">Design se code tak</p>\n                <p className=\"mt-2 text-xs opacity-70\">Ali Imam</p>\n              </div>\n            </div>\n          </div>\n          <h2 className=\"mt-8 text-3xl font-semibold tracking-tight\">Contents</h2>\n          <p className=\"mt-2 text-sm leading-6 text-muted-foreground\">\n            Ten chapters, 236 pages. Read in order or jump to what you need this week.\n          </p>\n        </div>\n\n        <div className=\"space-y-12\">\n          {parts.map((part, partIndex) => (\n            <div key={part.title}>\n              <div className=\"flex items-baseline gap-4 border-b border-foreground pb-3\">\n                <span className=\"font-sans text-xs text-muted-foreground uppercase\">{part.part}</span>\n                <h3 className=\"text-xl font-medium tracking-tight\">{part.title}</h3>\n              </div>\n              <ol>\n                {part.chapters.map((chapter, chapterIndex) => {\n                  const n = offsets[partIndex]! + chapterIndex + 1\n                  return (\n                    <li key={chapter.title}>\n                      <a\n                        href=\"#\"\n                        className=\"group grid grid-cols-[3rem_1fr_auto] items-baseline gap-4 border-b border-border py-5 transition-colors hover:bg-muted/40\"\n                      >\n                        <span className=\"text-3xl font-semibold tracking-tighter text-muted-foreground/40 group-hover:text-foreground\">\n                          {String(n).padStart(2, \"0\")}\n                        </span>\n                        <span>\n                          <span className=\"block text-base font-medium md:text-lg\">{chapter.title}</span>\n                          <span className=\"text-xs text-muted-foreground\">{chapter.minutes} min read</span>\n                        </span>\n                        <span className=\"font-sans text-sm text-muted-foreground\">p.{chapter.page}</span>\n                      </a>\n                    </li>\n                  )\n                })}\n              </ol>\n            </div>\n          ))}\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "1100px"
  },
  "categories": [
    "lists"
  ]
}