cta-3

PreviousNext

Stylish call-to-action block featuring bordered layout, decorative icons, and clear buttons for contacting sales or getting started.

Docs
efferdblock

Preview

Loading preview…
registry/cta/3/cta.tsx
import { Button } from "@/components/ui/button";
import { ArrowRightIcon, PlusIcon } from "lucide-react";

export function CallToAction() {
	return (
		<div className="relative mx-auto flex w-full max-w-3xl flex-col justify-between gap-y-4 border-y px-4 py-8 dark:bg-[radial-gradient(35%_80%_at_25%_0%,--theme(--color-foreground/.08),transparent)]">
			<PlusIcon
				className="absolute top-[-12.5px] left-[-11.5px] z-1 size-6"
				strokeWidth={1}
			/>
			<PlusIcon
				className="absolute top-[-12.5px] right-[-11.5px] z-1 size-6"
				strokeWidth={1}
			/>
			<PlusIcon
				className="absolute bottom-[-12.5px] left-[-11.5px] z-1 size-6"
				strokeWidth={1}
			/>
			<PlusIcon
				className="absolute right-[-11.5px] bottom-[-12.5px] z-1 size-6"
				strokeWidth={1}
			/>

			<div className="-inset-y-6 pointer-events-none absolute left-0 w-px border-l" />
			<div className="-inset-y-6 pointer-events-none absolute right-0 w-px border-r" />

			<div className="-z-10 absolute top-0 left-1/2 h-full border-l border-dashed" />

			<h2 className="text-center font-semibold text-xl md:text-3xl">
				Start for Free Today!
			</h2>
			<p className="text-balance text-center font-medium text-muted-foreground text-sm md:text-base">
				Begin your 6-day free trial today to fully explore and experience all
				the features and benefits we offer.
			</p>

			<div className="flex items-center justify-center gap-2">
				<Button variant="outline">Contact Sales</Button>
				<Button>
					Get Started <ArrowRightIcon />
				</Button>
			</div>
		</div>
	);
}

Installation

npx shadcn@latest add @efferd/cta-3

Usage

import { Cta3 } from "@/components/cta-3"
<Cta3 />