{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "handoff-nav-studio-demo",
  "type": "registry:block",
  "title": "Handoff Nav: Studio at Phone Width",
  "description": "Sticky Navbar on Scroll example, Studio at Phone Width: An interiors studio's site in a phone frame. The links fold into a menu that grows out of the pill, and \"Book a call\" shares the pill with it once caught; the hero copy gets wider padding through `data-[placement=hero]:`. A take on the navbar (nav bar). Fits navbar, shop and hero sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "navbar",
    "shop",
    "hero",
    "navigation",
    "scroll",
    "interaction"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/handoff-nav#handoff-nav-studio-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/handoff-nav.json"
  ],
  "files": [
    {
      "path": "components/handoff-nav-studio-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { HandoffNav, HandoffNavCta, HandoffNavProvider } from \"@/components/ui/handoff-nav\";\n\nconst photo = (id: string) =>\n  `https://images.unsplash.com/photo-${id}?auto=format&fit=crop&w=720&h=900&q=80`;\n\nconst work = [\n  { id: \"1638193399915-e22226710f2b\", title: \"Rua das Flores\", kind: \"Apartment, 92 m²\", year: \"2026\" },\n  { id: \"1630232782797-7b48bf7125e4\", title: \"Casa Alfama\", kind: \"Kitchen and dining\", year: \"2025\" },\n  { id: \"1633944095397-878622ebc01c\", title: \"Quinta Norte\", kind: \"Guest suite\", year: \"2025\" },\n  { id: \"1633429083812-2f9c1ef8738d\", title: \"Atelier Graça\", kind: \"Reading room\", year: \"2024\" },\n];\n\nconst services = [\"Whole homes\", \"Kitchens and joinery\", \"Lighting plans\", \"Furniture sourcing\"];\n\nexport function HandoffNavStudioDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n\n  return (\n    // The studio's site at phone width: the links fold into the menu, and the caught button\n    // shares the pill with it.\n    <div className=\"flex w-full justify-center\">\n      <div className=\"w-full max-w-[390px] overflow-hidden rounded-[2rem] border border-stone-300 bg-[#f6f3ee] shadow-[0_30px_60px_-30px_rgb(28_25_23/0.45)] dark:border-stone-700 dark:bg-stone-950\">\n        <div ref={scrollRef} className=\"relative h-[var(--demo-height,36rem)] overflow-y-auto overscroll-contain\">\n          <HandoffNavProvider>\n            <HandoffNav\n              containerRef={scrollRef}\n              surfaceClassName=\"bg-[#f6f3ee]/85 dark:bg-stone-900/85\"\n              logo={\n                <a\n                  href=\"#\"\n                  className=\"rounded-sm font-serif text-[17px] tracking-tight text-stone-900 focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-stone-900 dark:text-stone-100 dark:focus-visible:outline-white\"\n                >\n                  Atelier Mora\n                </a>\n              }\n              links={[\n                { label: \"Work\", href: \"#work\" },\n                { label: \"Studio\", href: \"#studio\" },\n                { label: \"Journal\", href: \"#journal\" },\n                { label: \"Contact\", href: \"#contact\" },\n              ]}\n              action={{ label: \"hello@ateliermora.pt\", href: \"#contact\" }}\n            />\n\n            <main className=\"px-5 pb-12\">\n              <section className=\"pt-8\">\n                <p className=\"text-[13px] text-stone-500\">Interiors · Lisbon</p>\n                <h1 className=\"mt-4 font-serif text-[40px]/[1.02] tracking-[-0.02em] text-stone-900 dark:text-stone-100\">\n                  Rooms that hold <em className=\"text-stone-500\">still.</em>\n                </h1>\n                <p className=\"mt-5 text-[15px]/6 text-stone-600 dark:text-stone-400\">\n                  We design homes around the light they already have, and finish them with things made a few\n                  streets away.\n                </p>\n                <div className=\"mt-7 flex items-center gap-4\">\n                  <HandoffNavCta\n                    href=\"#contact\"\n                    className=\"bg-stone-900 hover:bg-stone-700 data-[placement=hero]:px-6 dark:bg-stone-100 dark:text-stone-900 dark:hover:bg-stone-300\"\n                  >\n                    Book a call\n                  </HandoffNavCta>\n                  <a href=\"#work\" className=\"text-sm text-stone-700 underline underline-offset-4 dark:text-stone-300\">\n                    See the work\n                  </a>\n                </div>\n              </section>\n\n              <section id=\"work\" className=\"mt-12 space-y-8\">\n                {work.map((item) => (\n                  <figure key={item.title}>\n                    <div className=\"aspect-[4/5] overflow-hidden rounded-xl bg-stone-200 dark:bg-stone-800\">\n                      {/* eslint-disable-next-line @next/next/no-img-element */}\n                      <img src={photo(item.id)} alt={`${item.title}, ${item.kind}`} className=\"size-full object-cover\" />\n                    </div>\n                    <figcaption className=\"mt-3 flex items-baseline justify-between text-[13px]\">\n                      <span className=\"font-serif text-[17px] text-stone-900 dark:text-stone-100\">{item.title}</span>\n                      <span className=\"text-stone-500\">\n                        {item.kind} · {item.year}\n                      </span>\n                    </figcaption>\n                  </figure>\n                ))}\n              </section>\n\n              <section id=\"studio\" className=\"mt-14 border-t border-stone-900/10 pt-8 dark:border-white/10\">\n                <h2 className=\"font-serif text-2xl tracking-tight text-stone-900 dark:text-stone-100\">What we take on</h2>\n                <ul className=\"mt-4 divide-y divide-stone-900/10 dark:divide-white/10\">\n                  {services.map((service) => (\n                    <li key={service} className=\"py-3 text-[15px] text-stone-700 dark:text-stone-300\">\n                      {service}\n                    </li>\n                  ))}\n                </ul>\n              </section>\n\n              <footer id=\"contact\" className=\"mt-14 text-[13px]/6 text-stone-500\">\n                Rua do Benformoso 41, Lisbon\n                <br />\n                Two new homes a season. Next opening: March.\n              </footer>\n            </main>\n          </HandoffNavProvider>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}