Back to projects

Photography Portfolio Template

A high-performance photography portfolio template with gallery, lightbox, print shop, and dark/light modes.

2stars1forksAstroLive from GitHub
Photography Portfolio Template

Overview

Photographers need portfolios that get out of the way of the photographs. Most templates I tested before building this one treated images as content blocks - same padding, same spacing, same chrome as a blog post. That works for everything except photography. I wanted a template that treated images as the primary surface and built the rest of the layout around them.

What's included

A gallery view with proper aspect-ratio handling, a lightbox for full-screen viewing, a print shop scaffold, contact pages, and dark/light themes. The image components handle progressive loading and high-resolution variants by default, so the user doesn't have to manually optimize every shot.

Performance

Image-heavy sites die on performance unless you're careful. The template uses Astro's built-in image optimization, lazy loading below the fold, and proper width/height hints to prevent layout shift. The result is something that loads fast even on a slow connection - which matters because not every photographer's audience is on broadband.

What I learned

Building image-first interfaces taught me how much restraint matters. Every UI element competes with the photos for attention, so the template has to lean toward minimal type, neutral surfaces, and chrome that disappears unless the user needs it. That restraint is harder to design than it sounds because it means resisting every "nice to have" decoration.