CTA 3
uifoundry/cta-3FreeBlock
Vibrant gradient background CTA with centered layout and two CTA buttons
Live preview
live · rendered by the registry
Rendered by uifoundry on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uifoundry.dev/r/cta-3.jsonSource
1/**2 * CTA 3 Component3 *4 * Source: Custom gradient design for UIFoundry5 * License: MIT6 * Created: 2025-10-317 *8 * Design:9 * - Vibrant gradient background for high impact10 * - Centered layout for focus11 * - Modern button styling with good contrast12 */1314import Link from "next/link";1516import type { CTA_3_Block } from "~/payload-types";1718import { Button } from "@/registry/ui/button";1920export * from "./config";2122export default function CallToAction3(props: NonNullable<CTA_3_Block>) {23 return (24 <section className="relative overflow-hidden bg-gradient-to-br from-blue-600 via-purple-600 to-pink-600 py-20 md:py-32">25 {/* Gradient overlay for depth */}26 <div className="absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" />2728 <div className="relative mx-auto max-w-4xl px-6">29 <div className="text-center">30 <h2 className="text-4xl font-bold text-white text-balance lg:text-5xl xl:text-6xl">31 {props.header}32 </h2>3334 {props.subheader && (35 <p className="mt-6 text-lg text-white/90 text-balance md:text-xl">36 {props.subheader}37 </p>38 )}3940 <div className="mt-10 flex flex-col gap-4 sm:flex-row sm:justify-center sm:gap-4">41 {(props.actions ?? []).map((action, index) => {42 const isSecondary = index === 1;4344 return (45 <Button46 asChild47 key={`CTA_3_Block-action-${index}`}48 size="lg"49 variant={isSecondary ? "outline" : "default"}50 className={51 isSecondary52 ? "border-2 border-white bg-transparent text-white hover:bg-white hover:text-purple-600"53 : "bg-white text-purple-600 hover:bg-white/90"54 }55 >56 <Link href={action.href ?? "/"}>57 <span>{action.label ?? "Get Started"}</span>58 </Link>59 </Button>60 );61 })}62 </div>63 </div>64 </div>65 </section>66 );67}
What it pulls in
npm packages
Other registry items
Files it writes
More from uifoundry
All 54 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Color Fieldcolor-field | uifoundry | Blocks | Free | 4 deps · 2 files | |
| Coming Soon 1coming-soon-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| CTA 1cta-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| CTA 2cta-2 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| Custom Headercustom-header | uifoundry | Blocks | Free | 4 deps · 3 files | |
| Features 1features-1 | uifoundry | Blocks | Free | 3 deps · 2 files | |
| Features 2features-2 | uifoundry | Blocks | Free | 4 deps · 2 files | |
| Features 3features-3 | uifoundry | Blocks | Free | 4 deps · 2 files |
