Support
All support for the Relume is provided through Slack. To get assistance, please join our Slack community and send a preview link of your Webflow project along with a description of your problem to one of our experts. We will review your issue and guide you through a solution.

For account-related issues, please contact support@relume.io.
We're performing some maintenance. If you're experiencing any issues please reach out via Slack
Go to Slack
Your payment method has expired. Update your billing details to regain access to premium features.
Manage Billing
Now open!
Vote on new
Relume components
Vote on what components you'd like to see added to our roadmap next month.
Get started

Event Item Header 10

import * as React from "react";
import {
  Button,
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbLink,
  BreadcrumbList,
  BreadcrumbSeparator,
} from "@relume_io/relume-ui";
import type { ButtonProps } from "@relume_io/relume-ui";

type ImageProps = {
  src: string;
  alt?: string;
};

type BreadcrumbProps = {
  url: string;
  title: string;
};

type Date = {
  weekday: string;
  day: string;
  month: string;
  year: string | null;
};

type Props = {
  breadcrumbs: BreadcrumbProps[];
  heading: string;
  description: string;
  image: ImageProps;
  buttons: ButtonProps[];
  date: Date;
  location: string;
  speaker: string;
  type: string;
};

export type EventItemHeader10Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;

export const EventItemHeader10 = (props: EventItemHeader10Props) => {
  const { breadcrumbs, heading, description, image, buttons, date, location, speaker, type } = {
    ...EventItemHeader10Defaults,
    ...props,
  };
  return (
    <section id="relume" className="relative px-[5%] py-16 md:py-24 lg:py-28">
      <div className="container relative z-10">
        <div className="grid grid-cols-1 items-start gap-12 text-text-alternative md:grid-cols-[1.5fr_1fr] lg:gap-20">
          <div className="flex flex-col items-start">
            <Breadcrumb className="flex w-full items-center">
              <BreadcrumbList>
                {breadcrumbs.map((item, index) => (
                  <React.Fragment key={index}>
                    <BreadcrumbItem className="text-text-alternative">
                      <BreadcrumbLink href={item.url}>{item.title}</BreadcrumbLink>
                    </BreadcrumbItem>
                    {index < breadcrumbs.length - 1 && (
                      <BreadcrumbSeparator className="text-text-alternative" />
                    )}
                  </React.Fragment>
                ))}
              </BreadcrumbList>
            </Breadcrumb>
            <h1 className="mt-8 text-5xl font-bold md:text-7xl lg:text-8xl">{heading}</h1>
            <p className="mt-5 text-base md:mt-6 md:text-md">{description}</p>
            <div className="mt-6 flex flex-wrap items-center gap-4 md:mt-8">
              {buttons.map((button, index) => (
                <Button key={index} {...button}>
                  {button.title}
                </Button>
              ))}
            </div>
          </div>
          <div className="grid grid-cols-2 gap-8">
            <div>
              <h6 className="mb-2 text-md font-bold leading-[1.4] md:text-xl">Date</h6>
              {date.weekday} {date.day} {date.month} {date.year}
            </div>
            <div>
              <h6 className="mb-2 text-md font-bold leading-[1.4] md:text-xl">Location</h6>
              {location}
            </div>
            <div>
              <h6 className="mb-2 text-md font-bold leading-[1.4] md:text-xl">Speaker</h6>
              {speaker}
            </div>
            <div>
              <h6 className="mb-2 text-md font-bold leading-[1.4] md:text-xl">Type</h6>
              {type}
            </div>
          </div>
        </div>
      </div>
      <div className="absolute inset-0 z-0">
        <img src={image.src} className="size-full object-cover" alt={image.alt} />
        <div className="absolute inset-0 bg-black/50" />
      </div>
    </section>
  );
};

export const EventItemHeader10Defaults: Props = {
  breadcrumbs: [
    { url: "#", title: "Events" },
    { url: "#", title: "Event title" },
  ],
  heading: "Event title heading",
  description:
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
  image: {
    src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image.svg",
    alt: "Relume placeholder image",
  },
  buttons: [{ title: "Save my spot" }, { title: "View event", variant: "secondary-alt" }],
  date: {
    weekday: "Sat",
    day: "10",
    month: "Feb",
    year: "2024",
  },
  location: "Sydney, Australia",
  speaker: "Full name",
  type: "In-person",
};
You need to be logged in to view the code.
Get the code
Upgrade your plan to view the code.
Upgrade
Details
Last updated
April 1, 2025
React version
18
Tailwind version
3.4
Need help?
For installation guidelines and API information, visit the docs.
Examples
No items found.