Layout 270
background3 ColumnsText Align CenterImage/Video CenterButtonsBackground VideoIcons

Code
relume-layout270.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;
video: string;
videoType: string;
};
export type Layout270Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Layout270 = (props: Layout270Props) => {
const { sections, heading, video, videoType } = {
...Layout270Defaults,
...props,
};
return (
<section className="relative px-[5%] py-16 md:py-24 lg:py-28">
<div className="relative z-10 container">
<div className="mx-auto mb-12 max-w-lg text-center 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 text-center">
<div className="mb-5 h-12 md:mb-6">
<div className="inline-block">
<img src={section.icon.src} className="size-12" alt={section.icon.alt} />
</div>
</div>
<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 className="mt-6 md:mt-8">
<Button {...section.button}>{section.button.title}</Button>
</div>
</div>
</div>
))}
</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>
</section>
);
};
export const Layout270Defaults: 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",
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 relume-icons@1.3.0 tailwind-merge@^2.2.2


