{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-reveal-under",
  "type": "registry:component",
  "title": "Footer Reveal Under",
  "description": "A footer that sits beneath the page and is uncovered as the content above scrolls away, with a gradient wordmark that follows the pointer, link columns and a newsletter field. Wrap the page above it in FooterRevealUnderPage so it covers the footer.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "footer",
    "footer",
    "reveal",
    "sticky",
    "wordmark",
    "newsletter",
    "scroll"
  ],
  "docs": "https://hyperblur.dev/effects/footer-reveal-under",
  "files": [
    {
      "path": "registry/hyperblur/footer-reveal-under.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/footer-reveal-under.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FooterRevealUnderLink {\n  label: string;\n  href: string;\n}\n\nexport interface FooterRevealUnderColumn {\n  title: string;\n  links: FooterRevealUnderLink[];\n}\n\nexport interface FooterRevealUnderProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\"> {\n  brand?: string;\n  wordmark?: string;\n  tagline?: string;\n  columns?: FooterRevealUnderColumn[];\n  socials?: FooterRevealUnderLink[];\n  legal?: FooterRevealUnderLink[];\n  newsletterTitle?: string;\n  placeholder?: string;\n  buttonLabel?: string;\n  successMessage?: string;\n  onSubscribe?: (email: string) => void;\n  copyright?: string;\n  accent?: string;\n  showBackdrop?: boolean;\n}\n\nexport interface FooterRevealUnderPageProps extends React.HTMLAttributes<HTMLDivElement> {\n  background?: string;\n  radius?: number;\n}\n\nconst defaultColumns: FooterRevealUnderColumn[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Overview\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Integrations\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#\" },\n      { label: \"Careers\", href: \"#\" },\n      { label: \"Press kit\", href: \"#\" },\n      { label: \"Contact\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Resources\",\n    links: [\n      { label: \"Documentation\", href: \"#\" },\n      { label: \"Field guides\", href: \"#\" },\n      { label: \"Community\", href: \"#\" },\n      { label: \"System status\", href: \"#\" },\n    ],\n  },\n];\n\nconst defaultSocials: FooterRevealUnderLink[] = [\n  { label: \"X\", href: \"#\" },\n  { label: \"GitHub\", href: \"#\" },\n  { label: \"LinkedIn\", href: \"#\" },\n];\n\nconst defaultLegal: FooterRevealUnderLink[] = [\n  { label: \"Privacy\", href: \"#\" },\n  { label: \"Terms\", href: \"#\" },\n];\n\nconst css = `\n.hb-zb1 {\n  --hb-zb1-a: #2f7bff;\n  position: sticky;\n  bottom: 0;\n  z-index: 0;\n  display: block;\n  width: 100%;\n  box-sizing: border-box;\n  container-type: inline-size;\n  overflow: hidden;\n  isolation: isolate;\n  color: #ededed;\n  font-family: inherit;\n  background:\n    radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--hb-zb1-a) 14%, transparent), transparent 70%),\n    #0a0a0a;\n}\n.hb-zb1[data-demo=\"true\"] { position: relative; }\n@media (max-width: 640px), (max-height: 600px) {\n  .hb-zb1 { position: relative; }\n}\n.hb-zb1 *, .hb-zb1 *::before, .hb-zb1 *::after { box-sizing: border-box; font-family: inherit; }\n.hb-zb1-in {\n  position: relative;\n  z-index: 0;\n  display: flex;\n  flex-direction: column;\n  gap: 36px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 64px 40px 24px;\n}\n.hb-zb1-top {\n  display: grid;\n  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);\n  gap: 56px;\n  align-items: start;\n}\n.hb-zb1-intro { display: flex; flex-direction: column; gap: 22px; min-width: 0; }\n.hb-zb1-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }\n.hb-zb1-mark {\n  position: relative;\n  width: 22px;\n  height: 22px;\n  border-radius: 7px;\n  background: linear-gradient(135deg, var(--hb-zb1-a), color-mix(in srgb, var(--hb-zb1-a) 35%, #ffffff));\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px color-mix(in srgb, var(--hb-zb1-a) 45%, transparent);\n}\n.hb-zb1-mark::after {\n  content: \"\";\n  position: absolute;\n  inset: 6px;\n  border-radius: 3px;\n  background: rgba(10, 10, 10, 0.75);\n}\n.hb-zb1-tag { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.55; color: #a1a1a1; }\n.hb-zb1-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }\n.hb-zb1-fl { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8f8f8f; }\n.hb-zb1-fr {\n  display: flex;\n  gap: 6px;\n  padding: 5px;\n  border-radius: 999px;\n  border: 1px solid rgba(255, 255, 255, 0.1);\n  background: rgba(255, 255, 255, 0.04);\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n.hb-zb1-fr:focus-within {\n  border-color: color-mix(in srgb, var(--hb-zb1-a) 70%, transparent);\n  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-zb1-a) 18%, transparent);\n}\n.hb-zb1-in-email {\n  flex: 1;\n  min-width: 0;\n  padding: 0 14px;\n  font: inherit;\n  font-size: 14px;\n  color: #ededed;\n  background: transparent;\n  border: 0;\n  outline: 0;\n}\n.hb-zb1-in-email::placeholder { color: #6f6f6f; }\n.hb-zb1-btn {\n  flex: none;\n  padding: 10px 18px;\n  font: inherit;\n  font-size: 13px;\n  font-weight: 650;\n  color: #0a0a0a;\n  background: #ededed;\n  border: 0;\n  border-radius: 999px;\n  cursor: pointer;\n  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;\n}\n.hb-zb1-btn:hover { background: #ffffff; transform: translateY(-1px); }\n.hb-zb1-btn:active { transform: scale(0.97); }\n.hb-zb1-btn:focus-visible { outline: 2px solid var(--hb-zb1-a); outline-offset: 2px; }\n.hb-zb1-fs { margin: 0; min-height: 18px; font-size: 13px; color: color-mix(in srgb, var(--hb-zb1-a) 55%, #ffffff); }\n.hb-zb1-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; min-width: 0; }\n.hb-zb1-col { margin: 0; padding: 0; min-width: 0; }\n.hb-zb1-ct { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8f8f8f; }\n.hb-zb1-ul { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }\n.hb-zb1-a {\n  position: relative;\n  display: inline-block;\n  font-size: 15px;\n  color: #d4d4d4;\n  text-decoration: none;\n  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-zb1-a::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: -2px;\n  height: 1px;\n  background: var(--hb-zb1-a);\n  transform: scaleX(0);\n  transform-origin: left;\n  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);\n}\n.hb-zb1-a:hover { color: #ffffff; transform: translateX(3px); }\n.hb-zb1-a:hover::after { transform: scaleX(1); }\n.hb-zb1-a:focus-visible { outline: 2px solid var(--hb-zb1-a); outline-offset: 4px; border-radius: 3px; }\n.hb-zb1-wm { position: relative; width: 100%; line-height: 0; user-select: none; -webkit-user-select: none; }\n.hb-zb1-svg { display: block; width: 100%; height: auto; overflow: visible; }\n.hb-zb1-t { font-size: 230px; font-weight: 800; font-family: inherit; }\n.hb-zb1-sp {\n  transform: translateX(var(--hb-zb1-sx, 300px));\n  animation: hb-zb1-sweep 7s ease-in-out infinite alternate;\n}\n.hb-zb1-wm[data-live=\"true\"] .hb-zb1-sp { animation: none; transition: transform 0.25s ease-out; }\n.hb-zb1-bot {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px 24px;\n  padding-top: 20px;\n  border-top: 1px solid rgba(255, 255, 255, 0.08);\n  font-size: 13px;\n  color: #8f8f8f;\n}\n.hb-zb1-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }\n.hb-zb1-links .hb-zb1-a { font-size: 13px; color: #a1a1a1; }\n.hb-zb1-stub {\n  position: absolute;\n  inset: 0;\n  z-index: 3;\n  display: flex;\n  flex-direction: column;\n  gap: 28px;\n  padding: 28px 44px;\n  overflow: hidden;\n  color: #17171a;\n  background:\n    radial-gradient(60% 50% at 85% 0%, rgba(255, 190, 120, 0.35), transparent 70%),\n    radial-gradient(50% 60% at 0% 100%, rgba(150, 190, 255, 0.35), transparent 70%),\n    #f7f5ef;\n  border-radius: 0 0 28px 28px;\n  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 2px 0 rgba(255, 255, 255, 0.7) inset;\n  transform: translateY(-58%);\n  animation: hb-zb1-lift 9s cubic-bezier(0.65, 0, 0.25, 1) infinite;\n}\n.hb-zb1-sn { display: flex; align-items: center; gap: 10px; }\n.hb-zb1-sd { width: 12px; height: 12px; border-radius: 4px; background: #17171a; }\n.hb-zb1-sb { width: 54px; height: 8px; border-radius: 99px; background: rgba(23, 23, 26, 0.14); }\n.hb-zb1-sd + .hb-zb1-sb { margin-left: 6px; }\n.hb-zb1-sp2 { margin-left: auto; padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #f7f5ef; background: #17171a; }\n.hb-zb1-sh { margin: 0; max-width: 14ch; font-size: 54px; font-weight: 650; line-height: 1; letter-spacing: -0.035em; }\n.hb-zb1-sc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; }\n.hb-zb1-si { height: 120px; border-radius: 18px; border: 1px solid rgba(23, 23, 26, 0.08); }\n.hb-zb1-si:nth-child(1) { background: linear-gradient(160deg, #ffd9a8, #ff9f6e); }\n.hb-zb1-si:nth-child(2) { background: linear-gradient(160deg, #cfe0ff, #7fa6ff); }\n.hb-zb1-si:nth-child(3) { background: linear-gradient(160deg, #d6f0d2, #8fcf9b); }\n.hb-zb1-sk {\n  position: absolute;\n  right: 44px;\n  bottom: 20px;\n  font-size: 11px;\n  font-weight: 600;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n  color: rgba(23, 23, 26, 0.45);\n}\n.hb-zb1-page {\n  position: relative;\n  z-index: 1;\n  background: #0a0a0a;\n  border-radius: 0 0 var(--hb-zb1-r, 28px) var(--hb-zb1-r, 28px);\n  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);\n}\n@container (max-width: 760px) {\n  .hb-zb1-in { padding: 56px 24px 24px; gap: 36px; }\n  .hb-zb1-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }\n  .hb-zb1-stub { padding: 20px 24px; }\n  .hb-zb1-sh { font-size: 38px; }\n  .hb-zb1-sk { right: 24px; }\n}\n@container (max-width: 480px) {\n  .hb-zb1-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }\n  .hb-zb1-sc { gap: 8px; }\n  .hb-zb1-si { height: 70px; }\n}\n@keyframes hb-zb1-sweep {\n  from { transform: translateX(80px); }\n  to { transform: translateX(920px); }\n}\n@keyframes hb-zb1-lift {\n  0% { transform: translateY(-58%); }\n  26% { transform: translateY(-100%); }\n  56% { transform: translateY(-100%); }\n  86% { transform: translateY(-6%); }\n  100% { transform: translateY(-58%); }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-zb1-sp, .hb-zb1-stub { animation: none; }\n  .hb-zb1-sp { transform: translateX(500px); }\n  .hb-zb1-a, .hb-zb1-a::after, .hb-zb1-btn, .hb-zb1-fr { transition: none; }\n}\n`;\n\nexport function FooterRevealUnder({\n  brand = \"Fieldnote\",\n  wordmark,\n  tagline = \"Notes that organize themselves, wherever you happen to write them.\",\n  columns = defaultColumns,\n  socials = defaultSocials,\n  legal = defaultLegal,\n  newsletterTitle = \"A monthly letter, no noise\",\n  placeholder = \"you@studio.com\",\n  buttonLabel = \"Subscribe\",\n  successMessage = \"You are on the list. See you next month.\",\n  onSubscribe,\n  copyright,\n  accent = \"#2f7bff\",\n  showBackdrop = false,\n  className = \"\",\n  style,\n  ...rest\n}: FooterRevealUnderProps) {\n  const uid = React.useId().replace(/:/g, \"\");\n  const inputId = `${uid}-e`;\n  const fade = `${uid}-f`;\n  const glow = `${uid}-g`;\n  const mask = `${uid}-m`;\n  const wmRef = React.useRef<HTMLDivElement>(null);\n  const [email, setEmail] = React.useState(\"\");\n  const [done, setDone] = React.useState(false);\n  const word = (wordmark ?? brand).toUpperCase();\n  const year = copyright ?? `${brand} Inc. All rights reserved.`;\n\n  function aim(e: React.PointerEvent<HTMLDivElement>) {\n    if (e.pointerType === \"touch\") return;\n    const el = wmRef.current;\n    if (!el) return;\n    const r = el.getBoundingClientRect();\n    if (!r.width) return;\n    el.dataset.live = \"true\";\n    el.style.setProperty(\"--hb-zb1-sx\", `${(((e.clientX - r.left) / r.width) * 1000).toFixed(1)}px`);\n  }\n\n  function release() {\n    const el = wmRef.current;\n    if (!el) return;\n    el.dataset.live = \"false\";\n    el.style.removeProperty(\"--hb-zb1-sx\");\n  }\n\n  function submit(e: React.FormEvent<HTMLFormElement>) {\n    e.preventDefault();\n    onSubscribe?.(email);\n    setDone(true);\n    setEmail(\"\");\n  }\n\n  return (\n    <footer\n      data-demo={showBackdrop ? \"true\" : \"false\"}\n      className={`hb-zb1 ${className}`.trim()}\n      style={{ \"--hb-zb1-a\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-footer-reveal-under\" precedence=\"default\">{css}</style>\n      <div className=\"hb-zb1-in\">\n        <div className=\"hb-zb1-top\">\n          <div className=\"hb-zb1-intro\">\n            <span className=\"hb-zb1-brand\">\n              <span className=\"hb-zb1-mark\" aria-hidden=\"true\" />\n              {brand}\n            </span>\n            <p className=\"hb-zb1-tag\">{tagline}</p>\n            <form className=\"hb-zb1-form\" onSubmit={submit}>\n              <label className=\"hb-zb1-fl\" htmlFor={inputId}>\n                {newsletterTitle}\n              </label>\n              <div className=\"hb-zb1-fr\">\n                <input\n                  id={inputId}\n                  className=\"hb-zb1-in-email\"\n                  type=\"email\"\n                  required\n                  autoComplete=\"email\"\n                  placeholder={placeholder}\n                  value={email}\n                  onChange={(e) => {\n                    setEmail(e.target.value);\n                    if (done) setDone(false);\n                  }}\n                />\n                <button type=\"submit\" className=\"hb-zb1-btn\">\n                  {buttonLabel}\n                </button>\n              </div>\n              <p className=\"hb-zb1-fs\" role=\"status\" aria-live=\"polite\">\n                {done ? successMessage : \"\"}\n              </p>\n            </form>\n          </div>\n          <nav className=\"hb-zb1-cols\" aria-label=\"Footer\">\n            {columns.map((col) => (\n              <div className=\"hb-zb1-col\" key={col.title}>\n                <h3 className=\"hb-zb1-ct\">{col.title}</h3>\n                <ul className=\"hb-zb1-ul\">\n                  {col.links.map((l) => (\n                    <li key={l.label}>\n                      <a className=\"hb-zb1-a\" href={l.href}>\n                        {l.label}\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              </div>\n            ))}\n          </nav>\n        </div>\n        <div\n          ref={wmRef}\n          className=\"hb-zb1-wm\"\n          aria-hidden=\"true\"\n          data-live=\"false\"\n          onPointerMove={aim}\n          onPointerLeave={release}\n        >\n          <svg className=\"hb-zb1-svg\" viewBox=\"0 0 1000 176\" preserveAspectRatio=\"xMidYMid meet\">\n            <defs>\n              <linearGradient id={fade} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n                <stop offset=\"0\" stopColor=\"#ffffff\" stopOpacity=\"0.92\" />\n                <stop offset=\"1\" stopColor=\"#ffffff\" stopOpacity=\"0.05\" />\n              </linearGradient>\n              <radialGradient id={glow}>\n                <stop offset=\"0\" style={{ stopColor: \"var(--hb-zb1-a)\", stopOpacity: 1 }} />\n                <stop offset=\"1\" style={{ stopColor: \"var(--hb-zb1-a)\", stopOpacity: 0 }} />\n              </radialGradient>\n              <mask id={mask} maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"1000\" height=\"176\">\n                <text className=\"hb-zb1-t\" x=\"0\" y=\"168\" textLength=\"1000\" lengthAdjust=\"spacingAndGlyphs\" fill=\"#ffffff\">\n                  {word}\n                </text>\n              </mask>\n            </defs>\n            <text className=\"hb-zb1-t\" x=\"0\" y=\"168\" textLength=\"1000\" lengthAdjust=\"spacingAndGlyphs\" fill={`url(#${fade})`}>\n              {word}\n            </text>\n            <g mask={`url(#${mask})`}>\n              <rect className=\"hb-zb1-sp\" x=\"-300\" y=\"-60\" width=\"600\" height=\"300\" fill={`url(#${glow})`} />\n            </g>\n          </svg>\n        </div>\n        <div className=\"hb-zb1-bot\">\n          <span>\n            {\"©\"} {year}\n          </span>\n          <div className=\"hb-zb1-links\">\n            {socials.map((l) => (\n              <a key={l.label} className=\"hb-zb1-a\" href={l.href}>\n                {l.label}\n              </a>\n            ))}\n            {legal.map((l) => (\n              <a key={l.label} className=\"hb-zb1-a\" href={l.href}>\n                {l.label}\n              </a>\n            ))}\n          </div>\n        </div>\n      </div>\n      {showBackdrop ? (\n        <div className=\"hb-zb1-stub\" aria-hidden=\"true\">\n          <div className=\"hb-zb1-sn\">\n            <span className=\"hb-zb1-sd\" />\n            <span className=\"hb-zb1-sb\" />\n            <span className=\"hb-zb1-sb\" />\n            <span className=\"hb-zb1-sb\" />\n            <span className=\"hb-zb1-sp2\">Get started</span>\n          </div>\n          <p className=\"hb-zb1-sh\">Software that rests when you do.</p>\n          <div className=\"hb-zb1-sc\">\n            <span className=\"hb-zb1-si\" />\n            <span className=\"hb-zb1-si\" />\n            <span className=\"hb-zb1-si\" />\n          </div>\n          <span className=\"hb-zb1-sk\">Scroll</span>\n        </div>\n      ) : null}\n    </footer>\n  );\n}\n\nexport function FooterRevealUnderPage({\n  background,\n  radius = 28,\n  className = \"\",\n  style,\n  children,\n  ...rest\n}: FooterRevealUnderPageProps) {\n  return (\n    <div\n      className={`hb-zb1-page ${className}`.trim()}\n      style={{ \"--hb-zb1-r\": `${radius}px`, ...(background ? { background } : null), ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-footer-reveal-under\" precedence=\"default\">{css}</style>\n      {children}\n    </div>\n  );\n}\n"
    }
  ]
}