tailwind rebuild
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
import { getCollection, render } from 'astro:content';
|
||||
import type { GetStaticPaths } from 'astro';
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import Button from '../../components/Button.astro';
|
||||
import Label from '../../components/Label.astro';
|
||||
|
||||
export const getStaticPaths = (async () => {
|
||||
const all = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
|
||||
@@ -17,27 +19,27 @@ const d = entry.data;
|
||||
---
|
||||
|
||||
<Base title={`${d.title} — Dylan Benzi`} description={d.summary}>
|
||||
<article class="detail" data-domain={d.domain}>
|
||||
<a class="crumb" href="/#projects">← ALL PROJECTS</a>
|
||||
<h1>{d.title}</h1>
|
||||
<p class="lead">{d.summary}</p>
|
||||
<div class="meta">
|
||||
<div><div class="label">NO.</div><div class="val">{String(n).padStart(2, '0')}</div></div>
|
||||
<div><div class="label">DOMAIN</div><div class="val" style="color:var(--dc)">{d.domainLabel}</div></div>
|
||||
<div><div class="label">{d.whenLabel}</div><div class="val">{d.when}</div></div>
|
||||
{d.tech.length > 0 && <div style="flex-basis:320px"><div class="label">TECH</div><div class="val">{d.tech.join(' · ')}</div></div>}
|
||||
<article class="pt-10" data-domain={d.domain}>
|
||||
<a class="font-mono text-[13px] text-muted hover:text-amber" href="/#projects">← ALL PROJECTS</a>
|
||||
<h1 class="mt-5 mb-3 border-l-8 border-(color:--dc) pl-[18px] text-[44px] leading-[1.1] font-bold tracking-[-0.02em] max-sm:text-[30px]">{d.title}</h1>
|
||||
<p class="max-w-[60ch] text-[20px] text-body">{d.summary}</p>
|
||||
<div class="my-7 flex flex-wrap gap-px border border-line bg-line">
|
||||
<div class="flex-[1_1_160px] bg-panel px-5 py-3.5"><Label>NO.</Label><div class="mt-1.5 font-mono text-[14px]">{String(n).padStart(2, '0')}</div></div>
|
||||
<div class="flex-[1_1_160px] bg-panel px-5 py-3.5"><Label>DOMAIN</Label><div class="mt-1.5 font-mono text-[14px] text-(color:--dc)">{d.domainLabel}</div></div>
|
||||
<div class="flex-[1_1_160px] bg-panel px-5 py-3.5"><Label>{d.whenLabel}</Label><div class="mt-1.5 font-mono text-[14px]">{d.when}</div></div>
|
||||
{d.tech.length > 0 && <div class="flex-[1_1_320px] bg-panel px-5 py-3.5"><Label>TECH</Label><div class="mt-1.5 font-mono text-[14px]">{d.tech.join(' · ')}</div></div>}
|
||||
</div>
|
||||
<div class="prose"><Content /></div>
|
||||
<div class="max-w-[68ch] text-[17px] text-body [&_a]:text-accent [&_h2]:mt-8 [&_h2]:mb-2.5 [&_h2]:text-[24px] [&_h2]:font-semibold [&_h2]:tracking-[-0.02em] [&_h2]:text-fg [&_li]:my-1"><Content /></div>
|
||||
{
|
||||
d.links.length > 0 && (
|
||||
<div class="links">
|
||||
{d.links.map((l) => <a class="btn" href={l.href}>{l.label} ↗</a>)}
|
||||
<div class="mt-7 flex flex-wrap gap-3">
|
||||
{d.links.map((l) => <Button href={l.href}>{l.label} ↗</Button>)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
<div class="pager">
|
||||
{prev ? <a href={`/projects/${prev.id}/`}>← {prev.data.title}</a> : <span />}
|
||||
{next ? <a href={`/projects/${next.id}/`}>{next.data.title} →</a> : <span />}
|
||||
<div class="my-14 flex flex-wrap justify-between gap-3">
|
||||
{prev ? <Button href={`/projects/${prev.id}/`}>← {prev.data.title}</Button> : <span />}
|
||||
{next ? <Button href={`/projects/${next.id}/`}>{next.data.title} →</Button> : <span />}
|
||||
</div>
|
||||
</article>
|
||||
</Base>
|
||||
|
||||
Reference in New Issue
Block a user