CTA 43
cardText Align Left1 ColumnCardsButtonsBackground VideoCTA Section

Code
relume-cta43.tsx
import { BackgroundCard } from "@/components/ui/card";
import { Button, type ButtonProps } from "@/components/ui/button";
type Props = {
heading: string;
description: string;
buttons: ButtonProps[];
video: string;
videoType: string;
};
export type Cta43Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Cta43 = (props: Cta43Props) => {
const { heading, description, buttons, video, videoType } = {
...Cta43Defaults,
...props,
};
return (
<section className="px-[5%] py-16 md:py-24 lg:py-28">
<BackgroundCard className="relative container">
<div className="relative z-10 flex flex-col justify-center p-8 md:p-12 lg:p-16">
<div className="w-full max-w-lg">
<h2 className="mb-5 text-h2 font-bold text-white md:mb-6">{heading}</h2>
<p className="text-medium text-white">{description}</p>
</div>
<div className="mt-6 flex flex-wrap items-center gap-4 md:mt-8">
{buttons.map((button, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</div>
<div className="absolute inset-0 z-0">
<video
className="absolute inset-0 aspect-video size-full object-cover"
autoPlay
loop
muted
>
<source src={video} type={videoType} />
</video>
<div className="absolute inset-0 bg-neutral-darkest/50" />
</div>
</BackgroundCard>
</section>
);
};
export const Cta43Defaults: 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", variant: "alternate" },
{ title: "Button", variant: "secondary-alt" },
],
video: "https://d22po4pjz3o32e.cloudfront.net/placeholder-video.mp4",
videoType: "video/mp4",
};npm i @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 motion@^12.15.0 relume-icons@1.3.0 tailwind-merge@^2.2.2


