Portfolio Studio
A photographer's portfolio built on the foundation — full-bleed gallery grid, lightbox detail views, and AI-generated hero images.
The gallery collection is a natural fit for visual portfolios. The square grid already handles responsive layouts across breakpoints, and each item gets its own detail page with a full-width hero image, category tag, and Markdown body for context or technical details.
What You’d Change
Swap the default square aspect ratio for a masonry or mixed-ratio layout to let landscape and portrait images coexist. Add a client-side lightbox with keyboard navigation — Astro’s <script> tags make it straightforward to include a lightweight library without affecting other pages.
Cloudflare Image Transforms resize on the fly, so you upload once at full resolution and serve optimized variants to every device. Pair that with the loading="lazy" attribute already on every gallery image, and your portfolio loads fast even with dozens of high-resolution shots.
Build It with Claude Code
Tell Claude Code “add a lightbox with keyboard navigation to the gallery” and it creates the lightbox component with arrow-key and escape-key handlers, wires it into the gallery detail page, adds the overlay styling with backdrop blur, and ensures it works in both light and dark mode. One conversation, fully functional.
Why the Foundation Fits
A portfolio site is mostly static content with occasional updates — exactly the prerendered sweet spot. Every gallery page is generated at build time, cached at the edge, and served in under 50ms worldwide.