Gradient Block CTA
Bold gradient block CTA spanning fuchsia, violet, and indigo. Centered white headline and pill button for campaign landing pages, launch weeks, and free-tier promotions. Maximum visual impact section.
Dependencies
react
npm install react react-domexport function GradientBlockCta() {
return (
<section className="rounded-3xl bg-gradient-to-br from-fuchsia-600 via-violet-600 to-indigo-700 px-8 py-16 text-center text-white">
<h2 className="text-3xl font-bold sm:text-4xl">Start building for free</h2>
<p className="mx-auto mt-3 max-w-md text-fuchsia-100">Copy components, paste into Cursor, ship tonight.</p>
<button className="mt-8 rounded-full bg-white px-8 py-3 text-sm font-bold text-violet-700 hover:bg-fuchsia-50">
Open library
</button>
</section>
);
}
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 GradientBlockCta() {
return (
<section className="rounded-3xl bg-gradient-to-br from-fuchsia-600 via-violet-600 to-indigo-700 px-8 py-16 text-center text-white">
<h2 className="text-3xl font-bold sm:text-4xl">Start building for free</h2>
<p className="mx-auto mt-3 max-w-md text-fuchsia-100">Copy components, paste into Cursor, ship tonight.</p>
<button className="mt-8 rounded-full bg-white px-8 py-3 text-sm font-bold text-violet-700 hover:bg-fuchsia-50">
Open library
</button>
</section>
);
}
Replace (Your Desired Section) and (YOUR HEX CODE COLOR) before pasting into Cursor, Copilot, or ChatGPT.