Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Gallery Blocks for Astro

Astro image galleries with a centered project carousel, a hover grid, and text overlays.

Browse project images with captions and carousel controls.

bunx --bun shadcn@latest add @gnostic/projects-carousel
npx shadcn@latest add @gnostic/projects-carousel
pnpm dlx shadcn@latest add @gnostic/projects-carousel

The selected project appears at full size with its title, description, and link. Side images are smaller and dimmed. Select a side image, use the arrow buttons, or use the dots below the images. The dots sit on the right.

Pass a slides array. Each slide has title, description, href, button, and image. The image has src and alt. Its source can be a string or an imported Astro image. String sources can also supply width and height. Set label to give the carousel an accessible name.

An empty array renders no block. One project renders at full width without navigation controls. Image dimensions and the square frame keep the layout stable while images load.

An evenly spaced grid of images, where each image grows on hover (or focus on mobile).

A wizard on a narrow street between tall buildingsA glowing portal in the distanceA beach on an alien planet under a bright sky
A wizard above the clouds at sunsetA long hall with light at the far endA wizard watching a spaceship in the distance
bunx --bun shadcn@latest add @gnostic/hover-gallery
npx shadcn@latest add @gnostic/hover-gallery
pnpm dlx shadcn@latest add @gnostic/hover-gallery

An independent section from the Portfolio template. Supply its content through props.

bunx --bun shadcn@latest add @gnostic/gallery-portfolio
npx shadcn@latest add @gnostic/gallery-portfolio
pnpm dlx shadcn@latest add @gnostic/gallery-portfolio

Editorial projects

Use this section for the projects part of a studio site.

bunx --bun shadcn@latest add @gnostic/portfolio-agency
npx shadcn@latest add @gnostic/portfolio-agency
pnpm dlx shadcn@latest add @gnostic/portfolio-agency
PropType
labelstring

Small section label.

Typestring
titlestring

Main heading text.

Typestring
accent?string

Optional italic heading text.

Typestring
description?string

Supporting copy.

Typestring
class?string

Classes for the root element.

Typestring
projects{ title: string description: string href: string image: AgencyImage tags: string[] awards: { title: string; description: string }[] }[]

Project links, images, and credits.

Type{ title: string description: string href: string image: AgencyImage tags: string[] awards: { title: string; description: string }[] }[]
action?AgencyLink

Optional link after the list.

TypeAgencyLink

See serif accent font setup when installing this section.

Home services projects

Better Living.

Ideas for Your Remodel

[ Design inspiration. Stock photography. ]

Bright kitchen with white cabinets, wood flooring, and orange breakfast chairs

A Kitchen for Gathering

Kitchen inspiration

Generous work surfaces

Storage that earns its space

Bathroom with a blue bathtub and a large window

A Calmer Morning Routine

Bathroom inspiration

Natural light

Simple, considered finishes

Open living space with neutral sofas and curved chairs

Room to Be Together

Whole-home inspiration

Connected spaces

A warm, consistent palette

White home with dark windows and glass garage doors

Character at Every Angle

Exterior inspiration

Simple forms

Contrasting finishes

Start with daily life
Function
Make each room work harder.
Choose what feels right
Comfort
Build around your routines.
Keep what makes it yours
Character
Let your home feel like home.
bunx --bun shadcn@latest add @gnostic/gallery-remodify
npx shadcn@latest add @gnostic/gallery-remodify
pnpm dlx shadcn@latest add @gnostic/gallery-remodify

Supply your own content. The section uses the selected project preset.

Use cases

What a Better Workday Could Look Like

Colleagues sharing ideas around a work table

Fieldnote

From first enquiry to a clear brief

A service studio turns incoming requests into structured project briefs. Missing details get flagged before a person reviews the next step.

Colleagues reviewing a task at a laptop

Northline

A support queue with less guesswork

A support team groups requests by topic, finds the right guide, and prepares a draft. People handle the decisions and the difficult conversations.

A project discussion around an office table

Plainwork

The daily update, already prepared

An operations team brings project status, open tasks, and blockers into one morning brief. No more chasing five tools before the first meeting.

bunx --bun shadcn@latest add @gnostic/content-case-carousel
npx shadcn@latest add @gnostic/content-case-carousel
pnpm dlx shadcn@latest add @gnostic/content-case-carousel
PropType
contentCaseCarouselContent

Section content.

TypeCaseCarouselContent
class?string

Classes added to the root.

Typestring

Supply your own content. The section uses the selected project preset.

Inside the studio

Shared Notes. Good Questions. Better Work.

A small group working together with laptopsColleagues reviewing a task at a laptopColleagues sharing ideas around a work tableA project discussion around an office table
bunx --bun shadcn@latest add @gnostic/content-image-carousel
npx shadcn@latest add @gnostic/content-image-carousel
pnpm dlx shadcn@latest add @gnostic/content-image-carousel
PropType
contentImageCarouselContent

Section content.

TypeImageCarouselContent
class?string

Classes added to the root.

Typestring

Make your own layout

The block uses Carousel with variant="parallax". Use the base carousel’s image and overlay slots when you need your own caption layout. Use only the image slot for an image gallery. The base carousel supplies the effect, selected state, and dot navigation.

Responsive layout and images

Each slide uses 70% of the carousel width in a narrow container. In a wide container, each slide uses half the width. One project always uses the full width. Keep titles and descriptions short so they fit over the image on mobile.

Images fill a square frame and crop to fit. Use images whose subject stays visible in a square crop. Supply useful alt text and image dimensions. Imported Astro images supply their dimensions automatically.