Layout 273
background3 ColumnsText Align LeftImage/Video CenterButtonsBackground ImageIcons

Code
relume-layout273.tsx
import { Button, type ButtonProps } from "@/components/ui/button";
import { ChevronRight } from "relume-icons";
type ImageProps = {
src: string;
alt?: string;
};
type SectionProps = {
heading: string;
description: string;
button: ButtonProps;
icon: ImageProps;
};
type Props = {
sections: SectionProps[];
heading: string;
image: ImageProps;
};
export type Layout273Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Layout273 = (props: Layout273Props) => {
const { sections, heading, image } = {
...Layout273Defaults,
...props,
};
return (
<section className="relative px-[5%] py-16 md:py-24 lg:py-28">
<div className="relative z-10 container">
<div className="mb-12 max-w-lg md:mb-18 lg:mb-20">
<h2 className="mb-5 text-h3 font-bold text-white md:mb-6">{heading}</h2>
</div>
<div className="grid grid-cols-1 items-start gap-y-12 md:grid-cols-3 md:gap-x-8 md:gap-y-16 lg:gap-x-12">
{sections.map((section, index) => (
<div key={index} className="w-full">
<img
src={section.icon.src}
className="mb-5 inline-block size-12 h-12 md:mb-6"
alt={section.icon.alt}
/>
<div>
<h3 className="mb-5 text-h5 font-bold text-white md:mb-6">{section.heading}</h3>
<p className="text-white">{section.description}</p>
</div>
<div className="mt-6 md:mt-8">
<Button {...section.button}>{section.button.title}</Button>
</div>
</div>
))}
</div>
</div>
<div className="absolute inset-0 z-0">
<img src={image.src} className="size-full object-cover" alt={image.alt} />
<div className="absolute inset-0 bg-neutral-darkest/50" />
</div>
</section>
);
};
export const Layout273Defaults: Props = {
sections: [
{
heading: "Long heading is what you see here in this feature section",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla.",
button: {
title: "Button",
variant: "link-alt",
size: "link",
iconRight: <ChevronRight className="text-white" />,
},
icon: {
src: "https://d22po4pjz3o32e.cloudfront.net/relume-icon-white.svg",
alt: "Relume logo 1",
},
},
{
heading: "Long heading is what you see here in this feature section",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla.",
button: {
title: "Button",
variant: "link-alt",
size: "link",
iconRight: <ChevronRight className="text-white" />,
},
icon: {
src: "https://d22po4pjz3o32e.cloudfront.net/relume-icon-white.svg",
alt: "Relume logo 2",
},
},
{
heading: "Long heading is what you see here in this feature section",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla.",
button: {
title: "Button",
variant: "link-alt",
size: "link",
iconRight: <ChevronRight className="text-white" />,
},
icon: {
src: "https://d22po4pjz3o32e.cloudfront.net/relume-icon-white.svg",
alt: "Relume logo 3",
},
},
],
heading: "Long heading is what you see here in this feature section",
image: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg",
alt: "Relume placeholder background image",
},
};npm i @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 relume-icons@1.3.0 tailwind-merge@^2.2.2


