add cc base design template
Deploy site / build-and-deploy (push) Canceled after 0s

This commit is contained in:
2026-10-18 02:15:50 -04:00
parent a870f025f0
commit 5f1eaaf0a7
36 changed files with 1092 additions and 286 deletions
+12
View File
@@ -0,0 +1,12 @@
---
import Base from '../layouts/Base.astro';
---
<Base title="Signal lost — Dylan Benzi">
<div class="nf">
<div class="label amber">ERR 404</div>
<h1>Signal lost.</h1>
<p>That page is not on the board.</p>
<a class="btn primary" href="/">Back to the board</a>
</div>
</Base>
+63 -7
View File
@@ -1,11 +1,67 @@
---
import Welcome from '../components/Welcome.astro';
import Layout from '../layouts/Layout.astro';
import { getCollection } from 'astro:content';
import Base from '../layouts/Base.astro';
import FlapBoard from '../components/FlapBoard.astro';
import SectionHeader from '../components/SectionHeader.astro';
import ProjectStrip from '../components/ProjectStrip.astro';
import Timeline from '../components/Timeline.astro';
import Channels from '../components/Channels.astro';
import Captures from '../components/Captures.astro';
import ContactPanel from '../components/ContactPanel.astro';
import { site } from '../data/site';
import { domains } from '../data/skills';
// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build
// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh.
const projects = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
---
<Layout>
<Welcome />
</Layout>
<Base>
<section class="hero">
<FlapBoard />
<div class="readouts">
{
site.readouts.map((r) => (
<div>
<div class:list={['label', r.amber && 'amber']}>{r.label}</div>
<div class="value">{r.value}</div>
</div>
))
}
</div>
<div class="actions">
<div class="btns">
<a class="btn primary" href="#projects">See projects</a>
<a class="btn" href={site.resume ?? '#contact'}>{site.resume ? 'Résumé (PDF)' : 'Contact'}</a>
</div>
<div class="tracking"><b>NOW TRACKING</b>{site.nowTracking}</div>
</div>
</section>
<section class="section" id="projects" aria-labelledby="projects-h">
<div class="section-head">
<div class="t"><span class="tag">RNG 1</span><h2 id="projects-h">Projects</h2></div>
</div>
<ul class="legend">
{domains.map((d) => <li data-domain={d.domain}><i></i>{d.label}</li>)}
</ul>
<ul class="strips">
{projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
</ul>
</section>
<section class="section" id="history" aria-labelledby="history-h">
<div class="cols">
<div class="hist">
<div class="section-head" style="margin-bottom:28px"><div class="t"><span class="tag">RNG 2</span><h2 id="history-h">Track history</h2></div></div>
<Timeline />
</div>
<Channels />
</div>
</section>
<section class="section" id="captures" aria-labelledby="captures-h">
<SectionHeader tag="RNG 3" title="Captures" />
<Captures />
</section>
<ContactPanel />
</Base>
+43
View File
@@ -0,0 +1,43 @@
---
import { getCollection, render } from 'astro:content';
import type { GetStaticPaths } from 'astro';
import Base from '../../layouts/Base.astro';
export const getStaticPaths = (async () => {
const all = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order);
return all.map((entry, i) => ({
params: { slug: entry.id },
props: { entry, prev: all[i - 1], next: all[i + 1], n: i + 1 },
}));
}) satisfies GetStaticPaths;
const { entry, prev, next, n } = Astro.props;
const { Content } = await render(entry);
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>}
</div>
<div class="prose"><Content /></div>
{
d.links.length > 0 && (
<div class="links">
{d.links.map((l) => <a class="btn" href={l.href}>{l.label} ↗</a>)}
</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>
</article>
</Base>