Header 127
overlappingText Align Left2 ColumnsButtonsImageMultiple ImagesOverlapping Images

Code
relume-header127.tsx
import { Button, type ButtonProps } from "@/components/ui/button";
type ImageProps = {
src: string;
alt?: string;
};
type Props = {
heading: string;
description: string;
buttons: ButtonProps[];
firstImage: ImageProps;
secondImage: ImageProps;
thirdImage: ImageProps;
};
export type Header127Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Header127 = (props: Header127Props) => {
const { heading, description, buttons, firstImage, secondImage, thirdImage } = {
...Header127Defaults,
...props,
};
return (
<section className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<div className="grid grid-cols-1 items-center gap-12 md:grid-cols-2 md:gap-16">
<div>
<h1 className="mb-5 text-h1 font-bold md:mb-6">{heading}</h1>
<p className="text-medium">{description}</p>
<div className="mt-6 flex flex-wrap gap-4 md:mt-8">
{buttons.map((button, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</div>
<div className="relative flex w-full">
<div className="absolute top-auto right-auto bottom-[10%] left-0 w-[45%]">
<img
src={firstImage.src}
className="aspect-[3/2] size-full rounded-image object-cover"
alt={firstImage.alt}
/>
</div>
<div className="mx-[15%] w-full">
<img
src={secondImage.src}
className="aspect-[2/3] size-full rounded-image object-cover"
alt={secondImage.alt}
/>
</div>
<div className="absolute top-[10%] right-0 bottom-auto left-auto w-[40%]">
<img
src={thirdImage.src}
className="aspect-square size-full rounded-image object-cover"
alt={thirdImage.alt}
/>
</div>
</div>
</div>
</div>
</section>
);
};
export const Header127Defaults: Props = {
heading: "Medium length hero heading goes here",
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, ut commodo diam libero vitae erat.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
firstImage: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-landscape-dim.png",
alt: "Relume placeholder image 1",
},
secondImage: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg",
alt: "Relume placeholder image 2",
},
thirdImage: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-portrait-dim.png",
alt: "Relume placeholder image 3",
},
};npm i @radix-ui/react-dialog @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


