Split Row CTA
Split row CTA card: headline and social proof on the left, account creation button on the right. Responsive stack on mobile, horizontal on desktop. Ideal for mid-page conversion blocks and footer CTAs.
Dependencies
react
npm install react react-domexport function SplitRowCta() {
return (
<div className="flex flex-col gap-4 rounded-2xl border border-zinc-200 bg-zinc-50 p-6 sm:flex-row sm:items-center sm:justify-between">
<div>
<h3 className="text-lg font-semibold text-zinc-900">Ready to ship?</h3>
<p className="text-sm text-zinc-600">Join 12,000+ developers using TetraKits UI.</p>
</div>
<button className="shrink-0 rounded-xl bg-zinc-900 px-5 py-2.5 text-sm font-semibold text-white">Create account</button>
</div>
);
}
Please implement this code in the current project and add it to (Your Desired Section, e.g. homepage hero, pricing page, dashboard). Change the primary accent color to (YOUR HEX CODE COLOR, e.g. #6366F1).
Requirements:
- Use React + Tailwind CSS (match the project's existing setup)
- Install dependencies if needed: npm install react react-dom
- Keep the layout responsive on mobile and desktop
- Replace placeholder copy with content that fits the project
The UI code:
export function SplitRowCta() {
return (
<div className="flex flex-col gap-4 rounded-2xl border border-zinc-200 bg-zinc-50 p-6 sm:flex-row sm:items-center sm:justify-between">
<div>
<h3 className="text-lg font-semibold text-zinc-900">Ready to ship?</h3>
<p className="text-sm text-zinc-600">Join 12,000+ developers using TetraKits UI.</p>
</div>
<button className="shrink-0 rounded-xl bg-zinc-900 px-5 py-2.5 text-sm font-semibold text-white">Create account</button>
</div>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.