{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "echo-reel-footer",
  "type": "registry:block",
  "title": "Echo Reel Footer",
  "description": "Footer built with Echo Reel (rotating text headline): a giant wordmark turns to each link column. A take on the text animation (text effect). A night footer that ends on a giant wordmark. Point at a link column, or Tab into it, and the Echo Reel at the foot turns to that column's name and inks it in, then turns back to the brand a beat after you leave. With a newsletter field, three link columns, the legal line and a status light.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "footers",
    "footer",
    "text-animation"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/footers/echo-reel-footer",
  "registryDependencies": [
    "https://keyframeui.com/r/echo-reel.json"
  ],
  "files": [
    {
      "path": "components/echo-reel-footer.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { EchoReel } from \"@/components/ui/echo-reel\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the footer yours: the\n * palette, the columns, the newsletter and the legal line.\n * The giant wordmark at the foot is an Echo Reel: point at or\n * Tab into a column and it turns to that column's name, then\n * back to yours a beat after you leave.\n * ─────────────────────────────────────────────────────────── */\n\n/** A night band in both schemes, with the violet as the ink. */\nconst PALETTE = { paper: \"#07070c\", ink: \"#f5f5f7\", accent: \"#9b83ff\", lime: \"#c6ff3d\" };\n\nconst BRAND = { name: \"Loupe\", line: \"Studio product photos from one phone shot.\", href: \"#\" };\nconst COLUMNS = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Cutouts\", href: \"#cutouts\" },\n      { label: \"Scenes\", href: \"#scenes\" },\n      { label: \"Colorways\", href: \"#colorways\" },\n      { label: \"Pricing\", href: \"#pricing\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#about\" },\n      { label: \"Careers\", href: \"#careers\" },\n      { label: \"Press kit\", href: \"#press\" },\n    ],\n  },\n  {\n    title: \"Help\",\n    links: [\n      { label: \"Guides\", href: \"#guides\" },\n      { label: \"Changelog\", href: \"#changelog\" },\n      { label: \"Status\", href: \"#status\" },\n      { label: \"Contact\", href: \"#contact\" },\n    ],\n  },\n];\nconst NEWSLETTER = { label: \"One email a month with what we shipped.\", placeholder: \"you@shop.com\", button: \"Subscribe\", done: \"Subscribed\" };\nconst LEGAL = { owner: \"© 2026 Loupe Labs, Inc.\", links: [{ label: \"Privacy\", href: \"#privacy\" }, { label: \"Terms\", href: \"#terms\" }] };\nconst STATUS = \"All systems normal\";\n\n/** How long the wordmark waits before turning back to the brand. */\nconst RETURN_MS = 250;\n\n/* ── Section ─────────────────────────────────────────────── */\n\nconst WORDS = [BRAND.name, ...COLUMNS.map((column) => column.title)];\n\nexport function EchoReelFooter() {\n  const [word, setWord] = React.useState(0);\n  const [subscribed, setSubscribed] = React.useState(false);\n  const back = React.useRef<number | undefined>(undefined);\n\n  const show = (index: number) => {\n    window.clearTimeout(back.current);\n    setWord(index);\n  };\n  // A beat before turning back, so moving from one column to the next turns the reel once.\n  const release = () => {\n    window.clearTimeout(back.current);\n    back.current = window.setTimeout(() => setWord(0), RETURN_MS);\n  };\n  React.useEffect(() => () => window.clearTimeout(back.current), []);\n\n  return (\n    <footer\n      style={{ \"--paper\": PALETTE.paper, \"--ink\": PALETTE.ink, \"--accent\": PALETTE.accent, \"--lime\": PALETTE.lime } as React.CSSProperties}\n      className=\"relative overflow-hidden bg-(--paper) text-(--ink)\"\n    >\n      <div className=\"mx-auto max-w-6xl px-6 pt-16 sm:pt-20\">\n        <div className=\"grid gap-12 lg:grid-cols-[minmax(0,1fr)_auto] lg:gap-20\">\n          <div className=\"max-w-sm\">\n            <a\n              href={BRAND.href}\n              className=\"inline-flex items-center gap-2 rounded-md text-[17px] font-semibold tracking-[-0.03em] focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-(--accent)\"\n            >\n              <LoupeMark className=\"size-6\" />\n              {BRAND.name}\n            </a>\n            <p className=\"mt-3 text-[15px] leading-relaxed opacity-60\">{BRAND.line}</p>\n            <form\n              className=\"mt-7\"\n              onSubmit={(e) => {\n                e.preventDefault();\n                setSubscribed(true);\n              }}\n            >\n              <label htmlFor=\"loupe-newsletter\" className=\"text-[13px] font-medium opacity-80\">\n                {NEWSLETTER.label}\n              </label>\n              <div className=\"mt-2.5 flex items-center gap-1.5 rounded-full bg-white/[0.06] p-1.5 ring-1 ring-white/10 focus-within:ring-(--accent)\">\n                <input\n                  id=\"loupe-newsletter\"\n                  type=\"email\"\n                  required\n                  placeholder={NEWSLETTER.placeholder}\n                  className=\"h-9 min-w-0 flex-1 bg-transparent px-3 text-sm outline-none placeholder:text-white/35\"\n                />\n                <button\n                  type=\"submit\"\n                  className=\"h-9 shrink-0 rounded-full bg-(--accent) px-4 text-sm font-semibold text-(--paper) transition-[opacity,scale] duration-150 hover:opacity-90 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-(--accent) active:scale-[0.97]\"\n                >\n                  {subscribed ? NEWSLETTER.done : NEWSLETTER.button}\n                </button>\n              </div>\n            </form>\n          </div>\n\n          <nav aria-label=\"Footer\" className=\"grid grid-cols-2 gap-x-12 gap-y-10 sm:grid-cols-3\">\n            {COLUMNS.map((column, i) => (\n              <div\n                key={column.title}\n                onPointerEnter={() => show(i + 1)}\n                onPointerLeave={release}\n                onFocus={() => show(i + 1)}\n                onBlur={release}\n              >\n                <p className=\"text-[13px] font-semibold text-(--accent)\">{column.title}</p>\n                <ul className=\"mt-4 space-y-2.5\">\n                  {column.links.map((link) => (\n                    <li key={link.label}>\n                      <a\n                        href={link.href}\n                        className=\"-mx-1 rounded px-1 py-0.5 text-[14px] opacity-65 transition-opacity duration-150 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-(--accent)\"\n                      >\n                        {link.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n\n        <div className=\"mt-14 flex flex-col gap-4 border-t border-white/10 pt-6 text-[13px] sm:flex-row sm:items-center sm:justify-between\">\n          <div className=\"flex flex-wrap items-center gap-x-5 gap-y-2 opacity-55\">\n            <span>{LEGAL.owner}</span>\n            {LEGAL.links.map((link) => (\n              <a key={link.label} href={link.href} className=\"rounded hover:opacity-100 focus-visible:outline-2 focus-visible:outline-(--accent)\">\n                {link.label}\n              </a>\n            ))}\n          </div>\n          <p className=\"flex items-center gap-2 opacity-70\">\n            <span aria-hidden className=\"size-2 rounded-full bg-(--lime) shadow-[0_0_0_3px_rgb(198_255_61/0.15)]\" />\n            {STATUS}\n          </p>\n        </div>\n      </div>\n\n      {/* The wordmark sits on the foot of the page; its lower proof runs off the edge. */}\n      <div className=\"mx-auto mt-6 -mb-[13%] max-w-5xl px-2 sm:px-6 lg:-mb-[12%]\">\n        <EchoReel words={WORDS} value={word} onValueChange={(index) => setWord(index)} interval={false} className=\"text-(--accent)\" />\n      </div>\n    </footer>\n  );\n}\n\n/* ── Mark ────────────────────────────────────────────────── */\n\nfunction LoupeMark({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden className={className}>\n      <circle cx=\"10.5\" cy=\"10.5\" r=\"6.5\" stroke=\"currentColor\" strokeWidth=\"2.6\" />\n      <path d=\"M15.5 15.5 20 20\" stroke=\"currentColor\" strokeWidth=\"2.6\" strokeLinecap=\"round\" />\n      <circle cx=\"10.5\" cy=\"10.5\" r=\"2.6\" fill=\"var(--accent)\" />\n    </svg>\n  );\n}\n"
    }
  ]
}