{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ascii-footer","type":"registry:component","title":"ASCII Footer","description":"A complete site footer, just like bydot.co's: logo, tagline, link columns and a live local clock, then a big fading wordmark over an interactive ASCII trail that follows the cursor.","dependencies":[],"files":[{"path":"registry/dot/ascii-footer.tsx","type":"registry:component","target":"components/dot/ascii-footer.tsx","content":"\"use client\";\n\nimport { useEffect, useRef, useState, useSyncExternalStore, type CSSProperties, type ReactNode } from \"react\";\n\nconst noSubscribe = () => () => {};\n/** The current year in the browser; null while prerendering, so a cached page never shows a stale year */\nconst useYear = () => useSyncExternalStore(noSubscribe, () => new Date().getFullYear(), () => null);\n\nexport interface AsciiTrailProps {\n  /** Glyph colour; \"currentColor\" follows the surrounding text colour (and so light/dark themes) */\n  color?: string;\n  /** Characters from faint to strong, e.g. \".:-+*#%\" */\n  glyphs?: string;\n  /** Glyph size in px; the grid cell scales with it */\n  fontSize?: number;\n  fontFamily?: string;\n  /** Radius of the trail around the pointer, in px */\n  brushSize?: number;\n  /** How quickly cells light up under the pointer (0–1) */\n  strength?: number;\n  /** Fade speed; higher clears the trail faster */\n  fade?: number;\n  /** Gentle flicker on lit cells */\n  shimmer?: boolean;\n  /** Share of cells that show a faint resting dot (0–1) */\n  ambient?: number;\n  /** Opacity of the resting dots */\n  ambientOpacity?: number;\n  /** Draw a wandering trail by itself: on touch devices (no hover), always while idle, or never */\n  autoTrail?: \"touch\" | \"always\" | \"off\";\n  /** Follow the pointer */\n  interactive?: boolean;\n  className?: string;\n  style?: CSSProperties;\n}\n\nconst SINE = new Float32Array(256);\nfor (let i = 0; i < 256; i++) SINE[i] = Math.sin((i / 256) * Math.PI * 2);\n\n// Stable pseudo-random value per cell, so the pattern doesn't reshuffle on every resize\nfunction cellNoise(i: number) {\n  let t = Math.imul(i, 0x165667b1) + 0x27d4eb2f;\n  t = Math.imul(t ^ (t >>> 13), 0x4bf19f61);\n  return ((t ^ (t >>> 16)) >>> 0) / 0x100000000;\n}\n\nconst STEP = 1 / 30; // simulation tick, in seconds\n\n/**\n * Interactive ASCII field: moving the pointer leaves a glowing trail of characters that fade back\n * into a faint dotted texture. Fills its nearest positioned parent; sits behind content and\n * passes clicks through except where it listens for the pointer. Sleeps while idle or offscreen.\n */\nexport function AsciiTrail({\n  color = \"currentColor\",\n  glyphs = \".:-+*#%\",\n  fontSize = 14,\n  fontFamily = \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\",\n  brushSize = 54,\n  strength = 0.22,\n  fade = 1,\n  shimmer = true,\n  ambient = 0.16,\n  ambientOpacity = 0.03,\n  autoTrail = \"touch\",\n  interactive = true,\n  className,\n  style,\n}: AsciiTrailProps) {\n  const containerRef = useRef<HTMLDivElement | null>(null);\n  const ambientRef = useRef<HTMLCanvasElement | null>(null);\n  const trailRef = useRef<HTMLCanvasElement | null>(null);\n  // Settings that can change without rebuilding the grid\n  const live = useRef({ color, glyphs, brushSize, strength, fade, shimmer, autoTrail, interactive });\n  const wake = useRef<() => void>(() => {});\n\n  useEffect(() => {\n    live.current = { color, glyphs, brushSize, strength, fade, shimmer, autoTrail, interactive };\n    wake.current();\n  });\n\n  useEffect(() => {\n    const container = containerRef.current;\n    const ambientCanvas = ambientRef.current;\n    const trailCanvas = trailRef.current;\n    const ambientCtx = ambientCanvas?.getContext(\"2d\");\n    const trailCtx = trailCanvas?.getContext(\"2d\");\n    if (!container || !ambientCanvas || !trailCanvas || !ambientCtx || !trailCtx) return;\n\n    const reduceMotion = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n    const coarse = window.matchMedia(\"(pointer: coarse)\");\n    const cellW = fontSize * 0.72;\n    const cellH = fontSize * 1.15;\n    const font = `${fontSize}px ${fontFamily}`;\n\n    let width = 0;\n    let height = 0;\n    let cols = 0;\n    let rows = 0;\n    let heat = new Float32Array(0);\n    let decay = new Float32Array(0);\n    let threshold = new Float32Array(0);\n    let noise = new Float32Array(0);\n    let phase = new Int32Array(0);\n    const active = new Set<number>();\n\n    let pointer: { x: number; y: number } | null = null;\n    let lastPointerAt = -Infinity;\n    let frame = 0;\n    let running = false;\n    let visible = true;\n    let lastTime = 0;\n    let accumulator = 0;\n    let clock = 0;\n    let drawnColor = \"\";\n\n    const resolveColor = () => (live.current.color === \"currentColor\" ? getComputedStyle(container).color : live.current.color);\n\n    const autoTrailOn = () => {\n      const mode = live.current.autoTrail;\n      if (reduceMotion.matches || mode === \"off\") return false;\n      return mode === \"always\" || coarse.matches;\n    };\n\n    function drawAmbient() {\n      drawnColor = resolveColor();\n      ambientCtx!.clearRect(0, 0, width, height);\n      if (ambient <= 0 || ambientOpacity <= 0) return;\n      ambientCtx!.fillStyle = drawnColor;\n      ambientCtx!.globalAlpha = ambientOpacity;\n      for (let r = 0; r < rows; r++) {\n        for (let c = 0; c < cols; c++) {\n          const n = noise[r * cols + c];\n          if (n > ambient) continue;\n          ambientCtx!.fillText(n < ambient / 2 ? \".\" : \":\", c * cellW + cellW / 2, r * cellH + cellH / 2);\n        }\n      }\n      ambientCtx!.globalAlpha = 1;\n    }\n\n    function resize() {\n      const rect = container!.getBoundingClientRect();\n      width = Math.floor(container!.offsetWidth || rect.width);\n      height = Math.floor(container!.offsetHeight || rect.height);\n      if (width < 1 || height < 1) return;\n      const dpr = Math.min(window.devicePixelRatio || 1, 2);\n      for (const [canvas, ctx] of [\n        [ambientCanvas!, ambientCtx!],\n        [trailCanvas!, trailCtx!],\n      ] as const) {\n        canvas.width = Math.round(width * dpr);\n        canvas.height = Math.round(height * dpr);\n        ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n        ctx.font = font;\n        ctx.textAlign = \"center\";\n        ctx.textBaseline = \"middle\";\n      }\n      cols = Math.ceil(width / cellW) + 1;\n      rows = Math.ceil(height / cellH) + 1;\n      const total = cols * rows;\n      heat = new Float32Array(total);\n      decay = new Float32Array(total);\n      threshold = new Float32Array(total);\n      noise = new Float32Array(total);\n      phase = new Int32Array(total);\n      for (let i = 0; i < total; i++) noise[i] = cellNoise(i);\n      active.clear();\n      drawAmbient();\n      trailCtx!.clearRect(0, 0, width, height);\n    }\n\n    function inject(cx: number, cy: number) {\n      const radius = live.current.brushSize;\n      const amount = live.current.strength;\n      const minCol = Math.max(0, Math.floor((cx - radius) / cellW));\n      const maxCol = Math.min(cols - 1, Math.ceil((cx + radius) / cellW));\n      const minRow = Math.max(0, Math.floor((cy - radius) / cellH));\n      const maxRow = Math.min(rows - 1, Math.ceil((cy + radius) / cellH));\n      for (let r = minRow; r <= maxRow; r++) {\n        const dy = r * cellH + cellH / 2 - cy;\n        for (let c = minCol; c <= maxCol; c++) {\n          const dx = c * cellW + cellW / 2 - cx;\n          const i = r * cols + c;\n          // Ragged edge: noise bends the brush outline per cell\n          const dist = (Math.hypot(dx, dy) / radius) * (1 + (noise[i] - 0.5) * 0.7);\n          if (dist > 1) continue;\n          const t = dist > 0.45 ? 1 - (dist - 0.45) / 0.55 : 1;\n          const curve = t * t * (3 - 2 * t);\n          if (Math.random() > 0.8 * curve + 0.2) continue;\n          if (heat[i] <= 0) {\n            decay[i] = 0.5 + Math.random() * 0.8;\n            phase[i] = (Math.random() * 256) | 0;\n            threshold[i] = 1;\n          }\n          threshold[i] = Math.min(threshold[i], 0.62 * dist * dist + 0.16 * noise[i]);\n          heat[i] = Math.min(1, heat[i] + curve * amount);\n          active.add(i);\n        }\n      }\n    }\n\n    function tick(now: number) {\n      if (!lastTime) lastTime = now;\n      accumulator += Math.min((now - lastTime) / 1000, 0.1);\n      lastTime = now;\n      const { fade: fadeSpeed, shimmer: flicker, glyphs: chars } = live.current;\n      let stepped = false;\n\n      for (let n = 0; accumulator >= STEP && n < 3; n++) {\n        accumulator -= STEP;\n        clock += STEP;\n        if (pointer) inject(pointer.x, pointer.y);\n        else if (autoTrailOn() && now - lastPointerAt > 1500) {\n          // Wandering Lissajous path, so touch visitors (and idle screens) still see the effect\n          inject(width * (0.5 + 0.38 * Math.sin(clock * 0.9)), height * (0.5 + 0.34 * Math.sin(clock * 1.37 + 1)));\n        }\n        for (const i of active) {\n          const next = heat[i] * Math.exp(-2 * decay[i] * fadeSpeed * STEP);\n          if (next < 0.05) {\n            heat[i] = 0;\n            active.delete(i);\n          } else heat[i] = next;\n        }\n        stepped = true;\n      }\n\n      if (stepped) {\n        const colour = resolveColor();\n        if (colour !== drawnColor) drawAmbient();\n        trailCtx!.clearRect(0, 0, width, height);\n        trailCtx!.fillStyle = colour;\n        const wave = (0.9 * clock * 256) | 0;\n        const animate = flicker && !reduceMotion.matches;\n        for (const i of active) {\n          const v = heat[i] * (animate ? 0.78 + 0.22 * SINE[(wave + phase[i]) & 255] : 1);\n          if (v < threshold[i]) continue;\n          trailCtx!.globalAlpha = 0.25 + 0.75 * v;\n          const g = chars[Math.min(chars.length - 1, Math.floor(Math.pow(Math.min(1, v), 0.7) * chars.length))] ?? \".\";\n          trailCtx!.fillText(g, (i % cols) * cellW + cellW / 2, Math.floor(i / cols) * cellH + cellH / 2);\n        }\n        trailCtx!.globalAlpha = 1;\n      }\n\n      // Sleep once nothing is lit and nothing will light up\n      if (visible && (active.size || pointer || autoTrailOn())) frame = requestAnimationFrame(tick);\n      else {\n        running = false;\n        lastTime = 0;\n      }\n    }\n\n    const start = () => {\n      if (running || !visible) return;\n      running = true;\n      frame = requestAnimationFrame(tick);\n    };\n    wake.current = start;\n\n    const onMove = (e: PointerEvent) => {\n      if (!live.current.interactive) return;\n      const rect = container.getBoundingClientRect();\n      const scale = container.offsetWidth ? rect.width / container.offsetWidth : 1;\n      const x = (e.clientX - rect.left) / scale;\n      const y = (e.clientY - rect.top) / scale;\n      pointer = x >= 0 && y >= 0 && x <= width && y <= height ? { x, y } : null;\n      lastPointerAt = performance.now();\n      start();\n    };\n    const onLeave = () => {\n      pointer = null;\n      lastPointerAt = performance.now();\n    };\n\n    const resizeObserver = new ResizeObserver(() => {\n      resize();\n      start();\n    });\n    resizeObserver.observe(container);\n    const visibility = new IntersectionObserver(([entry]) => {\n      visible = entry.isIntersecting;\n      if (visible) start();\n    });\n    visibility.observe(container);\n    container.addEventListener(\"pointermove\", onMove, { passive: true });\n    container.addEventListener(\"pointerleave\", onLeave, { passive: true });\n    container.addEventListener(\"pointercancel\", onLeave, { passive: true });\n    reduceMotion.addEventListener(\"change\", start);\n    resize();\n    start();\n\n    return () => {\n      cancelAnimationFrame(frame);\n      wake.current = () => {};\n      resizeObserver.disconnect();\n      visibility.disconnect();\n      container.removeEventListener(\"pointermove\", onMove);\n      container.removeEventListener(\"pointerleave\", onLeave);\n      container.removeEventListener(\"pointercancel\", onLeave);\n      reduceMotion.removeEventListener(\"change\", start);\n    };\n  }, [fontSize, fontFamily, ambient, ambientOpacity]);\n\n  return (\n    <div\n      ref={containerRef}\n      aria-hidden\n      className={className}\n      style={{ position: \"absolute\", inset: 0, overflow: \"hidden\", userSelect: \"none\", ...style }}\n    >\n      <canvas ref={ambientRef} style={{ position: \"absolute\", inset: 0, width: \"100%\", height: \"100%\", pointerEvents: \"none\" }} />\n      <canvas ref={trailRef} style={{ position: \"absolute\", inset: 0, width: \"100%\", height: \"100%\", pointerEvents: \"none\" }} />\n    </div>\n  );\n}\n\n// ─── Footer ──────────────────────────────────────────────────────────────────\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 AsciiFooterProps extends Omit<AsciiTrailProps, \"className\" | \"style\"> {\n  /** Small logo above the tagline: an image URL or any element. Omitted, the brand name shows */\n  logo?: ReactNode;\n  /** Logo height in px */\n  logoSize?: number;\n  /** Used for the copyright line and as the big wordmark */\n  brand?: string;\n  tagline?: string;\n  /** Link columns, e.g. Product / Company / Legal */\n  columns?: FooterColumn[];\n  /** Line under the tagline, e.g. \"Building in public at\", followed by the linked handle */\n  socialText?: string;\n  socialHandle?: string;\n  socialHref?: string;\n  /** Location with a live local clock; leave empty to hide */\n  location?: string;\n  region?: string;\n  /** IANA time zone for the clock, e.g. \"Asia/Kolkata\" */\n  timeZone?: string;\n  /** Short zone name shown after the time, e.g. \"IST\" */\n  timeZoneLabel?: string;\n  /** Defaults to \"© {year} {brand}. All rights reserved\" */\n  copyright?: string;\n  /** Big text at the bottom; defaults to the brand */\n  wordmark?: string;\n  /** Image used instead of the wordmark text */\n  wordmarkImage?: string;\n  /** Largest wordmark size in px; it shrinks with the footer's width */\n  wordmarkSize?: number;\n  /** Colour preset; the colour props below override it */\n  theme?: \"dark\" | \"light\";\n  background?: string;\n  /** Headings, handle and hovered links */\n  foreground?: string;\n  /** Body text and links */\n  muted?: string;\n  border?: string;\n  /** Page width the content lines up with, in px */\n  maxWidth?: number;\n  className?: string;\n  style?: CSSProperties;\n}\n\nconst THEMES = {\n  dark: { background: \"#08080A\", foreground: \"#FFFFFF\", muted: \"#8F8F99\", border: \"rgba(255,255,255,0.1)\", wordmark: \"#8F8F99\" },\n  light: { background: \"#FFFFFF\", foreground: \"#18181B\", muted: \"#52525B\", border: \"#E4E4E7\", wordmark: \"#D4D4D8\" },\n};\n\nconst DEFAULT_COLUMNS: FooterColumn[] = [\n  {\n    title: \"Product\",\n    links: [\n      { label: \"Features\", href: \"#\" },\n      { label: \"Pricing\", href: \"#\" },\n      { label: \"Changelog\", href: \"#\" },\n      { label: \"Docs\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Company\",\n    links: [\n      { label: \"About\", href: \"#\" },\n      { label: \"Blog\", href: \"#\" },\n      { label: \"Careers\", href: \"#\" },\n      { label: \"Contact\", href: \"#\" },\n    ],\n  },\n  {\n    title: \"Legal\",\n    links: [\n      { label: \"Terms of Service\", href: \"#\" },\n      { label: \"Privacy Policy\", href: \"#\" },\n      { label: \"Cookie Policy\", href: \"#\" },\n    ],\n  },\n];\n\nconst MONO = \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\";\n\n// Plain CSS (no Tailwind needed) so it also works in Framer; container queries make the layout\n// follow the footer's own width rather than the window's\nconst CSS = `\n.ascii-footer{container-type:inline-size;position:relative;width:100%;overflow:hidden;background:var(--af-bg);color:var(--af-muted)}\n.ascii-footer *{box-sizing:border-box}\n.ascii-footer a{color:inherit;text-decoration:none;transition:color .15s}\n.ascii-footer a:hover{color:var(--af-fg)}\n.ascii-footer a:focus-visible{outline:2px solid var(--af-fg);outline-offset:2px;border-radius:2px}\n.af-inner,.af-bottom{width:100%;max-width:var(--af-max);margin:0 auto;padding-left:16px;padding-right:16px}\n.af-inner{display:flex;flex-direction:column;gap:40px;padding-top:48px}\n.af-rule{height:1px;width:100%;background:var(--af-border)}\n.af-top{display:flex;flex-direction:column;gap:48px}\n.af-brand{max-width:422px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}\n.af-logo{display:inline-flex;align-items:center;color:var(--af-fg);font-size:22px;font-weight:600;letter-spacing:-0.02em}\n.af-logo img,.af-logo svg{height:var(--af-logo);width:auto;display:block}\n.af-tagline{margin:20px 0 0;font-size:19px;line-height:1.6}\n.af-social{margin:0;font-size:19px;line-height:1.6}\n.af-social a{color:var(--af-fg);font-size:16px;font-weight:500;margin-left:8px}\n.af-cols{display:flex;flex-wrap:wrap;gap:48px}\n.af-col{min-width:110px}\n.af-col h4{margin:0 0 16px;font-size:19px;font-weight:500;letter-spacing:-0.01em;color:var(--af-fg)}\n.af-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:15px}\n.af-loc{display:flex;flex-direction:column;gap:4px;padding-top:16px;font-family:${MONO};font-size:15px;color:var(--af-fg)}\n.af-loc-row{display:flex;align-items:center;gap:8px}\n.af-loc-row b{font-weight:500}\n.af-loc small{font-size:13px;color:var(--af-muted)}\n.af-loc-time{padding-left:16px;font-size:13px;color:var(--af-muted)}\n.af-pulse{width:8px;height:8px;border-radius:50%;background:#22C55E;animation:af-pulse 2s cubic-bezier(.4,0,.6,1) infinite}\n@keyframes af-pulse{50%{opacity:.5}}\n.af-bottom{position:relative;overflow:hidden;padding-top:24px}\n.af-copy{position:relative;z-index:1;margin:0 0 16px;font-size:15px;font-weight:500;pointer-events:none}\n.af-mark{position:relative;z-index:1;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;pointer-events:none;user-select:none}\n.af-word{display:block;font-weight:500;line-height:1;letter-spacing:-0.07em;padding:0 .04em;color:transparent;-webkit-background-clip:text;background-clip:text;transform:translateY(18%)}\n.af-mark img{display:block;max-width:90%;object-fit:contain;transform:translateY(18%);-webkit-mask-image:linear-gradient(#000,transparent);mask-image:linear-gradient(#000,transparent)}\n@container (min-width:640px){.af-inner,.af-bottom{padding-left:24px;padding-right:24px}.af-cols{flex-wrap:nowrap;gap:80px}}\n@container (min-width:900px){.af-top{flex-direction:row;justify-content:space-between;gap:64px}}\n@media (prefers-reduced-motion:reduce){.af-pulse{animation:none}}\n`;\n\nfunction useClock(timeZone: string | undefined) {\n  const [time, setTime] = useState(\"\");\n  useEffect(() => {\n    if (!timeZone) return;\n    const update = () => {\n      try {\n        setTime(new Date().toLocaleTimeString(\"en-US\", { timeZone, hour: \"2-digit\", minute: \"2-digit\", hour12: false }));\n      } catch {\n        setTime(\"\"); // unknown time zone\n      }\n    };\n    const first = setTimeout(update, 0);\n    const interval = setInterval(update, 30000);\n    return () => {\n      clearTimeout(first);\n      clearInterval(interval);\n    };\n  }, [timeZone]);\n  return time;\n}\n\n/**\n * A complete site footer, styled like bydot.co's: logo, tagline, link columns and a live local\n * clock, then the copyright and a big fading wordmark over an interactive ASCII trail. Every text,\n * link and colour is a prop; the layout follows the footer's own width, so it fits any container.\n */\nexport function AsciiFooter({\n  logo,\n  logoSize = 28,\n  brand = \"Acme\",\n  tagline = \"Thoughtfully built software for modern teams.\",\n  columns = DEFAULT_COLUMNS,\n  socialText = \"Follow along at\",\n  socialHandle = \"@acme\",\n  socialHref = \"#\",\n  location = \"San Francisco\",\n  region = \"USA\",\n  timeZone = \"America/Los_Angeles\",\n  timeZoneLabel = \"PT\",\n  copyright,\n  wordmark,\n  wordmarkImage,\n  wordmarkSize = 300,\n  theme = \"dark\",\n  background,\n  foreground,\n  muted,\n  border,\n  maxWidth = 1440,\n  color,\n  className,\n  style,\n  ...trail\n}: AsciiFooterProps) {\n  const palette = THEMES[theme] ?? THEMES.dark;\n  const fg = foreground ?? palette.foreground;\n  const time = useClock(location ? timeZone : undefined);\n  const year = useYear();\n  const wordSize = `clamp(${Math.min(120, wordmarkSize)}px, 22cqw, ${wordmarkSize}px)`;\n  const fade = muted ?? palette.wordmark;\n\n  return (\n    <footer\n      className={[\"ascii-footer\", className].filter(Boolean).join(\" \")}\n      style={\n        {\n          \"--af-bg\": background ?? palette.background,\n          \"--af-fg\": fg,\n          \"--af-muted\": muted ?? palette.muted,\n          \"--af-border\": border ?? palette.border,\n          \"--af-max\": `${maxWidth}px`,\n          \"--af-logo\": `${logoSize}px`,\n          ...style,\n        } as CSSProperties\n      }\n    >\n      <style>{CSS}</style>\n      <div className=\"af-inner\">\n        <div className=\"af-rule\" />\n        <div className=\"af-top\">\n          <div className=\"af-brand\">\n            <div>\n              <span className=\"af-logo\">\n                {typeof logo === \"string\" && logo ? (\n                  // eslint-disable-next-line @next/next/no-img-element -- any image URL, also in Framer\n                  <img src={logo} alt={brand} />\n                ) : (\n                  (logo ?? brand)\n                )}\n              </span>\n              {tagline && <p className=\"af-tagline\">{tagline}</p>}\n            </div>\n            {(socialText || socialHandle) && (\n              <p className=\"af-social\">\n                {socialText}\n                {socialHandle && (\n                  <a href={socialHref} target=\"_blank\" rel=\"noreferrer\">\n                    {socialHandle}\n                  </a>\n                )}\n              </p>\n            )}\n          </div>\n          {columns.length > 0 && (\n            <nav className=\"af-cols\" aria-label=\"Footer\">\n              {columns.map((column, c) => (\n                <div className=\"af-col\" key={c}>\n                  <h4>{column.title}</h4>\n                  <ul>\n                    {column.links.map((link, l) => (\n                      <li key={l}>\n                        <a href={link.href}>{link.label}</a>\n                      </li>\n                    ))}\n                  </ul>\n                </div>\n              ))}\n            </nav>\n          )}\n        </div>\n        {location && (\n          <div className=\"af-loc\">\n            <div className=\"af-loc-row\">\n              <span className=\"af-pulse\" />\n              <b>{location}</b>\n              {region && <small>{region}</small>}\n            </div>\n            <div className=\"af-loc-time\">{time ? `${time} ${timeZoneLabel}` : \" \"}</div>\n          </div>\n        )}\n        <div className=\"af-rule\" />\n      </div>\n\n      <div className=\"af-bottom\">\n        <AsciiTrail color={color ?? fg} {...trail} />\n        <p className=\"af-copy\">{copyright ?? `© ${year ?? \"\"}${year ? \" \" : \"\"}${brand}. All rights reserved`}</p>\n        <div className=\"af-mark\" aria-hidden>\n          {wordmarkImage ? (\n            // eslint-disable-next-line @next/next/no-img-element -- any image URL, also in Framer\n            <img src={wordmarkImage} alt=\"\" style={{ height: wordSize }} />\n          ) : (\n            <span\n              className=\"af-word\"\n              style={{\n                fontSize: wordSize,\n                backgroundImage: `linear-gradient(to bottom, ${fade}, color-mix(in srgb, ${fade} 50%, transparent), transparent)`,\n              }}\n            >\n              {wordmark ?? brand}\n            </span>\n          )}\n        </div>\n      </div>\n    </footer>\n  );\n}\n"}],"docs":"ASCII Footer is ready. Props and a live canvas: https://bydot.co/component/ascii-footer","meta":{"tier":"free","category":"Interactive","version":"1.0.0"}}