CTA 36
standard2 ColumnsText Align CenterButtonsIconsCTA Section

Code
relume-cta36.tsx
import { RelumeIcon } from "relume-icons";
import { Button, type ButtonProps } from "@/components/ui/button";
type FeatureSection = {
heading: string;
description: string;
buttons: ButtonProps[];
};
type Props = {
featureSections: FeatureSection[];
};
export type Cta36Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Cta36 = (props: Cta36Props) => {
const { featureSections } = {
...Cta36Defaults,
...props,
};
return (
<section className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<div className="grid auto-cols-fr grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:gap-x-16">
{featureSections.map((feature, index) => (
<FeatureSection key={index} {...feature} />
))}
</div>
</div>
</section>
);
};
const FeatureSection = (featureSection: FeatureSection) => (
<div className="flex flex-col items-center justify-center text-center">
<RelumeIcon className="mb-5 size-12 text-scheme-text md:mb-6" />
<h2 className="mb-5 text-h2 font-bold md:mb-6">{featureSection.heading}</h2>
<p>{featureSection.description}</p>
<div className="mt-6 flex flex-wrap items-center justify-center gap-4 md:mt-8">
{featureSection.buttons.map((button, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</div>
);
export const Cta36Defaults: Props = {
featureSections: [
{
heading: "Short heading here",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
},
{
heading: "Short heading here",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
},
],
};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


