Installation
Run this in a project that already uses shadcn/ui. The CLI adds the block, its components and npm dependencies.
pnpm dlx shadcn@latest add https://ui.sumansharma.info.np/r/call-to-action-2.jsonPrefer to iterate with AI?Open in
Usage
The CLI writes the block to components/call-to-action.tsx. Import it anywhere:
Loading...
Source
The CLI writes this component to components/call-to-action.tsx.
import { Button } from '@/components/ui/button'
import Link from 'next/link'
export default function CallToAction() {
return (
<section className="py-16">
<div className="mx-auto max-w-5xl rounded-3xl border px-6 py-12 md:py-20 lg:py-32">
<div className="text-center">
<h2 className="text-balance text-4xl font-semibold lg:text-5xl">Start Building</h2>
<p className="mt-4">Everything you need to go from first commit to launch day.</p>
<div className="mt-12 flex flex-wrap justify-center gap-4">
<Button asChild size="lg">
<Link href="/">
<span>Get Started</span>
</Link>
</Button>
<Button asChild size="lg" variant="outline">
<Link href="/">
<span>Book Demo</span>
</Link>
</Button>
</div>
</div>
</div>
</section>
)
}