Blocks

Layout 206

standard
2 ColumnsText Align LeftImage/Video LeftImageLogosBenefits Section
Layout 206

Code

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

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

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

export const Layout206 = (props: Layout206Props) => {
  const { heading, description, image, logos } = {
    ...Layout206Defaults,
    ...props,
  };
  return (
    <section className="px-[5%] py-16 md:py-24 lg:py-28">
      <div className="container">
        <div className="grid grid-cols-1 items-center gap-12 md:grid-cols-2 lg:gap-x-20">
          <div className="order-2 md:order-1">
            <img src={image.src} className="w-full rounded-image object-cover" alt={image.alt} />
          </div>
          <div className="order-1 md:order-2">
            <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 gap-x-8 gap-y-6 py-2">
              {logos.map((logo, index) => (
                <img key={index} src={logo.src} alt={logo.alt} className="max-h-12" />
              ))}
            </div>
          </div>
        </div>
      </div>
    </section>
  );
};

export const Layout206Defaults: 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.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 @radix-ui/react-tabs class-variance-authority@0.7.1 clsx@^2.1.1 relume-icons@1.3.0 tailwind-merge@^2.2.2