Header 105
standard1 ColumnText Align LeftButtonsMultiple ImagesImage

Code
relume-header105.tsx
import { Button, type ButtonProps } from "@/components/ui/button";
type Props = {
headingBeforeFirstImage: string;
firstBgUrl: string;
heading: string;
headingBeforeSecondImage: string;
secondBgUrl: string;
headingAfterSecondImage: string;
description: string;
buttons: ButtonProps[];
};
export type Header105Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Header105 = (props: Header105Props) => {
const {
headingBeforeFirstImage,
firstBgUrl,
heading,
headingBeforeSecondImage,
secondBgUrl,
headingAfterSecondImage,
description,
buttons,
} = {
...Header105Defaults,
...props,
};
return (
<section className="relative px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<div className="w-full max-w-xl">
<h1 className="mb-5 text-[1.75rem] leading-[1.2] font-bold sm:text-[2.5rem] md:mb-6 md:text-[3.25rem] lg:text-[5rem]">
<span
className="bg-contain bg-no-repeat pr-16 [background-position-x:100%] [background-position-y:center] sm:pr-[5.75rem] md:pr-[7.5rem] lg:pr-[11.5rem]"
style={{
backgroundImage: `url('${firstBgUrl}')`,
}}
>
{headingBeforeFirstImage}
</span>{" "}
{heading}{" "}
<span
className="bg-contain bg-no-repeat pr-16 [background-position-x:100%] [background-position-y:center] sm:pr-[5.75rem] md:pr-[7.5rem] lg:pr-[11.5rem]"
style={{
backgroundImage: `url('${secondBgUrl}')`,
}}
>
{headingBeforeSecondImage}
</span>{" "}
{headingAfterSecondImage}
</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>
</section>
);
};
export const Header105Defaults: Props = {
headingBeforeFirstImage: "Long",
heading: "heading is what you see here in this",
headingBeforeSecondImage: "header",
headingAfterSecondImage: "section",
firstBgUrl: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-landscape.svg",
secondBgUrl: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-landscape.svg",
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-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


