{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "blog-newsletter-issues",
  "type": "registry:component",
  "title": "Newsletter Issue List",
  "description": "A newsletter archive section: numbered issues with date, topics and reading time that reveal an excerpt on hover, beside a subscribe card with a rotating border and email validation.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "blog",
    "blog",
    "newsletter",
    "subscribe",
    "issues",
    "archive",
    "form"
  ],
  "docs": "https://hyperblur.dev/effects/blog-newsletter-issues",
  "files": [
    {
      "path": "registry/hyperblur/blog-newsletter-issues.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/blog-newsletter-issues.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface BlogNewsletterIssue {\n  number: number;\n  title: string;\n  excerpt: string;\n  date: string;\n  readTime: string;\n  href: string;\n  topics?: string[];\n}\n\nexport interface BlogNewsletterIssuesProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\" | \"onSubmit\"> {\n  name?: string;\n  title?: string;\n  subtitle?: string;\n  issues?: BlogNewsletterIssue[];\n  subscribers?: string;\n  cadence?: string;\n  placeholder?: string;\n  buttonLabel?: string;\n  successMessage?: string;\n  archive?: { label: string; href: string };\n  accent?: string;\n  onSubscribe?: (email: string) => void | Promise<void>;\n}\n\nconst defaultIssues: BlogNewsletterIssue[] = [\n  {\n    number: 148,\n    title: \"The quiet death of the settings page\",\n    excerpt: \"Why the best products are moving preferences into the moment you need them, with five examples from apps we use daily.\",\n    date: \"Nov 2, 2026\",\n    readTime: \"7 min read\",\n    href: \"#\",\n    topics: [\"Product\", \"UX\"],\n  },\n  {\n    number: 147,\n    title: \"Pricing pages that stopped hiding the number\",\n    excerpt: \"We read 212 SaaS pricing pages. The ones that convert best share three habits, and none of them is a toggle.\",\n    date: \"Oct 26, 2026\",\n    readTime: \"9 min read\",\n    href: \"#\",\n    topics: [\"Growth\"],\n  },\n  {\n    number: 146,\n    title: \"What a 40 person team learned from deleting Jira\",\n    excerpt: \"A field report from Lagos and Berlin on replacing tickets with a weekly written plan.\",\n    date: \"Oct 19, 2026\",\n    readTime: \"6 min read\",\n    href: \"#\",\n    topics: [\"Teams\"],\n  },\n  {\n    number: 145,\n    title: \"Fonts are the new brand colors\",\n    excerpt: \"Variable type, optical sizes and why every startup suddenly ships a custom grotesk.\",\n    date: \"Oct 12, 2026\",\n    readTime: \"5 min read\",\n    href: \"#\",\n    topics: [\"Design\"],\n  },\n];\n\nconst css = `\n.hb-yj7 {\n  --hb-yj7-accent: #10b981;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  isolation: isolate;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-yj7 *, .hb-yj7 *::before, .hb-yj7 *::after { box-sizing: border-box; }\n.hb-yj7::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: radial-gradient(40% 50% at 82% 30%, color-mix(in srgb, var(--hb-yj7-accent) 11%, transparent), transparent 70%);\n  pointer-events: none;\n}\n.hb-yj7-inner {\n  display: grid;\n  gap: 40px;\n  max-width: 1120px;\n  margin: 0 auto;\n  padding: 72px 20px;\n}\n@container (min-width: 880px) {\n  .hb-yj7-inner { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 100px 32px; }\n}\n.hb-yj7-mast { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }\n.hb-yj7-logo {\n  display: grid;\n  place-items: center;\n  width: 34px;\n  height: 34px;\n  border-radius: 10px;\n  background: linear-gradient(135deg, var(--hb-yj7-accent), color-mix(in srgb, var(--hb-yj7-accent) 35%, #0a0a0a));\n  color: #04120c;\n  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);\n}\n.hb-yj7-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }\n.hb-yj7-name span { display: block; color: #8f8f8f; font-size: 12.5px; font-weight: 400; }\n.hb-yj7-title { margin: 0; font-size: clamp(30px, 4.4cqw, 44px); line-height: 1.06; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }\n.hb-yj7-sub { margin: 14px 0 28px; max-width: 520px; color: #8f8f8f; font-size: 16px; line-height: 1.6; }\n.hb-yj7-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .08); }\n.hb-yj7-item { border-bottom: 1px solid rgba(255, 255, 255, .08); opacity: 0; transform: translateY(12px); }\n.hb-yj7-seen .hb-yj7-item { animation: hb-yj7-rise .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--hb-yj7-i) * 90ms); }\n.hb-yj7-row {\n  position: relative;\n  display: grid;\n  grid-template-columns: 64px minmax(0, 1fr) auto;\n  gap: 4px 18px;\n  align-items: baseline;\n  padding: 20px 8px;\n  color: inherit;\n  text-decoration: none;\n  border-radius: 12px;\n  transition: background .25s ease;\n}\n.hb-yj7-row:hover, .hb-yj7-row:focus-visible { background: rgba(255, 255, 255, .025); }\n.hb-yj7-row:focus-visible { outline: 2px solid var(--hb-yj7-accent); outline-offset: -2px; }\n.hb-yj7-num {\n  color: #4a4a4a;\n  font: 500 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace;\n  letter-spacing: -.04em;\n  font-variant-numeric: tabular-nums;\n  transition: color .25s ease;\n}\n.hb-yj7-row:hover .hb-yj7-num, .hb-yj7-row:focus-visible .hb-yj7-num { color: var(--hb-yj7-accent); }\n.hb-yj7-t { font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }\n.hb-yj7-t span {\n  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;\n  transition: background-size .35s cubic-bezier(.2, .8, .2, 1);\n}\n.hb-yj7-row:hover .hb-yj7-t span, .hb-yj7-row:focus-visible .hb-yj7-t span { background-size: 100% 1px; }\n.hb-yj7-time { color: #6b6b6b; font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }\n.hb-yj7-meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: #6b6b6b; font-size: 12.5px; }\n.hb-yj7-topic { padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; color: #a1a1a1; font-size: 11.5px; }\n.hb-yj7-ex { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }\n.hb-yj7-ex > span { overflow: hidden; color: #8f8f8f; font-size: 14px; line-height: 1.55; }\n.hb-yj7-ex > span > span { display: block; padding-top: 8px; max-width: 560px; }\n.hb-yj7-row:hover .hb-yj7-ex, .hb-yj7-row:focus-visible .hb-yj7-ex, .hb-yj7-first .hb-yj7-ex { grid-template-rows: 1fr; }\n.hb-yj7-archive { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: #a1a1a1; font-size: 14px; text-decoration: none; transition: color .2s ease; }\n.hb-yj7-archive:hover { color: #ededed; }\n.hb-yj7-archive:focus-visible { outline: 2px solid var(--hb-yj7-accent); outline-offset: 3px; border-radius: 4px; }\n@container (max-width: 520px) {\n  .hb-yj7-row { grid-template-columns: 44px minmax(0, 1fr); }\n  .hb-yj7-num { font-size: 16px; }\n  .hb-yj7-time { display: none; }\n}\n.hb-yj7-box {\n  position: relative;\n  padding: 28px;\n  border-radius: 22px;\n  background:\n    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--hb-yj7-accent) 16%, transparent), transparent 60%),\n    linear-gradient(180deg, #151515, #0f0f0f);\n  border: 1px solid rgba(255, 255, 255, .08);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .8);\n}\n@container (min-width: 880px) { .hb-yj7-box { position: sticky; top: 24px; margin-top: 52px; } }\n.hb-yj7-box::before {\n  content: \"\";\n  position: absolute;\n  inset: -1px;\n  border-radius: inherit;\n  padding: 1px;\n  background: conic-gradient(from var(--hb-yj7-angle, 0deg), transparent 0 70%, var(--hb-yj7-accent) 85%, transparent 100%);\n  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n  -webkit-mask-composite: xor;\n  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);\n  animation: hb-yj7-spin 6s linear infinite;\n  pointer-events: none;\n}\n@property --hb-yj7-angle { syntax: \"<angle>\"; inherits: false; initial-value: 0deg; }\n.hb-yj7-env {\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border-radius: 12px;\n  background: rgba(255, 255, 255, .05);\n  border: 1px solid rgba(255, 255, 255, .08);\n  color: var(--hb-yj7-accent);\n}\n.hb-yj7-box h3 { margin: 18px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 640; }\n.hb-yj7-box p { margin: 10px 0 0; color: #8f8f8f; font-size: 14.5px; line-height: 1.55; }\n.hb-yj7-form { display: grid; gap: 10px; margin-top: 22px; }\n.hb-yj7-input {\n  width: 100%;\n  height: 46px;\n  padding: 0 14px;\n  border: 1px solid rgba(255, 255, 255, .1);\n  border-radius: 12px;\n  background: #0a0a0a;\n  color: #ededed;\n  font: inherit;\n  font-size: 14.5px;\n  transition: border-color .2s ease, box-shadow .2s ease;\n}\n.hb-yj7-input::placeholder { color: #5f5f5f; }\n.hb-yj7-input:focus { outline: none; border-color: var(--hb-yj7-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-yj7-accent) 18%, transparent); }\n.hb-yj7-input[aria-invalid=\"true\"] { border-color: #f87171; }\n.hb-yj7-btn {\n  height: 46px;\n  border: 0;\n  border-radius: 12px;\n  background: #ededed;\n  color: #0a0a0a;\n  font: inherit;\n  font-size: 14.5px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background .2s ease, transform .2s ease;\n}\n.hb-yj7-btn:hover { background: #fff; }\n.hb-yj7-btn:active { transform: scale(.98); }\n.hb-yj7-btn:focus-visible { outline: 2px solid var(--hb-yj7-accent); outline-offset: 2px; }\n.hb-yj7-btn:disabled { opacity: .6; cursor: default; }\n.hb-yj7-err { margin: 0; color: #f87171; font-size: 13px; }\n.hb-yj7-ok {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  margin-top: 22px;\n  padding: 14px;\n  border-radius: 12px;\n  background: color-mix(in srgb, var(--hb-yj7-accent) 12%, transparent);\n  border: 1px solid color-mix(in srgb, var(--hb-yj7-accent) 30%, transparent);\n  font-size: 14px;\n  animation: hb-yj7-rise .4s ease both;\n}\n.hb-yj7-stats { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); }\n.hb-yj7-stats b { display: block; font-size: 18px; font-weight: 640; letter-spacing: -.02em; }\n.hb-yj7-stats span { color: #6b6b6b; font-size: 12.5px; }\n.hb-yj7-faces { display: flex; margin-top: 18px; align-items: center; gap: 10px; color: #8f8f8f; font-size: 13px; }\n.hb-yj7-faces i {\n  width: 26px;\n  height: 26px;\n  margin-left: -8px;\n  border-radius: 50%;\n  border: 2px solid #121212;\n}\n.hb-yj7-faces i:first-child { margin-left: 0; }\n@keyframes hb-yj7-rise { to { opacity: 1; transform: none; } }\n@keyframes hb-yj7-spin { to { --hb-yj7-angle: 360deg; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-yj7 *, .hb-yj7 *::before, .hb-yj7 *::after { animation: none !important; transition: none !important; }\n  .hb-yj7-item { opacity: 1; transform: none; }\n}\n`;\n\nconst faces = [\"#f59e0b\", \"#6366f1\", \"#ec4899\", \"#22d3ee\", \"#84cc16\"];\n\nexport function BlogNewsletterIssues({\n  name = \"The Sunday Diff\",\n  title = \"One sharp essay on product and design, every Sunday\",\n  subtitle = \"Short, opinionated and free. Written by the team at Fieldwork for people who make software.\",\n  issues = defaultIssues,\n  subscribers = \"38,400\",\n  cadence = \"Sundays, 7am\",\n  placeholder = \"you@company.com\",\n  buttonLabel = \"Subscribe\",\n  successMessage = \"You are in. Issue 149 lands on Sunday.\",\n  archive = { label: \"Browse all 148 issues\", href: \"#\" },\n  accent = \"#10b981\",\n  onSubscribe,\n  className,\n  style,\n  ...rest\n}: BlogNewsletterIssuesProps) {\n  const [email, setEmail] = React.useState(\"\");\n  const [status, setStatus] = React.useState<\"idle\" | \"error\" | \"loading\" | \"done\">(\"idle\");\n  const [seen, setSeen] = React.useState(false);\n  const listRef = React.useRef<HTMLUListElement>(null);\n  const inputId = React.useId();\n\n  React.useEffect(() => {\n    const el = listRef.current;\n    if (!el) return;\n    const io = new IntersectionObserver(\n      (entries) => {\n        if (entries.some((e) => e.isIntersecting)) {\n          setSeen(true);\n          io.disconnect();\n        }\n      },\n      { threshold: 0.1 },\n    );\n    io.observe(el);\n    return () => io.disconnect();\n  }, []);\n\n  const submit = async (e: React.FormEvent<HTMLFormElement>) => {\n    e.preventDefault();\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email.trim())) {\n      setStatus(\"error\");\n      return;\n    }\n    setStatus(\"loading\");\n    try {\n      await onSubscribe?.(email.trim());\n      setStatus(\"done\");\n    } catch {\n      setStatus(\"error\");\n    }\n  };\n\n  return (\n    <section\n      className={[\"hb-yj7\", seen ? \"hb-yj7-seen\" : \"\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-yj7-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-blog-newsletter-issues\" precedence=\"default\">{css}</style>\n      <div className=\"hb-yj7-inner\">\n        <div>\n          <div className=\"hb-yj7-mast\">\n            <span className=\"hb-yj7-logo\" aria-hidden=\"true\">\n              {name.replace(/^The\\s+/i, \"\").charAt(0)}\n            </span>\n            <span className=\"hb-yj7-name\">\n              {name}\n              <span>Issue {issues[0]?.number ?? 1} is out</span>\n            </span>\n          </div>\n          <h2 className=\"hb-yj7-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-yj7-sub\">{subtitle}</p> : null}\n          <ul className=\"hb-yj7-list\" ref={listRef}>\n            {issues.map((it, i) => (\n              <li key={it.number} className={i === 0 ? \"hb-yj7-item hb-yj7-first\" : \"hb-yj7-item\"} style={{ \"--hb-yj7-i\": i } as React.CSSProperties}>\n                <a className=\"hb-yj7-row\" href={it.href}>\n                  <span className=\"hb-yj7-num\">#{it.number}</span>\n                  <span className=\"hb-yj7-t\">\n                    <span>{it.title}</span>\n                  </span>\n                  <span className=\"hb-yj7-time\">{it.readTime}</span>\n                  <span className=\"hb-yj7-meta\">\n                    {it.date}\n                    {(it.topics ?? []).map((t) => (\n                      <span className=\"hb-yj7-topic\" key={t}>\n                        {t}\n                      </span>\n                    ))}\n                  </span>\n                  <span className=\"hb-yj7-ex\">\n                    <span>\n                      <span>{it.excerpt}</span>\n                    </span>\n                  </span>\n                </a>\n              </li>\n            ))}\n          </ul>\n          {archive ? (\n            <a className=\"hb-yj7-archive\" href={archive.href}>\n              {archive.label}\n              <svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n                <path d=\"M3 8h10m-4-4 4 4-4 4\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n            </a>\n          ) : null}\n        </div>\n        <aside className=\"hb-yj7-box\">\n          <span className=\"hb-yj7-env\" aria-hidden=\"true\">\n            <svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\">\n              <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2.5\" stroke=\"currentColor\" strokeWidth=\"1.6\" />\n              <path d=\"m4 7 8 6 8-6\" stroke=\"currentColor\" strokeWidth=\"1.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n            </svg>\n          </span>\n          <h3>Get the next issue</h3>\n          <p>No tracking pixels, no sponsored takes. Unsubscribe with one click.</p>\n          {status === \"done\" ? (\n            <div className=\"hb-yj7-ok\" role=\"status\">\n              <svg width=\"18\" height=\"18\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n                <path d=\"m5.5 10.3 3 3 6-6.2\" stroke=\"var(--hb-yj7-accent)\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n              </svg>\n              {successMessage}\n            </div>\n          ) : (\n            <form className=\"hb-yj7-form\" onSubmit={submit} noValidate>\n              <label htmlFor={inputId} style={{ position: \"absolute\", width: 1, height: 1, overflow: \"hidden\", clip: \"rect(0 0 0 0)\" }}>\n                Email address\n              </label>\n              <input\n                id={inputId}\n                className=\"hb-yj7-input\"\n                type=\"email\"\n                autoComplete=\"email\"\n                placeholder={placeholder}\n                value={email}\n                aria-invalid={status === \"error\"}\n                onChange={(e) => {\n                  setEmail(e.target.value);\n                  if (status === \"error\") setStatus(\"idle\");\n                }}\n              />\n              <button className=\"hb-yj7-btn\" type=\"submit\" disabled={status === \"loading\"}>\n                {status === \"loading\" ? \"Subscribing…\" : buttonLabel}\n              </button>\n              {status === \"error\" ? (\n                <p className=\"hb-yj7-err\" role=\"alert\">\n                  Please enter a valid email address.\n                </p>\n              ) : null}\n            </form>\n          )}\n          <div className=\"hb-yj7-faces\">\n            <span style={{ display: \"flex\" }} aria-hidden=\"true\">\n              {faces.map((c, i) => (\n                <i key={i} style={{ background: `linear-gradient(135deg, ${c}, #1a1a1a)` }} />\n              ))}\n            </span>\n            Read by designers at 900+ companies\n          </div>\n          <div className=\"hb-yj7-stats\">\n            <div>\n              <b>{subscribers}</b>\n              <span>readers</span>\n            </div>\n            <div>\n              <b>61%</b>\n              <span>open rate</span>\n            </div>\n            <div>\n              <b>{cadence}</b>\n              <span>delivery</span>\n            </div>\n          </div>\n        </aside>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}