Skip to content

Build ImageGallery component for collection artwork grid #100

Description

@Akatenvictor

What

Create a responsive image gallery component for displaying collection artwork in a 2x2 grid with overflow indicator for collections with 5+ tracks.

Why

Collection cards need a consistent way to preview artwork from multiple tracks. A 2x2 grid with overflow count is a common pattern that efficiently communicates collection contents.

Scope

In: 2x2 grid layout, overflow count badge, lazy loading, aspect ratio enforcement, click handler
Out: Full-screen gallery view, drag-and-drop reordering

Acceptance Criteria

  • Shows up to 4 artwork thumbnails in 2x2 grid
  • 5th+ items shown as "+N" badge on the 4th cell
  • Images lazy loaded with IntersectionObserver
  • Consistent 1:1 aspect ratio per cell
  • Click navigates to collection detail
  • Graceful fallback if artwork URL is missing (placeholder gradient)

Technical Context

  • New components/ui/ImageGallery.tsx
  • Uses next/image with fill mode
  • Grid via CSS Grid with aspect-ratio: 1

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions