{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-single-line",
  "type": "registry:component",
  "title": "Footer Single Line",
  "description": "A minimal paper footer in one row: brand mark, links whose letters roll up one by one into the accent on hover, a live local clock with a blinking colon, and a back to top button whose arrow swaps out. It stacks neatly on small containers.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "footer",
    "footer",
    "minimal",
    "light",
    "clock",
    "hover",
    "section"
  ],
  "docs": "https://hyperblur.dev/effects/footer-single-line",
  "files": [
    {
      "path": "registry/hyperblur/footer-single-line.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/footer-single-line.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FooterSingleLineLink {\n  label: string;\n  href: string;\n}\n\nexport interface FooterSingleLineProps extends React.HTMLAttributes<HTMLElement> {\n  brand?: string;\n  year?: number;\n  links?: FooterSingleLineLink[];\n  city?: string;\n  timeZone?: string;\n  showTop?: boolean;\n  onTop?: () => void;\n  appearance?: \"light\" | \"dark\";\n  accent?: string;\n}\n\nconst css = `\n.hb-wc3 {\n  --hb-wc3-accent: #ff5b2e;\n  --hb-wc3-bg: #f7f5ef;\n  --hb-wc3-ink: #141414;\n  --hb-wc3-muted: #77746c;\n  --hb-wc3-line: rgba(20, 20, 20, .12);\n  container-type: inline-size;\n  box-sizing: border-box;\n  width: 100%;\n  background: var(--hb-wc3-bg);\n  color: var(--hb-wc3-ink);\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-wc3[data-appearance=\"dark\"] {\n  --hb-wc3-bg: #0a0a0a;\n  --hb-wc3-ink: #ededed;\n  --hb-wc3-muted: #8f8f8f;\n  --hb-wc3-line: rgba(255, 255, 255, .1);\n}\n.hb-wc3 *, .hb-wc3 *::before, .hb-wc3 *::after { box-sizing: border-box; }\n.hb-wc3-row {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) auto;\n  grid-template-areas: \"brand top\" \"nav nav\" \"clock clock\";\n  align-items: center;\n  gap: 18px 16px;\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 26px 20px;\n  border-top: 1px solid var(--hb-wc3-line);\n  font-size: 14px;\n}\n.hb-wc3-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }\n.hb-wc3-glyph { position: relative; width: 22px; height: 22px; flex: none; }\n.hb-wc3-glyph span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--hb-wc3-ink); }\n.hb-wc3-glyph span:last-child { inset: 5px; border: 0; background: var(--hb-wc3-accent); transition: transform .5s cubic-bezier(.3, 1.6, .4, 1); }\n.hb-wc3-brand:hover .hb-wc3-glyph span:last-child { transform: scale(1.35); }\n.hb-wc3-name { font-family: var(--font-grotesk), var(--font-sans), sans-serif; font-weight: 600; letter-spacing: -.01em; }\n.hb-wc3-copy { color: var(--hb-wc3-muted); }\n.hb-wc3-nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }\n.hb-wc3-link { position: relative; display: inline-flex; overflow: hidden; height: 1.35em; color: var(--hb-wc3-ink); line-height: 1.35; text-decoration: none; }\n.hb-wc3-link:focus-visible { outline: 2px solid var(--hb-wc3-accent); outline-offset: 4px; border-radius: 4px; }\n.hb-wc3-ch { display: inline-block; white-space: pre; transition: transform .5s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--hb-wc3-i) * 18ms); }\n.hb-wc3-ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; color: var(--hb-wc3-accent); }\n.hb-wc3-ch { position: relative; }\n.hb-wc3-link:hover .hb-wc3-ch, .hb-wc3-link:focus-visible .hb-wc3-ch { transform: translateY(-100%); }\n.hb-wc3-clock { grid-area: clock; display: inline-flex; align-items: center; gap: 10px; color: var(--hb-wc3-muted); font-family: var(--font-mono), monospace; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; }\n.hb-wc3-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }\n.hb-wc3-dot::after { content: \"\"; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid #22c55e; animation: hb-wc3-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }\n.hb-wc3-time { color: var(--hb-wc3-ink); font-variant-numeric: tabular-nums; }\n.hb-wc3-colon { animation: hb-wc3-blink 1s steps(1) infinite; }\n.hb-wc3-top {\n  grid-area: top;\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  padding: 0;\n  border: 1px solid var(--hb-wc3-line);\n  border-radius: 50%;\n  background: transparent;\n  color: var(--hb-wc3-ink);\n  cursor: pointer;\n  overflow: hidden;\n  transition: background .3s ease, color .3s ease, border-color .3s ease;\n}\n.hb-wc3-top:hover { background: var(--hb-wc3-ink); border-color: var(--hb-wc3-ink); color: var(--hb-wc3-bg); }\n.hb-wc3-top:focus-visible { outline: 2px solid var(--hb-wc3-accent); outline-offset: 3px; }\n.hb-wc3-top svg { width: 14px; height: 14px; grid-area: 1 / 1; transition: transform .45s cubic-bezier(.7, 0, .2, 1); }\n.hb-wc3-top svg:last-child { transform: translateY(160%); }\n.hb-wc3-top:hover svg:first-child { transform: translateY(-160%); }\n.hb-wc3-top:hover svg:last-child { transform: translateY(0); }\n@keyframes hb-wc3-ping { 70%, 100% { transform: scale(2.1); opacity: 0; } }\n@keyframes hb-wc3-blink { 50% { opacity: .25; } }\n@container (min-width: 760px) {\n  .hb-wc3-row { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: \"brand nav clock top\"; gap: 32px; padding: 28px 40px; }\n  .hb-wc3-nav { justify-content: center; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-wc3 *, .hb-wc3 *::before, .hb-wc3 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultLinks: FooterSingleLineLink[] = [\n  { label: \"Work\", href: \"#\" },\n  { label: \"Journal\", href: \"#\" },\n  { label: \"Studio\", href: \"#\" },\n  { label: \"Instagram\", href: \"#\" },\n  { label: \"Privacy\", href: \"#\" },\n];\n\nfunction Roll({ text }: { text: string }) {\n  return (\n    <>\n      {Array.from(text).map((c, i) => (\n        <span key={i} className=\"hb-wc3-ch\" data-c={c} style={{ \"--hb-wc3-i\": i } as React.CSSProperties} aria-hidden=\"true\">\n          {c}\n        </span>\n      ))}\n    </>\n  );\n}\n\nexport function FooterSingleLine({\n  brand = \"Lumen Studio\",\n  year = 2026,\n  links = defaultLinks,\n  city = \"Lisbon\",\n  timeZone = \"Europe/Lisbon\",\n  showTop = true,\n  onTop,\n  appearance = \"light\",\n  accent = \"#ff5b2e\",\n  className = \"\",\n  style,\n  ...rest\n}: FooterSingleLineProps) {\n  const [time, setTime] = React.useState<{ h: string; m: string } | null>(null);\n\n  React.useEffect(() => {\n    let fmt: Intl.DateTimeFormat;\n    try {\n      fmt = new Intl.DateTimeFormat(\"en-GB\", { hour: \"2-digit\", minute: \"2-digit\", hour12: false, timeZone });\n    } catch {\n      fmt = new Intl.DateTimeFormat(\"en-GB\", { hour: \"2-digit\", minute: \"2-digit\", hour12: false });\n    }\n    const tick = () => {\n      const parts = fmt.formatToParts(new Date());\n      setTime({ h: parts.find((p) => p.type === \"hour\")?.value ?? \"00\", m: parts.find((p) => p.type === \"minute\")?.value ?? \"00\" });\n    };\n    const first = setTimeout(tick, 0);\n    const timer = setInterval(tick, 15000);\n    return () => {\n      clearTimeout(first);\n      clearInterval(timer);\n    };\n  }, [timeZone]);\n\n  const top = () => {\n    onTop?.();\n    const reduced = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n    window.scrollTo({ top: 0, behavior: reduced ? \"auto\" : \"smooth\" });\n  };\n\n  const vars = { \"--hb-wc3-accent\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <footer className={`hb-wc3 ${className}`} style={vars} data-appearance={appearance} {...rest}>\n      <style href=\"hb-footer-single-line\" precedence=\"default\">{css}</style>\n      <div className=\"hb-wc3-row\">\n        <span className=\"hb-wc3-brand\">\n          <span className=\"hb-wc3-glyph\" aria-hidden=\"true\">\n            <span />\n            <span />\n          </span>\n          <span className=\"hb-wc3-name\">{brand}</span>\n          <span className=\"hb-wc3-copy\">© {year}</span>\n        </span>\n        <ul className=\"hb-wc3-nav\">\n          {links.map((l) => (\n            <li key={l.label}>\n              <a className=\"hb-wc3-link\" href={l.href} aria-label={l.label}>\n                <Roll text={l.label} />\n              </a>\n            </li>\n          ))}\n        </ul>\n        <span className=\"hb-wc3-clock\">\n          <span className=\"hb-wc3-dot\" aria-hidden=\"true\" />\n          <span>{city}</span>\n          <span className=\"hb-wc3-time\" aria-label={time ? `Local time ${time.h}:${time.m}` : \"Local time\"}>\n            {time ? time.h : \"--\"}\n            <span className=\"hb-wc3-colon\">:</span>\n            {time ? time.m : \"--\"}\n          </span>\n        </span>\n        {showTop ? (\n          <button className=\"hb-wc3-top\" type=\"button\" onClick={top} aria-label=\"Back to top\">\n            <svg viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n              <path d=\"M7 12V2.5M3 6.5l4-4 4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n            </svg>\n            <svg viewBox=\"0 0 14 14\" aria-hidden=\"true\">\n              <path d=\"M7 12V2.5M3 6.5l4-4 4 4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n            </svg>\n          </button>\n        ) : null}\n      </div>\n    </footer>\n  );\n}\n"
    }
  ]
}