Blocks

Layout 150

standard
1 ColumnImage/Video CenterImage/Video BottomText Align CenterImageLogos
Layout 150

Code

relume-layout150.tsx
type ImageProps = {
  src: string;
  alt?: string;
};

type Props = {
  heading: string;
  description: string;
  logos: ImageProps[];
  image: ImageProps;
};

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

export const Layout150 = (props: Layout150Props) => {
  const { heading, logos, description, image } = {
    ...Layout150Defaults,
    ...props,
  };
  return (
    <section className="px-[5%] py-16 md:py-24 lg:py-28">
      <div className="container flex flex-col items-center text-center">
        <div className="mb-12 md:mb-18 lg:mb-20">
          <div className="mx-auto w-full max-w-lg">
            <h2 className="mb-5 text-h3 font-bold md:mb-6">{heading}</h2>
            <p className="mb-5 text-medium md:mb-6">{description}</p>
            <div className="flex flex-wrap items-center justify-center gap-x-8 gap-y-6 py-2">
              {logos.map((logo, index) => (
                <img key={index} src={logo.src} alt={logo.alt} className="max-h-14" />
              ))}
            </div>
          </div>
        </div>
        <div className="w-full">
          <img
            src={image.src}
            className="aspect-video size-full rounded-image object-cover"
            alt={image.alt}
          />
        </div>
      </div>
    </section>
  );
};

export const Layout150Defaults: Props = {
  heading: "Long heading is what you see here in this feature section",
  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.",

  image: {
    src: "https://d22po4pjz3o32e.cloudfront.net/placeholder-image-landscape.svg",
    alt: "Relume placeholder image",
  },
  logos: [
    { src: "https://d22po4pjz3o32e.cloudfront.net/webflow-logo.svg", alt: "Webflow logo 1" },
    { src: "https://d22po4pjz3o32e.cloudfront.net/relume-logo.svg", alt: "Relume logo 1" },
    { src: "https://d22po4pjz3o32e.cloudfront.net/webflow-logo.svg", alt: "Webflow logo 2" },
    { src: "https://d22po4pjz3o32e.cloudfront.net/relume-logo.svg", alt: "Relume logo 2" },
  ],
};

npm i @radix-ui/react-dialog @radix-ui/react-slot class-variance-authority@0.7.1 clsx@^2.1.1 relume-icons@1.3.0 tailwind-merge@^2.2.2