{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-2",
  "type": "registry:block",
  "title": "CTA 2",
  "description": "Dark background CTA with responsive horizontal layout, header, and dual action buttons",
  "dependencies": [
    "react",
    "next",
    "payload"
  ],
  "registryDependencies": [
    "button",
    "@uifoundry/header-field",
    "@uifoundry/call-to-action-pair-field",
    "@uifoundry/block-constants"
  ],
  "files": [
    {
      "path": "registry/payload/blocks/cta/cta-2/index.tsx",
      "content": "/**\n * CTA 2 Component\n *\n * Source: Based on shadcnblocks.com CTA design pattern\n * License: MIT-licensed shadcn pattern\n * Adapted from: User-provided screenshots\n *\n * Modifications:\n * - Integrated with PayloadCMS block system\n * - Replaced hardcoded content with dynamic props\n * - Made fully responsive with mobile-first approach\n */\n\nimport Link from \"next/link\";\n\nimport type { CTA_2_Block } from \"~/payload-types\";\n\nimport { Button } from \"@/registry/ui/button\";\n\nexport * from \"./config\";\n\nexport default function CallToAction2(props: NonNullable<CTA_2_Block>) {\n\tconst primaryAction = props.actions?.[0];\n\tconst secondaryAction = props.actions?.[1];\n\n\treturn (\n\t\t<section className=\"bg-neutral-950 py-16 md:py-20\">\n\t\t\t<div className=\"mx-auto max-w-7xl px-6\">\n\t\t\t\t<div className=\"flex flex-col items-center text-center gap-6 md:flex-row md:justify-between md:text-left md:items-center\">\n\t\t\t\t\t<h2 className=\"text-3xl font-bold text-white text-balance lg:text-4xl md:max-w-2xl\">\n\t\t\t\t\t\t{props.header}\n\t\t\t\t\t</h2>\n\n\t\t\t\t\t<div className=\"flex flex-col items-center gap-4 md:flex-row md:items-center md:gap-6 shrink-0\">\n\t\t\t\t\t\t{secondaryAction && (\n\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\thref={secondaryAction.href ?? \"/\"}\n\t\t\t\t\t\t\t\tclassName=\"text-white hover:text-white/80 transition-colors text-sm md:text-base\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{secondaryAction.label ?? \"Learn more\"}\n\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{primaryAction && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tasChild\n\t\t\t\t\t\t\t\tsize=\"lg\"\n\t\t\t\t\t\t\t\tclassName=\"bg-white text-black hover:bg-white/90\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Link href={primaryAction.href ?? \"/\"}>\n\t\t\t\t\t\t\t\t\t<span>{primaryAction.label ?? \"Get started\"}</span>\n\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</section>\n\t);\n}\n",
      "type": "registry:component",
      "target": "src/payload/blocks/CTA/CTA_2/index.tsx"
    },
    {
      "path": "registry/payload/blocks/cta/cta-2/config.ts",
      "content": "import type { Block } from \"payload\";\n\nimport { BLOCK_GROUP_CTA, BLOCK_SLUG_CTA_2 } from \"@/registry/default/lib/constants/blocks\";\nimport callToActionPair from \"@/registry/default/lib/fields/callToActionPair/config\";\nimport headerField from \"@/registry/default/lib/fields/header/config\";\n\nexport const CTA_2_Block: Block = {\n\tslug: BLOCK_SLUG_CTA_2,\n\tadmin: {\n\t\tgroup: BLOCK_GROUP_CTA,\n\t},\n\tfields: [\n\t\theaderField({\n\t\t\tdefaultValue: \"Action-driving headline that creates urgency\",\n\t\t}),\n\t\tcallToActionPair({\n\t\t\tadmin: {\n\t\t\t\tinitCollapsed: true,\n\t\t\t},\n\t\t\tdefaultValue: [\n\t\t\t\t{\n\t\t\t\t\thref: \"\",\n\t\t\t\t\tlabel: \"Get started\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\thref: \"\",\n\t\t\t\t\tlabel: \"Learn more\",\n\t\t\t\t},\n\t\t\t],\n\t\t}),\n\t],\n\tinterfaceName: \"CTA_2_Block\",\n\tlabels: {\n\t\tplural: \"CTA 2's\",\n\t\tsingular: \"CTA 2\",\n\t},\n};\n",
      "type": "registry:component",
      "target": "src/payload/blocks/CTA/CTA_2/config.ts"
    }
  ]
}