{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "footer-columns",
  "type": "registry:component",
  "title": "Footer Columns",
  "description": "A full website footer with a brand blurb, social buttons, link columns, a newsletter mini-form, legal links and a live status pill.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "site",
    "footer",
    "links",
    "newsletter",
    "social",
    "status",
    "responsive"
  ],
  "docs": "https://hyperblur.dev/effects/footer-columns",
  "files": [
    {
      "path": "registry/hyperblur/footer-columns.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/footer-columns.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type FooterSocialName = \"x\" | \"github\" | \"linkedin\" | \"youtube\" | \"instagram\";\n\nexport interface FooterLink {\n  label: string;\n  href?: string;\n}\n\nexport interface FooterColumn {\n  title: string;\n  links: FooterLink[];\n}\n\nexport interface FooterSocial {\n  name: FooterSocialName;\n  label?: string;\n  href?: string;\n}\n\nexport interface FooterStatus {\n  label: string;\n  tone?: \"ok\" | \"warn\" | \"down\";\n  href?: string;\n}\n\nexport interface FooterColumnsProps extends Omit<React.HTMLAttributes<HTMLElement>, \"children\"> {\n  logo?: React.ReactNode;\n  blurb?: string;\n  socials?: FooterSocial[];\n  columns?: FooterColumn[];\n  newsletter?: boolean;\n  newsletterTitle?: string;\n  onSubscribe?: (email: string) => void;\n  legal?: FooterLink[];\n  copyright?: string;\n  status?: FooterStatus | null;\n  accent?: string;\n}\n\nconst socialIcons: Record<FooterSocialName, { paths: string[]; fill?: boolean; label: string }> = {\n  x: {\n    label: \"X\",\n    fill: true,\n    paths: [\"M18.2 3h2.9l-6.4 7.3L22 21h-5.9l-4.6-6-5.3 6H3.3l6.8-7.8L2.8 3h6l4.2 5.5L18.2 3zm-1 16.2h1.6L7.7 4.7H6l11.2 14.5z\"],\n  },\n  github: {\n    label: \"GitHub\",\n    paths: [\n      \"M9 19c-4.3 1.4-4.3-2.5-6-3m12 5v-3.5c0-1 .1-1.4-.5-2 2.8-.3 5.5-1.4 5.5-6a4.6 4.6 0 0 0-1.3-3.2 4.2 4.2 0 0 0-.1-3.2s-1.1-.3-3.5 1.3a12.3 12.3 0 0 0-6.2 0C6.5 2.8 5.4 3.1 5.4 3.1a4.2 4.2 0 0 0-.1 3.2A4.6 4.6 0 0 0 4 9.5c0 4.6 2.7 5.7 5.5 6-.6.6-.6 1.2-.5 2V21\",\n    ],\n  },\n  linkedin: {\n    label: \"LinkedIn\",\n    paths: [\"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6zM2 9h4v12H2zM4 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4z\"],\n  },\n  youtube: {\n    label: \"YouTube\",\n    paths: [\n      \"M22.5 6.4a2.8 2.8 0 0 0-2-2C18.8 4 12 4 12 4s-6.8 0-8.5.4a2.8 2.8 0 0 0-2 2C1 8.1 1 12 1 12s0 3.9.5 5.6a2.8 2.8 0 0 0 2 2C5.2 20 12 20 12 20s6.8 0 8.5-.4a2.8 2.8 0 0 0 2-2c.5-1.7.5-5.6.5-5.6s0-3.9-.5-5.6z\",\n      \"m9.8 15 5.7-3-5.7-3v6z\",\n    ],\n  },\n  instagram: {\n    label: \"Instagram\",\n    paths: [\n      \"M7 3h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4z\",\n      \"M16 11.4a4 4 0 1 1-7.9 1.2 4 4 0 0 1 7.9-1.2z\",\n      \"M17.5 6.5h.01\",\n    ],\n  },\n};\n\nconst defaultColumns: FooterColumn[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Features\", href: \"#\" },\n      { label: \"Integrations\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#\" },\n      { label: \"Careers\", href: \"#\" },\n      { label: \"Customers\", href: \"#\" },\n      { label: \"Contact\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Resources\",\n    links: [\n      { label: \"Documentation\", href: \"#\" },\n      { label: \"Guides\", href: \"#\" },\n      { label: \"API reference\", href: \"#\" },\n      { label: \"Community\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Legal\",\n    links: [\n      { label: \"Privacy\", href: \"#\" },\n      { label: \"Terms\", href: \"#\" },\n      { label: \"Security\", href: \"#\" },\n      { label: \"DPA\", href: \"#\" },\n    ],\n  },\n];\n\nconst defaultSocials: FooterSocial[] = [\n  { name: \"x\", href: \"#\" },\n  { name: \"github\", href: \"#\" },\n  { name: \"linkedin\", href: \"#\" },\n  { name: \"youtube\", href: \"#\" },\n];\n\nconst defaultLegal: FooterLink[] = [\n  { label: \"Privacy\", href: \"#\" },\n  { label: \"Terms\", href: \"#\" },\n  { label: \"Cookies\", href: \"#\" },\n];\n\nconst defaultLogo = (\n  <>\n    <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n      <circle cx=\"12\" cy=\"12\" r=\"9\" fill=\"#2f7bff\" />\n      <path d=\"M8 12h8M12 8v8\" stroke=\"#fff\" strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n    </svg>\n    <span>Acme</span>\n  </>\n);\n\nconst css = `\n.hb-ftc {\n  --hb-ftc-a: #2f7bff;\n  container: hb-ftc / inline-size;\n  box-sizing: border-box;\n  width: 100%;\n  color: #ededed;\n  font-family: inherit;\n}\n.hb-ftc *, .hb-ftc *::before, .hb-ftc *::after { box-sizing: border-box; }\n.hb-ftc-in {\n  padding: 40px 32px 20px;\n  border-top: 1px solid #262626;\n  background: #0a0a0a;\n}\n.hb-ftc-top {\n  display: grid;\n  grid-template-columns: minmax(0, 1.7fr) repeat(var(--hb-ftc-n, 3), minmax(0, 1fr));\n  gap: 36px 28px;\n}\n.hb-ftc-brand { display: grid; align-content: start; gap: 24px; min-width: 0; }\n.hb-ftc-about { display: grid; gap: 14px; min-width: 0; }\n.hb-ftc-logo {\n  display: inline-flex;\n  align-items: center;\n  gap: 9px;\n  color: #fff;\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.01em;\n}\n.hb-ftc-blurb { margin: 0; max-width: 34ch; color: #8f8f8f; font-size: 13.5px; line-height: 1.55; }\n.hb-ftc-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.hb-ftc-sbtn {\n  display: grid;\n  place-items: center;\n  width: 34px;\n  height: 34px;\n  border-radius: 10px;\n  background: #151515;\n  box-shadow: inset 0 0 0 1px #262626;\n  color: #a1a1a1;\n  text-decoration: none;\n  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;\n}\n.hb-ftc-sbtn:hover {\n  background: color-mix(in srgb, var(--hb-ftc-a) 14%, #151515);\n  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-ftc-a) 45%, #262626);\n  color: #fff;\n  transform: translateY(-2px);\n}\n.hb-ftc-sbtn svg { width: 16px; height: 16px; }\n.hb-ftc-news { display: grid; gap: 10px; min-width: 0; align-content: start; }\n.hb-ftc-ntitle { margin: 0; color: #ededed; font-size: 13px; font-weight: 550; }\n.hb-ftc-form {\n  display: flex;\n  align-items: center;\n  gap: 4px;\n  max-width: 340px;\n  padding: 4px;\n  border-radius: 12px;\n  background: #121212;\n  box-shadow: inset 0 0 0 1px #262626;\n  transition: box-shadow 0.2s ease;\n}\n.hb-ftc-form:focus-within { box-shadow: inset 0 0 0 1px var(--hb-ftc-a), 0 0 0 3px color-mix(in srgb, var(--hb-ftc-a) 22%, transparent); }\n.hb-ftc-form[data-invalid=\"true\"] { box-shadow: inset 0 0 0 1px #ff5a5f; }\n.hb-ftc-input {\n  flex: 1;\n  min-width: 0;\n  height: 32px;\n  margin: 0;\n  padding: 0 10px;\n  border: 0;\n  outline: 0;\n  background: transparent;\n  color: #ededed;\n  font: inherit;\n  font-size: 13.5px;\n}\n.hb-ftc-input::placeholder { color: #6b6b6b; }\n.hb-ftc-go {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 32px;\n  height: 32px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  border-radius: 9px;\n  background: var(--hb-ftc-a);\n  color: #fff;\n  cursor: pointer;\n  transition: filter 0.2s ease, transform 0.2s ease;\n}\n.hb-ftc-go:hover { filter: brightness(1.12); }\n.hb-ftc-go:active { transform: scale(0.94); }\n.hb-ftc-go svg { width: 15px; height: 15px; }\n.hb-ftc-note { min-height: 16px; margin: 0; color: #6b6b6b; font-size: 12px; line-height: 1.3; }\n.hb-ftc-note[data-tone=\"error\"] { color: #ff7a7e; }\n.hb-ftc-note[data-tone=\"ok\"] { color: #4cd694; }\n.hb-ftc-col { min-width: 0; }\n.hb-ftc-h { margin: 0 0 14px; color: #ededed; font-size: 13px; font-weight: 550; letter-spacing: 0.01em; }\n.hb-ftc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }\n.hb-ftc-lk {\n  position: relative;\n  display: inline-block;\n  color: #8f8f8f;\n  font-size: 13.5px;\n  line-height: 1.3;\n  text-decoration: none;\n  transition: color 0.2s ease;\n}\n.hb-ftc-lk::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: -2px;\n  height: 1px;\n  background: currentColor;\n  transform: scaleX(0);\n  transform-origin: left;\n  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);\n}\n.hb-ftc-lk:hover { color: #fff; }\n.hb-ftc-lk:hover::after { transform: scaleX(1); }\n.hb-ftc-lk:focus-visible,\n.hb-ftc-sbtn:focus-visible,\n.hb-ftc-go:focus-visible,\n.hb-ftc-stat:focus-visible {\n  outline: 2px solid var(--hb-ftc-a);\n  outline-offset: 3px;\n  border-radius: 6px;\n}\n.hb-ftc-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px 20px;\n  margin-top: 36px;\n  padding-top: 18px;\n  border-top: 1px solid #1c1c1c;\n}\n.hb-ftc-copy { margin: 0; color: #6b6b6b; font-size: 12.5px; }\n.hb-ftc-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }\n.hb-ftc-legal .hb-ftc-lk { font-size: 12.5px; color: #6b6b6b; }\n.hb-ftc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }\n.hb-ftc-stat {\n  --hb-ftc-t: #2fd17a;\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  padding: 5px 11px 5px 9px;\n  border-radius: 999px;\n  background: color-mix(in srgb, var(--hb-ftc-t) 9%, #0a0a0a);\n  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-ftc-t) 26%, #0a0a0a);\n  color: #cfd3d8;\n  font-size: 12px;\n  line-height: 1;\n  text-decoration: none;\n}\n.hb-ftc-stat[data-tone=\"warn\"] { --hb-ftc-t: #f5a524; }\n.hb-ftc-stat[data-tone=\"down\"] { --hb-ftc-t: #ff4d5e; }\n.hb-ftc-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--hb-ftc-t); }\n.hb-ftc-dot::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: var(--hb-ftc-t);\n  animation: hb-ftc-pulse 2s ease-out infinite;\n}\n@keyframes hb-ftc-pulse {\n  0% { transform: scale(1); opacity: 0.6; }\n  80%, 100% { transform: scale(3.2); opacity: 0; }\n}\n@container hb-ftc (max-width: 719px) {\n  .hb-ftc-in { padding: 32px 24px 18px; }\n  .hb-ftc-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-ftc-brand { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }\n}\n@container hb-ftc (max-width: 419px) {\n  .hb-ftc-in { padding: 28px 18px 16px; }\n  .hb-ftc-top { grid-template-columns: minmax(0, 1fr); }\n  .hb-ftc-brand { grid-template-columns: minmax(0, 1fr); }\n  .hb-ftc-form { max-width: none; }\n  .hb-ftc-bar { flex-direction: column; align-items: flex-start; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ftc-dot::after { animation: none; opacity: 0; }\n  .hb-ftc-sbtn, .hb-ftc-lk, .hb-ftc-lk::after, .hb-ftc-go, .hb-ftc-form { transition: none; }\n}\n`;\n\nconst emailPattern = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;\n\nfunction SocialIcon({ name }: { name: FooterSocialName }) {\n  const icon = socialIcons[name];\n  return (\n    <svg\n      viewBox=\"0 0 24 24\"\n      fill={icon.fill ? \"currentColor\" : \"none\"}\n      stroke={icon.fill ? \"none\" : \"currentColor\"}\n      strokeWidth=\"1.7\"\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      aria-hidden=\"true\"\n    >\n      {icon.paths.map((d) => (\n        <path key={d} d={d} />\n      ))}\n    </svg>\n  );\n}\n\nexport function FooterColumns({\n  logo,\n  blurb = \"Build, ship and measure product experiments from one workspace your whole team can trust.\",\n  socials = defaultSocials,\n  columns = defaultColumns,\n  newsletter = true,\n  newsletterTitle = \"Product updates, once a month\",\n  onSubscribe,\n  legal = defaultLegal,\n  copyright = \"© 2026 Acme, Inc. All rights reserved.\",\n  status = { label: \"All systems normal\", tone: \"ok\" },\n  accent = \"#2f7bff\",\n  className = \"\",\n  style,\n  ...rest\n}: FooterColumnsProps) {\n  const uid = React.useId();\n  const [email, setEmail] = React.useState(\"\");\n  const [state, setState] = React.useState<\"idle\" | \"error\" | \"done\">(\"idle\");\n\n  function submit(e: React.FormEvent<HTMLFormElement>) {\n    e.preventDefault();\n    const value = email.trim();\n    if (!emailPattern.test(value)) {\n      setState(\"error\");\n      return;\n    }\n    setState(\"done\");\n    setEmail(\"\");\n    onSubscribe?.(value);\n  }\n\n  const rootStyle = {\n    \"--hb-ftc-a\": accent,\n    \"--hb-ftc-n\": Math.max(1, columns.length),\n    ...style,\n  } as React.CSSProperties;\n\n  const note =\n    state === \"error\"\n      ? \"Enter a valid email address.\"\n      : state === \"done\"\n        ? \"Thanks, you are on the list.\"\n        : \"No spam. Unsubscribe anytime.\";\n\n  const tone = status?.tone ?? \"ok\";\n  const statusInner = status && (\n    <>\n      <span className=\"hb-ftc-dot\" aria-hidden=\"true\" />\n      {status.label}\n    </>\n  );\n\n  return (\n    <footer className={`hb-ftc ${className}`} style={rootStyle} {...rest}>\n      <style href=\"hb-footer-columns\" precedence=\"default\">{css}</style>\n      <div className=\"hb-ftc-in\">\n        <div className=\"hb-ftc-top\">\n          <div className=\"hb-ftc-brand\">\n            <div className=\"hb-ftc-about\">\n              <div className=\"hb-ftc-logo\">{logo ?? defaultLogo}</div>\n              {blurb && <p className=\"hb-ftc-blurb\">{blurb}</p>}\n              {socials.length > 0 && (\n                <ul className=\"hb-ftc-social\">\n                  {socials.map((s) => (\n                    <li key={s.name}>\n                      <a className=\"hb-ftc-sbtn\" href={s.href ?? \"#\"} aria-label={s.label ?? socialIcons[s.name].label}>\n                        <SocialIcon name={s.name} />\n                      </a>\n                    </li>\n                  ))}\n                </ul>\n              )}\n            </div>\n            {newsletter && (\n              <div className=\"hb-ftc-news\">\n                <p className=\"hb-ftc-ntitle\" id={`${uid}-news`}>{newsletterTitle}</p>\n                <form className=\"hb-ftc-form\" data-invalid={state === \"error\" ? \"true\" : \"false\"} onSubmit={submit} noValidate>\n                  <input\n                    className=\"hb-ftc-input\"\n                    type=\"email\"\n                    name=\"email\"\n                    autoComplete=\"email\"\n                    placeholder=\"you@company.com\"\n                    aria-labelledby={`${uid}-news`}\n                    aria-invalid={state === \"error\"}\n                    aria-describedby={`${uid}-note`}\n                    value={email}\n                    onChange={(e) => {\n                      setEmail(e.target.value);\n                      if (state !== \"idle\") setState(\"idle\");\n                    }}\n                  />\n                  <button className=\"hb-ftc-go\" type=\"submit\" aria-label=\"Subscribe\">\n                    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                      <path d=\"M3 8h10M9 4l4 4-4 4\" />\n                    </svg>\n                  </button>\n                </form>\n                <p className=\"hb-ftc-note\" id={`${uid}-note`} role=\"status\" data-tone={state === \"idle\" ? \"\" : state === \"error\" ? \"error\" : \"ok\"}>\n                  {note}\n                </p>\n              </div>\n            )}\n          </div>\n          {columns.map((col) => (\n            <nav className=\"hb-ftc-col\" key={col.title} aria-label={col.title}>\n              <h3 className=\"hb-ftc-h\">{col.title}</h3>\n              <ul className=\"hb-ftc-list\">\n                {col.links.map((link) => (\n                  <li key={link.label}>\n                    <a className=\"hb-ftc-lk\" href={link.href ?? \"#\"}>\n                      {link.label}\n                    </a>\n                  </li>\n                ))}\n              </ul>\n            </nav>\n          ))}\n        </div>\n        <div className=\"hb-ftc-bar\">\n          <p className=\"hb-ftc-copy\">{copyright}</p>\n          <div className=\"hb-ftc-meta\">\n            {legal.length > 0 && (\n              <ul className=\"hb-ftc-legal\">\n                {legal.map((link) => (\n                  <li key={link.label}>\n                    <a className=\"hb-ftc-lk\" href={link.href ?? \"#\"}>\n                      {link.label}\n                    </a>\n                  </li>\n                ))}\n              </ul>\n            )}\n            {status &&\n              (status.href ? (\n                <a className=\"hb-ftc-stat\" href={status.href} data-tone={tone}>\n                  {statusInner}\n                </a>\n              ) : (\n                <span className=\"hb-ftc-stat\" role=\"status\" data-tone={tone}>\n                  {statusInner}\n                </span>\n              ))}\n          </div>\n        </div>\n      </div>\n    </footer>\n  );\n}\n"
    }
  ]
}