Header 135



<section id="relume" class="px-[5%] py-16 md:py-24 lg:py-28">
<div class="container">
<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 class="relative flex">
<div class="absolute bottom-[10%] left-0 w-1/4">
<img
class="aspect-square size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image-portrait-dim.png"
alt="Relume placeholder image 1"
/>
</div>
<div class="mx-[10%] mt-[5%] w-full">
<img
class="aspect-[3/2] size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg"
alt="Relume placeholder image 2"
/>
</div>
<div class="absolute right-0 top-0 w-1/4">
<img
class="aspect-[2/3] size-full object-cover"
src="https://d22po4pjz3o32e.cloudfront.net/placeholder-image-portrait-dim.png"
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 Header135Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;
export const Header135 = (props: Header135Props) => {
const { heading, description, buttons, firstImage, secondImage, thirdImage } = {
...Header135Defaults,
...props,
};
return (
<section id="relume" className="px-[5%] py-16 md:py-24 lg:py-28">
<div className="container">
<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 className="relative flex">
<div className="absolute bottom-[10%] left-0 w-1/4">
<img
className="aspect-square size-full object-cover"
src={firstImage.src}
alt={firstImage.alt}
/>
</div>
<div className="mx-[10%] mt-[5%] w-full">
<img
className="aspect-[3/2] size-full object-cover"
src={secondImage.src}
alt={secondImage.alt}
/>
</div>
<div className="absolute right-0 top-0 w-1/4">
<img
className="aspect-[2/3] size-full object-cover"
src={thirdImage.src}
alt={thirdImage.alt}
/>
</div>
</div>
</div>
</section>
);
};
export const Header135Defaults: 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-portrait-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",
},
};
Need help?
For installation guidelines and API information, visit the docs.
Examples
No items found.