{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dot-rail-header-demo",
  "type": "registry:block",
  "title": "Dot Rail: Site Header",
  "description": "LED Dot Tab Indicator example, Site Header: A print studio's header. The rail under it runs to whichever link you point at and parks under the current page when you leave. A take on the tabs (tab bar) and progress bar (loading bar). Fits features, navbar, changelog and hero sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "navbar",
    "changelog",
    "hero",
    "tabs",
    "progress-bar",
    "navigation",
    "progress",
    "canvas"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/dot-rail#dot-rail-header-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/dot-rail.json"
  ],
  "files": [
    {
      "path": "components/dot-rail-header-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { DotRail } from \"@/components/ui/dot-rail\";\n\nconst links = [\n  { label: \"Prints\", href: \"#prints\" },\n  { label: \"Studio\", href: \"#studio\" },\n  { label: \"Workshops\", href: \"#workshops\" },\n  { label: \"Journal\", href: \"#journal\" },\n];\n\nfunction Mark() {\n  return (\n    <svg viewBox=\"0 0 20 20\" aria-hidden className=\"size-5\">\n      <circle cx=\"10\" cy=\"10\" r=\"8.25\" className=\"fill-none stroke-current\" strokeWidth=\"1.5\" />\n      <circle cx=\"10\" cy=\"10\" r=\"3.25\" className=\"fill-[var(--dot-rail-accent)]\" />\n    </svg>\n  );\n}\n\nexport function DotRailHeaderDemo() {\n  const navRef = React.useRef<HTMLElement>(null);\n  const [current, setCurrent] = React.useState(\"#studio\");\n\n  return (\n    <div className=\"@container w-full max-w-4xl overflow-hidden rounded-2xl border border-[#0b0b0d]/10 bg-[#fafaf9] text-[#0b0b0d] [--dot-rail-accent:#ff5a1f] dark:border-white/10 dark:bg-[#07080c] dark:text-[#f4f4f6] dark:[--dot-rail-accent:#ff6a2b]\">\n      <header className=\"px-5 pt-4 @[44rem]:px-8\">\n        <div className=\"flex flex-wrap items-center justify-between gap-x-6 gap-y-2\">\n          <a\n            href=\"#\"\n            onClick={(e) => e.preventDefault()}\n            className=\"flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-tight focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-current\"\n          >\n            <Mark />\n            Pressroom\n          </a>\n          <nav\n            ref={navRef}\n            aria-label=\"Main\"\n            className=\"order-last -mx-3 flex w-[calc(100%+1.5rem)] justify-between @[28rem]:mx-0 @[28rem]:w-full @[28rem]:justify-center @[28rem]:gap-2 @[44rem]:order-none @[44rem]:w-auto\"\n          >\n            {links.map((link) => (\n              <a\n                key={link.href}\n                href={link.href}\n                aria-current={current === link.href ? \"page\" : undefined}\n                onClick={(e) => {\n                  e.preventDefault();\n                  setCurrent(link.href);\n                }}\n                className=\"rounded-full px-3 py-2 text-[13px] font-medium text-[#0b0b0d]/60 transition-colors duration-150 hover:text-[#0b0b0d] focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:outline-current aria-[current=page]:text-[#0b0b0d] dark:text-[#f4f4f6]/60 dark:hover:text-[#f4f4f6] dark:aria-[current=page]:text-[#f4f4f6]\"\n              >\n                {link.label}\n              </a>\n            ))}\n          </nav>\n          <a\n            href=\"#book\"\n            onClick={(e) => e.preventDefault()}\n            className=\"rounded-full bg-[#0b0b0d] px-4 py-2 text-[13px] font-medium text-[#fafaf9] transition-transform duration-150 active:scale-[0.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current dark:bg-[#f4f4f6] dark:text-[#07080c]\"\n          >\n            Book a print run\n          </a>\n        </div>\n        <DotRail trackRef={navRef} className=\"mt-2\" />\n      </header>\n\n      <section className=\"px-5 pt-10 pb-12 text-center @[44rem]:px-8 @[44rem]:pt-14 @[44rem]:pb-16\">\n        <h2 className=\"font-serif text-4xl tracking-tight text-balance @[44rem]:text-[3.25rem] @[44rem]:leading-[1.05]\">\n          Small runs, <em className=\"text-[#2747ff] dark:text-[#8292ff]\">loud</em> colors\n        </h2>\n        <p className=\"mx-auto mt-4 max-w-md text-[15px] leading-relaxed text-[#0b0b0d]/70 dark:text-[#f4f4f6]/70\">\n          Zines, posters and lookbooks printed a hundred at a time on two riso drums, in a back room off Calder Street.\n        </p>\n        <p className=\"mt-6 font-mono text-[11px] tracking-[0.18em] text-[#0b0b0d]/60 uppercase dark:text-[#f4f4f6]/60\">\n          Riso · 2 drums · 11 inks\n        </p>\n      </section>\n    </div>\n  );\n}\n"
    }
  ]
}