CTA 65
edge_to_edge1 ColumnImage/Video BottomText Align CenterImage

Code
relume-cta65.tsx
import { Button, type ButtonProps } from "@/components/ui/button";
type ImageProps = {
src: string;
alt?: string;
};
type Props = {
heading: string;
description: string;
image: ImageProps;
buttons: ButtonProps[];
};
export type Cta65Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Cta65 = (props: Cta65Props) => {
const { heading, description, buttons, image } = {
...Cta65Defaults,
...props,
};
return (
<section>
<div className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="mx-auto max-w-lg text-center">
<h2 className="mb-5 text-h2 font-bold md:mb-6">{heading}</h2>
<p className="text-medium">{description}</p>
<div className="mt-6 flex flex-wrap items-center justify-center gap-4 md:mt-8">
{buttons.map((button, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</div>
</div>
<div>
<img src={image.src} className="size-full rounded-image object-cover" alt={image.alt} />
</div>
</section>
);
};
export const Cta65Defaults: Props = {
heading: "Medium length heading goes here",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
image: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-landscape.svg",
alt: "Relume placeholder image",
},
};npm i @radix-ui/react-checkbox @radix-ui/react-label @radix-ui/react-radio-group @radix-ui/react-select @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 embla-carousel-react@^8.5.2 motion@^12.15.0 relume-icons@1.3.0 tailwind-merge@^2.2.2


