Something went wrong. Try again.
My blog and portfolio (mirror of https://git.skye.codes/skyecodes/website) skye.codes
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839---import {getCollection} from "astro:content";import PageLayout from "../../layouts/PageLayout.astro";import Container from "../../components/Container.astro";import ArrowCard from "../../components/ArrowCard.astro";import {PROJECTS} from "../../consts";import BackToPrev from "../../components/BackToPrev.astro";
const projects = (await getCollection("projects")) .filter(project => !project.data.draft) .sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf());---
<PageLayout title={PROJECTS.TITLE} description={PROJECTS.DESCRIPTION}> <Container> <div class="space-y-10"> <div class="flex flex-wrap gap-y-2 justify-between items-center"> <div class="animate font-semibold"> Projects </div> <div class="animate"> <BackToPrev href="/"> Back to home </BackToPrev> </div> </div> <ul class="animate flex flex-col gap-4"> { projects.map((project) => ( <li> <ArrowCard entry={project}/> </li> )) } </ul> </div> </Container></PageLayout>