# Marketing Gallery: Portfolio Gallery

A portfolio layout that pairs project images with titles and short notes. Use it to present work, case studies, or a creative showcase to clients.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/portfolio-gallery
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/portfolio-gallery.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-gallery-portfolio-gallery
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-gallery-portfolio-gallery.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/gallery/portfolio-gallery`

## About this block

Portfolio Gallery opens with a centered "Design Portfolio" heading and a row
of pill-shaped filter buttons, one for each category derived from the image
set plus an "All Projects" catch-all. Below that sits a responsive grid that
scales from one column on mobile to three on wide screens. Each card is a
rounded image tile whose size varies: large items span two columns, medium
items take one, and small items fill the remaining space. Hovering a card
fades in a dark blurred overlay that shows the image description, a category
badge, and a "View Project" button.

The heading, category labels, and images are all independent. You can add or
remove images, rename categories, and the filter row updates automatically
from whatever categories exist in the data. The grid adjusts its own column
spans based on each item's size value, so reordering or replacing items does
not require layout changes elsewhere.

## When to use

Reach for this block when you need to show a body of completed work and let
visitors narrow it down without leaving the page. For a logistics and delivery
platform it works well as a case study gallery, letting prospects filter by
service type (last-mile, warehousing, cross-border) to find relevant
examples. It is a better fit than a plain grid when you have three or more
distinct categories and want the filter controls close to the images rather
than in a sidebar.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- A [hero section](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections) to introduce the service
  and set expectation before the work is shown
- [Stats](https://www.shadcn-ui-blocks.com/blocks/marketing/stats) to give headline numbers that give the
  gallery context

**After**

- [Testimonials](https://www.shadcn-ui-blocks.com/blocks/marketing/testimonials) so social proof follows
  immediately after a visitor has browsed the work
- A [CTA section](https://www.shadcn-ui-blocks.com/blocks/marketing/cta-sections) to convert interest into
  a next step

## What you can display

Any collection of visual work that benefits from category filtering fits this
frame. A few concrete directions:

- **Completed routes or hubs.** Show photography of fulfilment centres,
  delivery fleets, or last-mile drops grouped by region or service tier.
- **Client case studies.** Each image links to a case study; category pills
  let prospects jump straight to their industry or shipment type.
- **Before and after comparisons.** Use the two-column span for wide
  before-and-after shots and single tiles for detail crops.

> Tip: aim for at least two images per category so every filter button shows
> a real result rather than a single lonely card.

## More in Marketing Gallery

- [Carousel Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/carousel-gallery)
- [Filmstrip Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/filmstrip-gallery)
- [Fullscreen Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/fullscreen-gallery)
- [Grid Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/grid-gallery)
- [Immersive Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/immersive-gallery)
- [Polaroid Gallery](https://www.shadcn-ui-blocks.com/blocks/marketing/gallery/polaroid-gallery)
