Gallery Section 1

PreviousNext

Image gallery section with aspect ratio control

Docs
shadcndesigncomponent

Preview

Loading preview…
components/pro-blocks/landing-page/gallery-sections/gallery-section-1.tsx
"use client";

import { AspectRatio } from "@/components/ui/aspect-ratio";
import Image from "next/image";
import { Tagline } from "@/components/pro-blocks/landing-page/tagline";

export function GallerySection1() {
  return (
    <section className="bg-background section-padding-y">
      <div className="container-padding-x container mx-auto flex flex-col gap-10 md:gap-12">
        <div className="section-title-gap-lg mx-auto flex max-w-xl flex-col items-center text-center">
          <Tagline>Gallery section</Tagline>
          <h2 className="heading-lg text-foreground">
            Showcase your product with a gallery of images
          </h2>
          <p className="text-muted-foreground text-base">
            This section is a great way to showcase your product with a gallery
            of images. You can use this section to showcase your product in a
            more engaging way.
          </p>
        </div>
        <AspectRatio ratio={16 / 9}>
          <Image
            src="https://ui.shadcn.com/placeholder.svg"
            alt="Hero image"
            fill
            className="h-full w-full object-cover"
          />
        </AspectRatio>
      </div>
    </section>
  );
}

Installation

npx shadcn@latest add @shadcndesign/gallery-section-1

Usage

import { GallerySection1 } from "@/components/gallery-section-1"
<GallerySection1 />