{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "newsletter-2",
  "type": "registry:block",
  "title": "Newsletter 2",
  "description": "Newsletter panel with a pill email form and a list of subscriber perks.",
  "registryDependencies": [
    "button",
    "input",
    "label"
  ],
  "files": [
    {
      "path": "app/preview/newsletter/two/page.tsx",
      "content": "'use client'\n\nimport { useState } from 'react'\nimport { ArrowRight, BookOpen, Check, Rocket, Zap } from 'lucide-react'\nimport { Button } from '@/components/ui/button'\nimport { Input } from '@/components/ui/input'\nimport { Label } from '@/components/ui/label'\n\nconst perks = [\n    { icon: Rocket, title: 'Release notes first', body: 'Hear about new features a week before the public launch.' },\n    { icon: BookOpen, title: 'Deep-dive guides', body: 'Long-form tutorials written by the people who built it.' },\n    { icon: Zap, title: 'Five-minute read', body: 'Short, skimmable and sent once every two weeks.' },\n]\n\nexport default function Newsletter() {\n    const [done, setDone] = useState(false)\n\n    return (\n        <section className=\"py-16 md:py-24\">\n            <div className=\"mx-auto max-w-6xl px-6\">\n                <div className=\"bg-muted/40 relative isolate overflow-hidden rounded-3xl border p-8 sm:p-12 lg:p-16\">\n                    <div\n                        aria-hidden\n                        className=\"absolute inset-0 -z-10 bg-[radial-gradient(var(--color-border)_1px,transparent_1px)] [background-size:18px_18px] [mask-image:linear-gradient(to_left,#000,transparent_70%)]\"\n                    />\n                    <div className=\"grid gap-12 lg:grid-cols-2 lg:items-center\">\n                        <div>\n                            <h2 className=\"text-balance text-3xl font-semibold sm:text-4xl\">Stay ahead of every release</h2>\n                            <p className=\"text-muted-foreground mt-4 max-w-md text-pretty\">Join the newsletter for product updates, engineering stories and early access to what we ship next.</p>\n\n                            {done ? (\n                                <p\n                                    role=\"status\"\n                                    className=\"mt-8 flex items-center gap-2 font-medium\">\n                                    <Check className=\"size-5 text-emerald-600 dark:text-emerald-400\" />\n                                    You are on the list.\n                                </p>\n                            ) : (\n                                <form\n                                    onSubmit={(e) => {\n                                        e.preventDefault()\n                                        setDone(true)\n                                    }}\n                                    className=\"bg-background mt-8 flex max-w-md items-center gap-1 rounded-full border p-1 shadow-sm focus-within:ring-2 focus-within:ring-ring/40\">\n                                    <Label\n                                        htmlFor=\"newsletter-email-2\"\n                                        className=\"sr-only\">\n                                        Email address\n                                    </Label>\n                                    <Input\n                                        id=\"newsletter-email-2\"\n                                        type=\"email\"\n                                        required\n                                        autoComplete=\"email\"\n                                        placeholder=\"Enter your email\"\n                                        className=\"h-10 border-0 bg-transparent pl-4 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0\"\n                                    />\n                                    <Button\n                                        type=\"submit\"\n                                        className=\"group h-10 shrink-0 rounded-full px-5\">\n                                        Join\n                                        <ArrowRight className=\"size-4 transition-transform group-hover:translate-x-0.5\" />\n                                    </Button>\n                                </form>\n                            )}\n                        </div>\n\n                        <ul className=\"space-y-6\">\n                            {perks.map(({ icon: Icon, title, body }) => (\n                                <li\n                                    key={title}\n                                    className=\"flex gap-4\">\n                                    <span className=\"bg-background flex size-10 shrink-0 items-center justify-center rounded-lg border shadow-sm\">\n                                        <Icon className=\"size-4\" />\n                                    </span>\n                                    <div>\n                                        <h3 className=\"font-medium\">{title}</h3>\n                                        <p className=\"text-muted-foreground mt-1 text-sm\">{body}</p>\n                                    </div>\n                                </li>\n                            ))}\n                        </ul>\n                    </div>\n                </div>\n            </div>\n        </section>\n    )\n}\n",
      "type": "registry:component",
      "target": "components/newsletter-2.tsx"
    }
  ]
}