Header 122



<section id="relume" class="px-[5%] py-16 md:py-24 lg:py-28">
<div class="container">
<div class="ml-[5%]">
<div class="mb-12 w-full max-w-lg md:mb-18 lg:mb-20">
<h2 class="mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl">
Long heading is what you see here in this header section
</h2>
<p class="md:text-md">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros
elementum tristique.
</p>
<div class="mt-6 flex gap-x-4 md:mt-8">
<button
class="focus-visible:ring-border-primary inline-flex gap-3 items-center justify-center whitespace-nowrap ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-border-primary bg-background-alternative text-text-alternative px-6 py-3"
title="Button"
>
Button</button
><button
class="focus-visible:ring-border-primary inline-flex gap-3 items-center justify-center whitespace-nowrap ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border border-border-primary text-text-primary bg-background-primary px-6 py-3"
title="Button"
>
Button
</button>
</div>
</div>
</div>
<div
class="grid auto-cols-fr grid-cols-1 items-end gap-6 sm:grid-cols-[1fr_0.4fr_0.4fr] sm:gap-8"
>
<div class="my-[15%] w-full">
<img
class="aspect-[3/2] size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg"
alt="Relume placeholder image 1"
/>
</div>
<div class="w-full">
<img
class="aspect-square size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg"
alt="Relume placeholder image 2"
/>
</div>
<div class="w-full self-start">
<img
class="aspect-[3/4] size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg"
alt="Relume placeholder image 3"
/>
</div>
</div>
</div>
</section>
import { Button } from "@relume_io/relume-ui";
import type { ButtonProps } from "@relume_io/relume-ui";
type ImageProps = {
src: string;
alt?: string;
};
type Props = {
heading: string;
description: string;
buttons: ButtonProps[];
firstImage: ImageProps;
secondImage: ImageProps;
thirdImage: ImageProps;
};
export type Header122Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Header122 = (props: Header122Props) => {
const { heading, description, buttons, firstImage, secondImage, thirdImage } = {
...Header122Defaults,
...props,
};
return (
<section id="relume" className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<div className="ml-[5%]">
<div className="mb-12 w-full max-w-lg md:mb-18 lg:mb-20">
<h2 className="mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl">{heading}</h2>
<p className="md:text-md">{description}</p>
<div className="mt-6 flex gap-x-4 md:mt-8">
{buttons.map((button: ButtonProps, index) => (
<Button key={index} {...button}>
{button.title}
</Button>
))}
</div>
</div>
</div>
<div className="grid auto-cols-fr grid-cols-1 items-end gap-6 sm:grid-cols-[1fr_0.4fr_0.4fr] sm:gap-8">
<div className="my-[15%] w-full">
<img
className="aspect-[3/2] size-full object-cover"
src={firstImage.src}
alt={firstImage.alt}
/>
</div>
<div className="w-full">
<img
className="aspect-square size-full object-cover"
src={secondImage.src}
alt={secondImage.alt}
/>
</div>
<div className="w-full self-start">
<img
className="aspect-[3/4] size-full object-cover"
src={thirdImage.src}
alt={thirdImage.alt}
/>
</div>
</div>
</div>
</section>
);
};
export const Header122Defaults: Props = {
heading: "Long heading is what you see here in this header section",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
buttons: [{ title: "Button" }, { title: "Button", variant: "secondary" }],
firstImage: {
src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg",
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.svg",
alt: "Relume placeholder image 3",
},
};
Need help?
For installation guidelines and API information, visit the docs.
Examples
No items found.