{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "golden-grid-portfolio",
  "type": "registry:block",
  "title": "Golden Grid Portfolio",
  "description": "Portfolio Section built with Golden Grid (fibonacci bento grid): details ride the golden spiral into the big square. A take on the spiral gallery (spiral carousel) and image gallery (photo gallery). A portfolio section about the small things: handles, eaves, ceilings. The details fill a Golden Grid, a rectangle cut into Fibonacci squares, and the biggest square is the one named on the right. Every few seconds the next detail rides the golden spiral up into it while the rest move up a size; a click on any square, or the arrows, brings that one up.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "portfolio-sections",
    "portfolio",
    "spiral-gallery",
    "image-gallery"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/portfolio-sections/golden-grid-portfolio",
  "registryDependencies": [
    "https://keyframeui.com/r/golden-grid.json"
  ],
  "files": [
    {
      "path": "components/golden-grid-portfolio.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { GoldenGrid } from \"@/components/ui/golden-grid\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the section yours: the copy\n * and the details. The biggest square is the detail named on the\n * right; every few seconds the next one rides the spiral up into\n * it, and a click on any square brings that one up.\n * ─────────────────────────────────────────────────────────── */\n\n/** Amber, dark enough for small text on white: the eyebrow, the counter and focus rings. */\nconst ACCENT = \"#b45309\";\nconst ACCENT_DARK = \"#fbbf24\";\n\nconst EYEBROW = \"Details\";\nconst HEADLINE = \"A house is won in the last two centimetres.\";\nconst SUBLINE = \"We draw every handle, joint and threshold ourselves, then build a full-size one before anything is ordered.\";\nconst LINK = { label: \"How we work\", href: \"#process\" };\n\nconst square = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=900&h=900&q=80`;\n\nconst DETAILS = [\n  { src: square(\"1681157998340-6d848679b149\"), alt: \"A pointed sandstone arch with a tiled border opening onto an arcade\", name: \"Tiled arch reveal\", project: \"Arcade Library\", note: \"Hand-cut tiles set into the arch's reveal, one colour to each course.\" },\n  { src: square(\"1727786467215-116f0dbb9696\"), alt: \"White stairs turning between vivid green walls\", name: \"Green lime-wash\", project: \"Casa Verde\", note: \"The green was mixed on site, then the white stair was cut through it.\" },\n  { src: square(\"1706541972715-41ea84cf1d1e\"), alt: \"Arched lattice windows throwing golden light across a patterned floor\", name: \"Lattice windows\", project: \"Lattice Room\", note: \"Timber lattice that lays the afternoon on the floor as a second pattern.\" },\n  { src: square(\"1762755647813-017e128a4ba0\"), alt: \"A monstera against a textured orange wall\", name: \"Burnished orange plaster\", project: \"Hotel Sal\", note: \"Three coats of pigmented lime, polished by hand so the courtyard glows at dusk.\" },\n  { src: square(\"1672865362636-2a1c08284ede\"), alt: \"A curving white plaster wall beside a stair\", name: \"Curved stair wall\", project: \"Curve House\", note: \"One plaster wall that bends with the stair, with no corner to catch the dust.\" },\n  { src: square(\"1754390755142-3b4b9ffbd1f3\"), alt: \"A deep red curtain in a concrete room with steel windows\", name: \"Red wool curtain\", project: \"Foundry Loft\", note: \"A floor-to-ceiling wool curtain that turns one loft into two rooms.\" },\n  { src: square(\"1576500762874-720db275b3f9\"), alt: \"Terracotta tiled steps below a sunlit white wall and potted plants\", name: \"Terracotta treads\", project: \"Terraço House\", note: \"Handmade tiles on every tread, with the risers left white.\" },\n];\n\n/* ── Section ─────────────────────────────────────────────── */\n\nconst pad = (n: number) => String(n).padStart(2, \"0\");\n\nexport function GoldenGridPortfolio() {\n  const [index, setIndex] = React.useState(0);\n  const detail = DETAILS[index];\n  const count = DETAILS.length;\n\n  const iconButton =\n    \"grid size-10 place-items-center rounded-full border border-zinc-950/10 transition-colors duration-150 hover:bg-zinc-950/[0.04] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) dark:border-white/15 dark:hover:bg-white/[0.06] dark:focus-visible:outline-(--accent-dark)\";\n\n  return (\n    <section\n      style={{ \"--accent\": ACCENT, \"--accent-dark\": ACCENT_DARK } as React.CSSProperties}\n      className=\"overflow-x-clip bg-white text-zinc-950 dark:bg-zinc-950 dark:text-white\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 py-20 sm:py-24\">\n        <div className=\"max-w-2xl\">\n          <p className=\"text-[13px] font-medium text-(--accent) dark:text-(--accent-dark)\">{EYEBROW}</p>\n          <h2 className=\"mt-3 text-balance text-[2rem] leading-[1.08] font-semibold tracking-[-0.035em] sm:text-[2.75rem]\">{HEADLINE}</h2>\n          <p className=\"mt-4 max-w-lg text-pretty text-base leading-relaxed text-zinc-600 dark:text-zinc-400\">{SUBLINE}</p>\n        </div>\n\n        <div className=\"mt-10 grid grid-cols-1 gap-8 lg:mt-12 lg:grid-cols-[minmax(0,1fr)_17rem] lg:items-stretch lg:gap-10\">\n          <GoldenGrid\n            items={DETAILS}\n            index={index}\n            onIndexChange={(i) => setIndex(i)}\n            interval={3.6}\n            label=\"Lath details\"\n            className=\"rounded-lg text-zinc-950 dark:text-white\"\n          />\n\n          <div className=\"flex flex-col justify-between gap-6 border-t border-zinc-950/[0.08] pt-6 lg:border-t-0 lg:border-l lg:py-1 lg:pl-8 dark:border-white/[0.1]\">\n            <div aria-live=\"polite\">\n              <p className=\"font-mono text-xs text-zinc-500 tabular-nums dark:text-zinc-400\">\n                <span className=\"text-(--accent) dark:text-(--accent-dark)\">{pad(index + 1)}</span> / {pad(count)}\n              </p>\n              <p className=\"mt-2 text-lg leading-snug font-semibold tracking-[-0.02em] text-balance\">{detail.name}</p>\n              <p className=\"text-sm text-zinc-500 dark:text-zinc-400\">{detail.project}</p>\n              <p className=\"mt-3 text-sm leading-relaxed text-zinc-600 dark:text-zinc-300\">{detail.note}</p>\n            </div>\n            <div className=\"flex items-center gap-2\">\n              <button type=\"button\" aria-label=\"Previous detail\" onClick={() => setIndex((i) => (i - 1 + count) % count)} className={iconButton}>\n                <svg viewBox=\"0 0 16 16\" className=\"size-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" aria-hidden>\n                  <path d=\"M10 3.5 5.5 8l4.5 4.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </button>\n              <button type=\"button\" aria-label=\"Next detail\" onClick={() => setIndex((i) => (i + 1) % count)} className={iconButton}>\n                <svg viewBox=\"0 0 16 16\" className=\"size-4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" aria-hidden>\n                  <path d=\"M6 3.5 10.5 8 6 12.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n                </svg>\n              </button>\n              <a\n                href={LINK.href}\n                className=\"ml-auto rounded-sm text-sm font-semibold underline decoration-zinc-950/20 underline-offset-4 transition-colors duration-150 hover:decoration-current focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent) dark:decoration-white/25 dark:focus-visible:outline-(--accent-dark)\"\n              >\n                {LINK.label}\n              </a>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}