modify projects to include drafts, writeup tbd, and reduced domains

This commit is contained in:
2026-11-10 22:47:38 -05:00
parent 09b23a783d
commit 14dd434c8e
19 changed files with 96 additions and 60 deletions
+7 -2
View File
@@ -1,6 +1,7 @@
---
import type { CollectionEntry } from 'astro:content';
import Label from './Label.astro';
import { domainLabel } from '../data/skills';
interface Props { project: CollectionEntry<'projects'>; index: number; }
const { project, index } = Astro.props;
const d = project.data;
@@ -11,12 +12,16 @@ const cell = 'bg-panel group-hover:bg-hover';
<a class="group flex flex-wrap gap-px border border-l-8 border-line border-l-(color:--dc) bg-line" data-domain={d.domain} href={`/projects/${project.id}/`}>
<div class:list={[cell, 'flex-[0_0_72px] py-[18px] text-center font-mono text-[22px] text-(color:--dc)']}>{String(index + 1).padStart(2, '0')}</div>
<div class:list={[cell, 'min-w-0 flex-[1_1_320px] px-[22px] py-[18px]']}>
<div class="text-[24px] font-semibold max-sm:text-[21px]">{d.title}</div>
<div class="text-[24px] font-semibold max-sm:text-[21px]">
{d.title}
{d.status === 'stub' && <span class="ml-2 inline-block border border-amber px-1.5 py-px align-middle font-mono text-[11px] font-normal tracking-[0.08em] text-amber">WRITEUP COMING SOON</span>}
{d.status === 'draft' && <span class="ml-2 inline-block border border-rose px-1.5 py-px align-middle font-mono text-[11px] font-normal tracking-[0.08em] text-rose">DRAFT</span>}
</div>
<div class="mt-1.5 text-[16px] text-body">{d.summary}</div>
</div>
<div class:list={[cell, 'flex-[1_1_150px] px-5 py-[18px]']}>
<Label>DOMAIN</Label>
<div class="mt-1.5 font-mono text-[14px] text-(color:--dc)">{d.domainLabel}</div>
<div class="mt-1.5 font-mono text-[14px] text-(color:--dc) uppercase">{domainLabel(d.domain)}</div>
</div>
<div class:list={[cell, 'flex-[1_1_130px] px-5 py-[18px]']}>
<Label>{d.whenLabel}</Label>