Blocks

Layout 164

standard
1 ColumnImage/Video CenterImage/Video TopText Align CenterImageLogos
Layout 164

Code

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

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

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

export const Layout164 = (props: Layout164Props) => {
  const { heading, logos, description, image } = {
    ...Layout164Defaults,
    ...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="w-full">
          <img
            src={image.src}
            className="aspect-video size-full rounded-image object-cover"
            alt={image.alt}
          />
        </div>
        <div className="mt-12 md:mt-18 lg:mt-20">
          <div className="mx-auto w-full max-w-lg">
            <h3 className="mb-5 text-h3 font-bold md:mb-6">{heading}</h3>
            <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>
    </section>
  );
};

export const Layout164Defaults: 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