24 lines
972 B
Plaintext
24 lines
972 B
Plaintext
---
|
|
import { getCollection } from "astro:content";
|
|
import SectionHeader from "../components/SectionHeader.astro";
|
|
import { site } from '../data/site';
|
|
import { domains } from '../data/skills';
|
|
import Button from "../components/Button.astro";
|
|
import ProjectStrip from "../components/ProjectStrip.astro";
|
|
import Base from "../layouts/Base.astro";
|
|
|
|
const projects = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
|
|
---
|
|
|
|
<Base>
|
|
<section class="pt-10" id="projects" aria-labelledby="projects-h">
|
|
<SectionHeader tag="" title={"All Projects (" + projects.length + ")"} />
|
|
<ul class="mb-6 flex flex-wrap gap-x-5 gap-y-2 font-mono text-[12px] text-muted">
|
|
{domains.map((d) => <li class="flex items-center gap-2" data-domain={d.domain}><i class="size-2.5 bg-(--dc)"></i>{d.label}</li>)}
|
|
</ul>
|
|
<ul class="flex flex-col gap-3">
|
|
{projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
|
|
</ul>
|
|
</section>
|
|
</Base>
|