--- import { getCollection } from "astro:content"; import PageLayout from "@layouts/PageLayout.astro"; import Container from "@components/Container.astro"; import Link from "@components/Link.astro"; const shots = (await getCollection("shots")).sort( (a, b) => b.data.date.valueOf() - a.data.date.valueOf(), ); const shotImages = await Promise.all( shots.map(async (shot) => { try { const content = shot.body; const imageMatch = content.match(/!\[.*?\]\((\.\/.*?)\)/); let result = null; if (imageMatch) { // Construct the correct path for the image result = `/src/content/shots/${shot.slug}/${imageMatch[1].replace('./', '')}`; } return result; } catch (error) { return null; } }) ); const shotsWithImages = shots.map((shot, index) => ({ ...shot, image: shotImages[index] })).filter(shot => shot.image); ---

Shots

Single image works, quick projects, visual explorations, and more - a space where I focus less on process and more on sharing cool visuals.

While Dribbble had its issues, there's something satisfying about dedicating time to making things look good, which is what this shots are all about.

    { shotsWithImages.map((shot) => ( shot.image && (
  • {shot.data.title
  • ) )) }