{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "launch-dock-studio-demo",
  "type": "registry:block",
  "title": "Launch Dock: Studio Work",
  "description": "Mac-Style App Dock example, Studio Work: A design studio's clients as marks in the dock, each launching the site the studio built for them, address bar and all. A take on the dock (mac dock). Fits testimonials, logo cloud and portfolio sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "logo-cloud",
    "portfolio",
    "dock",
    "modal",
    "showcase",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/launch-dock#launch-dock-studio-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/launch-dock.json"
  ],
  "files": [
    {
      "path": "components/launch-dock-studio-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { LaunchDock, type LaunchDockItem } from \"@/components/ui/launch-dock\";\n\nconst photo = (id: string) => `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=1400&h=880&q=80`;\n\ntype Project = {\n  id: string;\n  client: string;\n  work: string;\n  domain: string;\n  mark: React.ReactNode;\n};\n\nfunction Mark({ bg, children }: { bg: string; children: React.ReactNode }) {\n  return <span className={`grid size-full place-items-center ${bg}`}>{children}</span>;\n}\n\nfunction Url({ children }: { children: React.ReactNode }) {\n  return (\n    <span className=\"inline-flex min-w-[46%] items-center justify-center gap-1.5 rounded-md bg-zinc-950/[0.05] px-3 py-0.5 dark:bg-white/[0.07]\">\n      <svg viewBox=\"0 0 12 12\" aria-hidden className=\"size-2.5 opacity-60\">\n        <path d=\"M3.5 5.5V4a2.5 2.5 0 0 1 5 0v1.5M2.5 5.5h7v5h-7z\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.2\" />\n      </svg>\n      {children}\n    </span>\n  );\n}\n\n// A client's site as the studio shipped it: one photo, their type, their nav.\nfunction Site({\n  src,\n  alt,\n  tone,\n  nav,\n  brand,\n  children,\n  shade = \"bg-gradient-to-b from-black/55 via-black/10 to-transparent\",\n}: {\n  src: string;\n  alt: string;\n  tone: \"light\" | \"dark\";\n  nav: string[];\n  brand: React.ReactNode;\n  children: React.ReactNode;\n  shade?: string;\n}) {\n  return (\n    <div className={`relative h-full overflow-hidden ${tone === \"light\" ? \"text-white\" : \"text-zinc-950\"}`}>\n      {/* eslint-disable-next-line @next/next/no-img-element */}\n      <img src={src} alt={alt} className=\"absolute inset-0 size-full object-cover\" />\n      <div className={`absolute inset-0 ${shade}`} />\n      <header className=\"relative flex items-center justify-between px-10 py-7\">\n        {brand}\n        <nav className=\"flex gap-7 text-[13px] font-medium opacity-90\">\n          {nav.map((link) => (\n            <span key={link}>{link}</span>\n          ))}\n        </nav>\n      </header>\n      <div className=\"relative px-10 pt-14\">{children}</div>\n    </div>\n  );\n}\n\nconst projects: Project[] = [\n  {\n    id: \"halden\",\n    client: \"Halden House\",\n    work: \"Website and identity, 2026\",\n    domain: \"halden.house\",\n    mark: (\n      <Mark bg=\"bg-stone-200\">\n        <span className=\"font-serif text-[1.65em] text-stone-800 italic\">H</span>\n      </Mark>\n    ),\n  },\n  {\n    id: \"ember\",\n    client: \"Ember\",\n    work: \"Launch campaign, 2026\",\n    domain: \"ember.run\",\n    mark: (\n      <Mark bg=\"bg-red-600\">\n        <span className=\"text-[1.5em] font-black text-white italic\">E</span>\n      </Mark>\n    ),\n  },\n  {\n    id: \"tempo\",\n    client: \"Tempo\",\n    work: \"Product launch site, 2025\",\n    domain: \"tempo.watch\",\n    mark: (\n      <Mark bg=\"bg-slate-900\">\n        <span className=\"text-[1.35em] font-light tracking-widest text-white\">T</span>\n      </Mark>\n    ),\n  },\n  {\n    id: \"sable\",\n    client: \"Sable\",\n    work: \"Shop and art direction, 2025\",\n    domain: \"sable.store\",\n    mark: (\n      <Mark bg=\"bg-zinc-950\">\n        <span className=\"font-serif text-[1.55em] text-amber-100\">S</span>\n      </Mark>\n    ),\n  },\n  {\n    id: \"nordlys\",\n    client: \"Nordlys\",\n    work: \"Booking site, 2024\",\n    domain: \"nordlys.no\",\n    mark: (\n      <Mark bg=\"bg-teal-700\">\n        <span className=\"text-[1.4em] font-semibold text-teal-50\">N</span>\n      </Mark>\n    ),\n  },\n  {\n    id: \"carry\",\n    client: \"Carry Co.\",\n    work: \"Packaging and shop, 2024\",\n    domain: \"carry.co\",\n    mark: (\n      <Mark bg=\"bg-amber-200\">\n        <span className=\"font-mono text-[1.35em] font-bold text-amber-900\">C</span>\n      </Mark>\n    ),\n  },\n];\n\nconst sites: Record<string, React.ReactNode> = {\n  halden: (\n    <Site\n      src={photo(\"1600585154340-be6161a56a0c\")}\n      alt=\"A timber house at dusk with its windows lit\"\n      tone=\"light\"\n      nav={[\"Projects\", \"Practice\", \"Journal\", \"Contact\"]}\n      brand={<span className=\"font-serif text-[22px] italic\">Halden House</span>}\n      shade=\"bg-gradient-to-br from-black/75 via-black/30 to-black/0\"\n    >\n      <h1 className=\"max-w-[560px] font-serif text-[54px] leading-[1.04] tracking-[-0.01em]\">\n        Houses that hold the evening light.\n      </h1>\n      <p className=\"mt-5 max-w-[400px] text-[15px] leading-relaxed text-white/80\">\n        A small practice on the west coast, building eight homes a year in timber, stone and glass.\n      </p>\n    </Site>\n  ),\n  ember: (\n    <Site\n      src={photo(\"1542291026-7eec264c27ff\")}\n      alt=\"A red running shoe on a red background\"\n      tone=\"light\"\n      nav={[\"Run\", \"Train\", \"Stories\", \"Bag (0)\"]}\n      brand={<span className=\"text-[22px] font-black tracking-tight italic\">EMBER</span>}\n      shade=\"bg-gradient-to-b from-black/45 via-transparent to-transparent\"\n    >\n      <h1 className=\"text-[92px] leading-[0.86] font-black tracking-[-0.04em] uppercase italic\">\n        Run\n        <br />\n        warm.\n      </h1>\n      <span className=\"mt-7 inline-block rounded-full bg-white px-6 py-3 text-[14px] font-bold text-red-600\">\n        Shop the Ember Runner · $140\n      </span>\n    </Site>\n  ),\n  tempo: (\n    <Site\n      src={photo(\"1523275335684-37898b6baf30\")}\n      alt=\"A white watch on a pale background\"\n      tone=\"dark\"\n      nav={[\"Collection\", \"Craft\", \"Stores\"]}\n      brand={<span className=\"text-[18px] font-light tracking-[0.5em]\">TEMPO</span>}\n      shade=\"bg-gradient-to-b from-white/70 via-white/20 to-transparent\"\n    >\n      <h1 className=\"max-w-[420px] text-[46px] leading-[1.1] font-light tracking-[-0.02em]\">Time, kept quietly.</h1>\n      <p className=\"mt-4 max-w-[340px] text-[15px] leading-relaxed text-zinc-700\">\n        The Model 01 has no logo on its face and no second hand. Just the hour, and enough of the minute.\n      </p>\n    </Site>\n  ),\n  sable: (\n    <Site\n      src={photo(\"1592078615290-033ee584e267\")}\n      alt=\"A black shell chair against a light wall\"\n      tone=\"dark\"\n      nav={[\"Chairs\", \"Tables\", \"Lighting\", \"Cart\"]}\n      brand={<span className=\"font-serif text-[24px]\">Sable</span>}\n      shade=\"bg-gradient-to-b from-white/80 via-white/10 to-transparent\"\n    >\n      <p className=\"text-[12px] font-semibold tracking-[0.2em] uppercase text-zinc-600\">New · The Shell Chair</p>\n      <h1 className=\"mt-3 max-w-[460px] font-serif text-[58px] leading-[1.02] tracking-[-0.02em]\">Sit with it a while.</h1>\n    </Site>\n  ),\n  nordlys: (\n    <Site\n      src={photo(\"1600607687939-ce8a6c25118c\")}\n      alt=\"A bright open living room with large windows\"\n      tone=\"light\"\n      nav={[\"Homes\", \"Regions\", \"About\"]}\n      brand={<span className=\"text-[20px] font-semibold tracking-tight\">nordlys</span>}\n      shade=\"bg-gradient-to-b from-black/50 via-black/15 to-transparent\"\n    >\n      <h1 className=\"max-w-[520px] text-[48px] leading-[1.06] font-semibold tracking-[-0.03em]\">\n        Stay somewhere that feels like yours.\n      </h1>\n      <div className=\"mt-7 flex w-[560px] items-center gap-1 rounded-2xl bg-white p-1.5 text-[13px] text-zinc-500 shadow-xl\">\n        <span className=\"flex-1 rounded-xl px-4 py-2.5\">Lofoten, Norway</span>\n        <span className=\"h-6 w-px bg-zinc-200\" />\n        <span className=\"flex-1 rounded-xl px-4 py-2.5\">Feb 14 – 18</span>\n        <span className=\"h-6 w-px bg-zinc-200\" />\n        <span className=\"flex-1 rounded-xl px-4 py-2.5\">2 guests</span>\n        <span className=\"rounded-xl bg-teal-700 px-5 py-2.5 font-semibold text-white\">Search</span>\n      </div>\n    </Site>\n  ),\n  carry: (\n    <Site\n      src={photo(\"1544816155-12df9643f363\")}\n      alt=\"A canvas tote bag hanging on a wall\"\n      tone=\"dark\"\n      nav={[\"Totes\", \"Duffels\", \"Repairs\", \"Bag\"]}\n      brand={<span className=\"font-mono text-[18px] font-bold\">CARRY CO.</span>}\n      shade=\"bg-gradient-to-b from-amber-50/85 via-amber-50/20 to-transparent\"\n    >\n      <h1 className=\"max-w-[460px] font-mono text-[44px] leading-[1.08] font-bold tracking-[-0.03em]\">\n        Made to be overfilled.\n      </h1>\n      <p className=\"mt-4 max-w-[360px] text-[15px] leading-relaxed text-zinc-700\">\n        18oz canvas, double-stitched handles, and free repairs for as long as you own one.\n      </p>\n    </Site>\n  ),\n};\n\nconst items: (LaunchDockItem & { work: string })[] = projects.map((project) => ({\n  id: project.id,\n  label: project.client,\n  title: <Url>{project.domain}</Url>,\n  icon: project.mark,\n  content: sites[project.id],\n  work: project.work,\n}));\n\nexport function LaunchDockStudioDemo() {\n  const [open, setOpen] = React.useState(items[0].id);\n  const project = items.find((item) => item.id === open) ?? items[0];\n\n  return (\n    <div className=\"flex w-full max-w-3xl flex-col items-center gap-5\">\n      <LaunchDock items={items} value={open} onValueChange={setOpen} autoplay dockLabel=\"Clients\" />\n      <p aria-live=\"polite\" className=\"text-sm text-zinc-500 dark:text-zinc-400\">\n        <span className=\"font-medium text-zinc-900 dark:text-zinc-100\">{project.label}</span> · {project.work}\n      </p>\n    </div>\n  );\n}\n"
    }
  ]
}