tailwind rebuild

This commit is contained in:
2026-11-01 14:04:44 -05:00
parent ff6bf4c3ae
commit 1ede517210
15 changed files with 196 additions and 903 deletions
+12
View File
@@ -0,0 +1,12 @@
---
interface Props { href: string; primary?: boolean; }
const { href, primary } = Astro.props;
---
<a
href={href}
class:list={[
'border px-5 py-3.5 font-mono text-[14px] hover:border-amber hover:bg-amber hover:text-canvas',
primary ? 'border-accent bg-accent font-medium text-canvas' : 'border-line-2 bg-canvas',
]}><slot /></a
>
+16 -8
View File
@@ -10,19 +10,27 @@ const photos = Object.entries(found)
caption: (path.split('/').pop() ?? '').replace(/\.[^.]+$/, '').replace(/[-_]+/g, ' ').toUpperCase(), caption: (path.split('/').pop() ?? '').replace(/\.[^.]+$/, '').replace(/[-_]+/g, ' ').toUpperCase(),
})); }));
const slots = [0, 1, 2].map((i) => photos[i] ?? null); const slots = [0, 1, 2].map((i) => photos[i] ?? null);
const corner = "before:absolute before:size-[22px] before:border-accent before:content-[''] after:absolute after:size-[22px] after:border-accent after:content-['']";
const shot = (photo: boolean) => [
'relative m-0 overflow-hidden border border-line bg-panel',
!photo && `${corner} before:top-2.5 before:left-2.5 before:border-t-2 before:border-l-2 after:right-2.5 after:bottom-2.5 after:border-r-2 after:border-b-2`,
];
const caption = 'absolute inset-x-0 bottom-0 px-5 pt-[18px] pb-3 font-mono text-[12px]';
const captionPhoto = 'bg-[linear-gradient(transparent,rgba(5,8,7,0.85))] text-fg';
--- ---
<div class="captures"> <div class="flex flex-wrap gap-3">
<figure class:list={['shot big', slots[0] ? 'photo' : 'empty']}> <figure class:list={[shot(!!slots[0]), 'h-[372px] min-w-0 flex-[2_1_360px] max-sm:h-[260px]']}>
{slots[0] ? <Image src={slots[0].src} alt={slots[0].caption} widths={[640, 1000, 1400]} sizes="(max-width: 900px) 100vw, 700px" /> : null} {slots[0] ? <Image class="absolute inset-0 size-full object-cover" src={slots[0].src} alt={slots[0].caption} widths={[640, 1000, 1400]} sizes="(max-width: 900px) 100vw, 700px" /> : null}
<figcaption>{slots[0] ? slots[0].caption : '[PHOTO 1 · FEATURED]'}</figcaption> <figcaption class:list={[caption, slots[0] ? captionPhoto : 'text-muted']}>{slots[0] ? slots[0].caption : '[PHOTO 1 · FEATURED]'}</figcaption>
</figure> </figure>
<div class="side"> <div class="flex min-w-0 flex-[1_1_220px] flex-col gap-3">
{ {
[1, 2].map((i) => ( [1, 2].map((i) => (
<figure class:list={['shot', slots[i] ? 'photo' : 'empty']}> <figure class:list={[shot(!!slots[i]), 'h-[180px]']}>
{slots[i] ? <Image src={slots[i]!.src} alt={slots[i]!.caption} widths={[400, 700]} sizes="(max-width: 900px) 100vw, 350px" /> : null} {slots[i] ? <Image class="absolute inset-0 size-full object-cover" src={slots[i]!.src} alt={slots[i]!.caption} widths={[400, 700]} sizes="(max-width: 900px) 100vw, 350px" /> : null}
<figcaption>{slots[i] ? slots[i]!.caption : `[PHOTO ${i + 1}]`}</figcaption> <figcaption class:list={[caption, slots[i] ? captionPhoto : 'text-muted']}>{slots[i] ? slots[i]!.caption : `[PHOTO ${i + 1}]`}</figcaption>
</figure> </figure>
)) ))
} }
+6 -5
View File
@@ -1,15 +1,16 @@
--- ---
import { skills } from '../data/skills'; import { skills } from '../data/skills';
import Label from './Label.astro';
--- ---
<aside class="channels" aria-labelledby="skills-h"> <aside class="border border-line-2 bg-panel-2 p-7" aria-labelledby="skills-h">
<div class="label" id="skills-h">CHANNELS (SKILLS)</div> <Label id="skills-h">CHANNELS (SKILLS)</Label>
<div class="groups"> <div class="mt-5 flex flex-col gap-[22px]">
{ {
skills.map((g) => ( skills.map((g) => (
<div data-domain={g.domain}> <div data-domain={g.domain}>
<div class="gname">{g.label}</div> <div class="mb-2.5 font-mono text-[13px] text-(color:--dc)">{g.label}</div>
<ul class="chips">{g.items.map((i) => <li>{i}</li>)}</ul> <ul class="flex flex-wrap gap-2 text-[15px]">{g.items.map((i) => <li class="border border-(color:--dc) px-3 py-1.5">{i}</li>)}</ul>
</div> </div>
)) ))
} }
+6 -5
View File
@@ -1,5 +1,6 @@
--- ---
import { site } from '../data/site'; import { site } from '../data/site';
import Label from './Label.astro';
const links = [ const links = [
{ label: site.email, href: `mailto:${site.email}` }, { label: site.email, href: `mailto:${site.email}` },
site.github && { label: 'GitHub', href: site.github }, site.github && { label: 'GitHub', href: site.github },
@@ -9,10 +10,10 @@ const links = [
].filter(Boolean) as { label: string; href: string }[]; ].filter(Boolean) as { label: string; href: string }[];
--- ---
<section class="contact" id="contact" aria-labelledby="contact-h"> <section class="mt-18 mb-14 flex flex-wrap items-center justify-between gap-x-10 gap-y-5 border border-line-2 bg-panel-2 px-9 py-10 max-sm:px-5 max-sm:py-7" id="contact" aria-labelledby="contact-h">
<div class="l"> <div class="flex-[1_1_300px]">
<div class="label amber">TRANSMIT</div> <Label amber>TRANSMIT</Label>
<div class="big" id="contact-h">Open for summer 2027.</div> <div class="mt-2.5 text-[34px] leading-[1.1] font-bold tracking-[-0.02em] max-sm:text-[28px]" id="contact-h">Open for summer 2027.</div>
</div> </div>
<ul>{links.map((l) => <li><a href={l.href}>{l.label}</a></li>)}</ul> <ul class="flex flex-[1_1_260px] flex-wrap gap-x-6 gap-y-2.5 font-mono text-[15px] text-accent">{links.map((l) => <li><a class="inline-block py-2 hover:text-amber" href={l.href}>{l.label}</a></li>)}</ul>
</section> </section>
+22 -4
View File
@@ -1,16 +1,34 @@
--- ---
import { boardRows, boardLabel } from '../data/board'; import { boardRows, boardLabel } from '../data/board';
import { toCells } from '../utils/flap'; import { toCells } from '../utils/flap';
import type { Tone } from '../utils/flap';
const rows = boardRows.map((r, i) => toCells(r, i)); const rows = boardRows.map((r, i) => toCells(r, i));
const toneClass: Record<Tone, string> = {
white: 'text-flap',
amber: 'text-amber',
muted: 'text-muted',
cyan: 'text-cyan',
rose: 'text-rose',
green: 'text-green',
};
--- ---
<div class="cabinet"> <div class="relative border-2 border-line-2 bg-ink pt-5 pr-6 pb-6 pl-6 max-sm:pt-4 max-sm:pr-3.5 max-sm:pb-[18px] max-sm:pl-3.5">
<div class="board" role="img" aria-label={boardLabel}> <div class="@container flex flex-col gap-1.5 max-sm:gap-1" role="img" aria-label={boardLabel}>
{ {
rows.map((row) => ( rows.map((row) => (
<div class="fr" aria-hidden="true"> <div class="grid grid-cols-24 gap-1 max-sm:gap-0.5" aria-hidden="true">
{row.map((c) => <div class:list={['f', c.tone !== 'white' && c.tone]}>{c.ch}</div>)} {row.map((c) => (
<div
class:list={[
"relative flex aspect-[0.68] items-center justify-center rounded-[3px] bg-[linear-gradient(var(--color-flap-top)_50%,var(--color-flap-bottom)_50%)] font-mono text-[length:calc(100cqw_/_24_*_0.95)] leading-none font-bold after:absolute after:inset-x-0 after:top-1/2 after:-mt-px after:h-0.5 after:bg-flap-seam after:content-[''] max-sm:aspect-[0.4] max-sm:text-[length:calc(100cqw_/_24_*_1.3)]",
toneClass[c.tone],
]}
>
{c.ch}
</div>
))}
</div> </div>
)) ))
} }
+6
View File
@@ -0,0 +1,6 @@
---
interface Props { amber?: boolean; id?: string; }
const { amber, ...rest } = Astro.props;
---
<div class:list={['font-mono text-[11px] tracking-[0.08em]', amber ? 'text-amber' : 'text-muted']} {...rest}><slot /></div>
+5 -4
View File
@@ -1,9 +1,10 @@
--- ---
import { nav, site } from '../data/site'; import { nav, site } from '../data/site';
const cell = 'bg-canvas px-[18px] py-[15px] text-muted';
--- ---
<nav class="nav" aria-label="Primary"> <nav class="flex flex-wrap gap-px border border-t-0 border-edge bg-edge font-mono text-[13px]" aria-label="Primary">
<a class="brand" href="/"><i></i>DYLAN BENZI</a> <a class:list={[cell, 'flex flex-[1_1_200px] items-center gap-2.5 text-accent hover:bg-hover hover:text-amber max-sm:flex-[1_1_100%]']} href="/"><i class="size-2 rounded-full bg-accent"></i>DYLAN BENZI</a>
{nav.map((n) => <a class="link" href={n.href}>{n.label}</a>)} {nav.map((n) => <a class:list={[cell, 'flex-[0_1_130px] hover:bg-hover hover:text-amber max-sm:flex-[1_1_auto] max-sm:text-center']} href={n.href}>{n.label}</a>)}
<div class="coords">{site.location}</div> <div class:list={[cell, 'flex-[2_1_220px] max-sm:flex-[1_1_100%]']}>{site.location}</div>
</nav> </nav>
+16 -5
View File
@@ -1,15 +1,26 @@
--- ---
import type { CollectionEntry } from 'astro:content'; import type { CollectionEntry } from 'astro:content';
import Label from './Label.astro';
interface Props { project: CollectionEntry<'projects'>; index: number; } interface Props { project: CollectionEntry<'projects'>; index: number; }
const { project, index } = Astro.props; const { project, index } = Astro.props;
const d = project.data; const d = project.data;
const cell = 'bg-panel group-hover:bg-hover';
--- ---
<li> <li>
<a class="strip" data-domain={d.domain} href={`/projects/${project.id}/`}> <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="n">{String(index + 1).padStart(2, '0')}</div> <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="main"><div class="name">{d.title}</div><div class="desc">{d.summary}</div></div> <div class:list={[cell, 'min-w-0 flex-[1_1_320px] px-[22px] py-[18px]']}>
<div class="dom"><div class="label">DOMAIN</div><div class="val" style="color:var(--dc)">{d.domainLabel}</div></div> <div class="text-[24px] font-semibold max-sm:text-[21px]">{d.title}</div>
<div class="when"><div class="label">{d.whenLabel}</div><div class="val" style={d.whenLabel === 'STATUS' ? 'color:var(--amber)' : ''}>{d.when}</div></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>
<div class:list={[cell, 'flex-[1_1_130px] px-5 py-[18px]']}>
<Label>{d.whenLabel}</Label>
<div class:list={['mt-1.5 font-mono text-[14px]', d.whenLabel === 'STATUS' && 'text-amber']}>{d.when}</div>
</div>
</a> </a>
</li> </li>
+5 -2
View File
@@ -3,7 +3,10 @@ interface Props { tag: string; title: string; }
const { tag, title } = Astro.props; const { tag, title } = Astro.props;
--- ---
<div class="section-head"> <div class="mb-6 flex flex-wrap items-center justify-between gap-x-5 gap-y-3">
<div class="t"><span class="tag">{tag}</span><h2>{title}</h2></div> <div class="flex items-center gap-4">
<span class="border border-accent px-[9px] py-[5px] font-mono text-[12px] text-accent">{tag}</span>
<h2 class="text-[36px] font-semibold tracking-[-0.02em] max-sm:text-[28px]">{title}</h2>
</div>
<slot /> <slot />
</div> </div>
+19 -11
View File
@@ -1,23 +1,31 @@
--- ---
import { experience } from '../data/experience'; import { experience } from '../data/experience';
const colors = ['var(--accent)', '#2f8f63', '#2a7355', '#25584a', '#1f4438'];
var it = 0; const last = experience.length - 1;
--- ---
<ol class="track"> <ol class="flex flex-col">
{ {
experience.map((e, i) => { experience.map((e, i) => {
// const s = dots[Math.min(i, dots.length - 1)]; const first = i === 0;
it++; const end = i === last;
return ( return (
<div class="flex"> <div class="flex">
<div class="rwy font-runway text-5xl flex-none w-32 flex items-center justify-center"><span>{it.toString().padStart(2, "0")}</span></div> <div
<li class="flex-auto" class:list={{ now: e.current }}> class:list={[
<!-- <span class="dot" style={`width:${s}px;height:${s}px;left:${-23 - s}px;background:${colors[Math.min(i, colors.length - 1)]}`} /> --> "relative flex w-32 flex-none flex-col items-center justify-center gap-2.5 border-x-2 border-flap bg-runway font-runway text-5xl leading-none tracking-[0.04em] text-flap",
<div class="dates">{e.dates}</div> "after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 after:bg-[repeating-linear-gradient(180deg,var(--color-flap)_0_24px,transparent_24px_48px)] after:content-['']",
<div class="what">{e.title}</div> (first || end) && "before:absolute before:left-1/2 before:z-1 before:h-5 before:w-16 before:-translate-x-1/2 before:bg-[repeating-linear-gradient(90deg,var(--color-flap)_0_5px,transparent_5px_10px)] before:content-['']",
<div class="text">{e.text}</div> first && 'before:top-0 after:[clip-path:inset(50%_0_0_0)]',
end && 'before:bottom-0 after:[clip-path:inset(0_0_50%_0)]',
]}
>
<span class="relative z-1 bg-runway py-2">{String(i + 1).padStart(2, '0')}</span>
</div>
<li class:list={['relative ml-7 flex-auto border bg-panel px-5 py-4', e.current ? 'border-line-2' : 'border-line', !end && 'mb-5']}>
<div class:list={['font-mono text-[12px]', e.current ? 'text-accent' : 'text-muted']}>{e.dates}</div>
<div class="mt-1.5 text-[20px] font-semibold">{e.title}</div>
<div class="mt-1.5 text-body">{e.text}</div>
</li> </li>
</div> </div>
); );
+5 -5
View File
@@ -14,7 +14,7 @@ const canonical = new URL(Astro.url.pathname, Astro.site);
--- ---
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en" class="scroll-pt-4 scroll-smooth motion-reduce:scroll-auto">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -30,14 +30,14 @@ const canonical = new URL(Astro.url.pathname, Astro.site);
<meta property="og:url" content={canonical} /> <meta property="og:url" content={canonical} />
<meta name="twitter:card" content="summary" /> <meta name="twitter:card" content="summary" />
</head> </head>
<body> <body class="bg-canvas text-fg">
<a class="skip" href="#main">Skip to content</a> <a class="absolute top-0 -left-[999px] z-10 bg-amber px-3.5 py-2.5 font-mono text-canvas focus:top-2 focus:left-2" href="#main">Skip to content</a>
<div class="wrap"> <div class="mx-auto max-w-[1120px] px-6 max-sm:px-4">
<Nav /> <Nav />
<main id="main"> <main id="main">
<slot /> <slot />
</main> </main>
<footer class="foot"> <footer class="border-t border-line pt-5 pb-8 font-mono text-[12px] text-muted">
© {new Date().getFullYear()} Dylan Benzi · Built with Astro, self-hosted © {new Date().getFullYear()} Dylan Benzi · Built with Astro, self-hosted
</footer> </footer>
</div> </div>
+6 -4
View File
@@ -1,12 +1,14 @@
--- ---
import Base from '../layouts/Base.astro'; import Base from '../layouts/Base.astro';
import Button from '../components/Button.astro';
import Label from '../components/Label.astro';
--- ---
<Base title="Signal lost — Dylan Benzi"> <Base title="Signal lost — Dylan Benzi">
<div class="nf"> <div class="py-24">
<div class="label amber">ERR 404</div> <Label amber>ERR 404</Label>
<h1>Signal lost.</h1> <h1 class="my-3 text-[56px]">Signal lost.</h1>
<p>That page is not on the board.</p> <p>That page is not on the board.</p>
<a class="btn primary" href="/">Back to the board</a> <Button primary href="/">Back to the board</Button>
</div> </div>
</Base> </Base>
+14 -13
View File
@@ -8,6 +8,7 @@ import Timeline from '../components/Timeline.astro';
import Channels from '../components/Channels.astro'; import Channels from '../components/Channels.astro';
import Captures from '../components/Captures.astro'; import Captures from '../components/Captures.astro';
import ContactPanel from '../components/ContactPanel.astro'; import ContactPanel from '../components/ContactPanel.astro';
import Button from '../components/Button.astro';
import { site } from '../data/site'; import { site } from '../data/site';
import { domains } from '../data/skills'; import { domains } from '../data/skills';
@@ -15,7 +16,7 @@ const projects = (await getCollection('projects')).sort((a, b) => a.data.order -
--- ---
<Base> <Base>
<section class="hero"> <section class="pt-10">
<FlapBoard /> <FlapBoard />
<!-- <div class="readouts"> --> <!-- <div class="readouts"> -->
<!-- { --> <!-- { -->
@@ -27,36 +28,36 @@ const projects = (await getCollection('projects')).sort((a, b) => a.data.order -
<!-- )) --> <!-- )) -->
<!-- } --> <!-- } -->
<!-- </div> --> <!-- </div> -->
<div class="actions"> <div class="mt-4 flex flex-wrap items-center justify-between gap-x-6 gap-y-3">
<div class="btns"> <div class="flex flex-wrap gap-3">
<a class="btn primary" href="#contact">Contact</a> <Button primary href="#contact">Contact</Button>
<a class="btn" href={site.resume}>{'Résumé (PDF)'}</a> <Button href={site.resume}>{'Résumé (PDF)'}</Button>
</div> </div>
<div class="tracking"><b>NOW BUILDING</b>{site.nowTracking}</div> <div class="flex flex-wrap items-center gap-x-4 gap-y-2 border border-now-line bg-now-bg px-4 py-3 text-[15px] text-now-text"><b class="font-mono text-[12px] font-normal text-amber">NOW BUILDING</b>{site.nowTracking}</div>
</div> </div>
</section> </section>
<section class="section" id="projects" aria-labelledby="projects-h"> <section class="pt-18" id="projects" aria-labelledby="projects-h">
<SectionHeader tag="RNG 1" title="Projects" /> <SectionHeader tag="RNG 1" title="Projects" />
<ul class="legend"> <ul class="mb-6 flex flex-wrap gap-x-5 gap-y-2 font-mono text-[12px] text-muted">
{domains.map((d) => <li data-domain={d.domain}><i></i>{d.label}</li>)} {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>
<ul class="strips"> <ul class="flex flex-col gap-3">
{projects.map((p, i) => <ProjectStrip project={p} index={i} />)} {projects.map((p, i) => <ProjectStrip project={p} index={i} />)}
</ul> </ul>
</section> </section>
<section class="section" id="history" aria-labelledby="history-h"> <section class="pt-18" id="history" aria-labelledby="history-h">
<SectionHeader tag="RNG 2" title="Experience" /> <SectionHeader tag="RNG 2" title="Experience" />
<Timeline /> <Timeline />
</section> </section>
<section class="section"> <section class="pt-18">
<SectionHeader tag="RNG 3" title="Skills" /> <SectionHeader tag="RNG 3" title="Skills" />
<Channels /> <Channels />
</section> </section>
<section class="section" id="captures" aria-labelledby="captures-h"> <section class="pt-18" id="captures" aria-labelledby="captures-h">
<SectionHeader tag="RNG 4" title="Captures" /> <SectionHeader tag="RNG 4" title="Captures" />
<Captures /> <Captures />
</section> </section>
+17 -15
View File
@@ -2,6 +2,8 @@
import { getCollection, render } from 'astro:content'; import { getCollection, render } from 'astro:content';
import type { GetStaticPaths } from 'astro'; import type { GetStaticPaths } from 'astro';
import Base from '../../layouts/Base.astro'; import Base from '../../layouts/Base.astro';
import Button from '../../components/Button.astro';
import Label from '../../components/Label.astro';
export const getStaticPaths = (async () => { export const getStaticPaths = (async () => {
const all = (await getCollection('projects')).sort((a, b) => a.data.order - b.data.order); 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}> <Base title={`${d.title} — Dylan Benzi`} description={d.summary}>
<article class="detail" data-domain={d.domain}> <article class="pt-10" data-domain={d.domain}>
<a class="crumb" href="/#projects">← ALL PROJECTS</a> <a class="font-mono text-[13px] text-muted hover:text-amber" href="/#projects">← ALL PROJECTS</a>
<h1>{d.title}</h1> <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="lead">{d.summary}</p> <p class="max-w-[60ch] text-[20px] text-body">{d.summary}</p>
<div class="meta"> <div class="my-7 flex flex-wrap gap-px border border-line bg-line">
<div><div class="label">NO.</div><div class="val">{String(n).padStart(2, '0')}</div></div> <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><div class="label">DOMAIN</div><div class="val" style="color:var(--dc)">{d.domainLabel}</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><div class="label">{d.whenLabel}</div><div class="val">{d.when}</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 style="flex-basis:320px"><div class="label">TECH</div><div class="val">{d.tech.join(' · ')}</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>
<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 && ( d.links.length > 0 && (
<div class="links"> <div class="mt-7 flex flex-wrap gap-3">
{d.links.map((l) => <a class="btn" href={l.href}>{l.label} ↗</a>)} {d.links.map((l) => <Button href={l.href}>{l.label} ↗</Button>)}
</div> </div>
) )
} }
<div class="pager"> <div class="my-14 flex flex-wrap justify-between gap-3">
{prev ? <a href={`/projects/${prev.id}/`}>← {prev.data.title}</a> : <span />} {prev ? <Button href={`/projects/${prev.id}/`}>← {prev.data.title}</Button> : <span />}
{next ? <a href={`/projects/${next.id}/`}>{next.data.title} →</a> : <span />} {next ? <Button href={`/projects/${next.id}/`}>{next.data.title} →</Button> : <span />}
</div> </div>
</article> </article>
</Base> </Base>
+41 -822
View File
@@ -12,835 +12,54 @@
font-display: swap; font-display: swap;
} }
@theme { @theme static {
--font-runway: "Open Runway Numbers", ui-monospace, monospace; --font-runway: "Open Runway Numbers", ui-monospace, monospace;
--font-taxiway: "Open Taxiway Mandatory Sign", system-ui, sans-serif; --font-taxiway: "Open Taxiway Mandatory Sign", system-ui, sans-serif;
--font-sans: "Space Grotesk Variable", system-ui, sans-serif;
--font-mono: "JetBrains Mono Variable", ui-monospace, monospace;
--color-canvas: #0a0f0d;
--color-panel: #101915;
--color-panel-2: #0f1814;
--color-line: #25382f;
--color-line-2: #3b5a4b;
--color-edge: #1f2e27;
--color-hover: #14201b;
--color-ink: #050807;
--color-runway: #151a17;
--color-fg: #d8e6de;
--color-body: #b4c6bc;
--color-muted: #9db3a7;
--color-accent: #5cf2a0;
--color-amber: #ffb547;
--color-cyan: #5ccbff;
--color-rose: #ff7a9c;
--color-green: #5cf2a0;
--color-flap: #f4f1e8;
--color-flap-top: #1a241f;
--color-flap-bottom: #131b17;
--color-flap-seam: #040706;
--color-now-bg: #1a150a;
--color-now-line: #5a4318;
--color-now-text: #eadbc0;
} }
:root { @layer base {
--bg: #0a0f0d; :focus-visible {
--panel: #101915; outline: 2px solid var(--color-amber);
--panel-2: #0f1814; outline-offset: 2px;
--line: #25382f; }
--line-2: #3b5a4b;
--text: #d8e6de;
--body: #b4c6bc;
--muted: #9db3a7;
--accent: #5cf2a0;
--amber: #ffb547;
--cyan: #5ccbff;
--rose: #ff7a9c;
--green: #5cf2a0;
--flap: #f4f1e8;
--sans: "Space Grotesk Variable", system-ui, sans-serif;
--mono: "JetBrains Mono Variable", ui-monospace, monospace;
}
* { [data-domain="hardware"] {
box-sizing: border-box; --dc: var(--color-amber);
}
html {
scroll-behavior: smooth;
scroll-padding-top: 16px;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
} }
} [data-domain="rf"] {
body { --dc: var(--color-cyan);
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--sans);
line-height: 1.5;
}
a {
color: inherit;
}
:focus-visible {
outline: 2px solid var(--amber);
outline-offset: 2px;
}
.wrap {
max-width: 1120px;
margin: 0 auto;
padding: 0 24px;
}
.mono {
font-family: var(--mono);
}
.skip {
position: absolute;
left: -999px;
top: 0;
background: var(--amber);
color: var(--bg);
padding: 10px 14px;
font-family: var(--mono);
z-index: 10;
}
.skip:focus {
left: 8px;
top: 8px;
}
[data-domain="hardware"] {
--dc: var(--amber);
}
[data-domain="rf"] {
--dc: var(--cyan);
}
[data-domain="silicon"] {
--dc: var(--rose);
}
[data-domain="systems"] {
--dc: var(--green);
}
/* nav */
.nav {
display: flex;
flex-wrap: wrap;
gap: 1px;
background: #1f2e27;
border: 1px solid #1f2e27;
border-top: none;
font-family: var(--mono);
font-size: 13px;
}
.nav > * {
background: var(--bg);
padding: 15px 18px;
text-decoration: none;
color: var(--muted);
}
.nav a:hover {
background: #14201b;
color: var(--amber);
}
.nav .brand {
flex: 1 1 200px;
color: var(--accent);
display: flex;
align-items: center;
gap: 10px;
}
.nav .brand i {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent);
}
.nav .link {
flex: 0 1 130px;
}
.nav .coords {
flex: 2 1 220px;
}
/* hero */
.hero {
padding: 40px 0 0;
}
.cabinet {
position: relative;
background: #050807;
border: 2px solid var(--line-2);
padding: 20px 24px 24px;
}
.cabinet .screw {
position: absolute;
width: 9px;
height: 9px;
border-radius: 50%;
border: 2px solid var(--line-2);
}
.cabinet .screw:nth-child(1) {
top: 8px;
left: 8px;
}
.cabinet .screw:nth-child(2) {
top: 8px;
right: 8px;
}
.cabinet .screw:nth-child(3) {
bottom: 8px;
left: 8px;
}
.cabinet .screw:nth-child(4) {
bottom: 8px;
right: 8px;
}
.cabinet-head {
display: flex;
flex-wrap: wrap;
gap: 6px 20px;
justify-content: space-between;
margin: 0 0 16px;
font-family: var(--mono);
font-size: 12px;
letter-spacing: 0.08em;
color: var(--muted);
}
.cabinet-head h1 {
margin: 0;
font-size: inherit;
font-weight: 400;
letter-spacing: inherit;
}
.board {
container-type: inline-size;
display: flex;
flex-direction: column;
gap: 6px;
}
.fr {
display: grid;
grid-template-columns: repeat(24, minmax(0, 1fr));
gap: 4px;
}
.f {
position: relative;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 0.68;
border-radius: 3px;
background: linear-gradient(#1a241f 50%, #131b17 50%);
font-family: var(--mono);
font-weight: 700;
font-size: 16px;
font-size: calc(100cqw / 24 * 0.95);
line-height: 1;
color: var(--flap);
}
.f::after {
content: "";
position: absolute;
left: 0;
right: 0;
top: 50%;
height: 2px;
margin-top: -1px;
background: #040706;
}
.f.amber {
color: var(--amber);
}
.f.muted {
color: var(--muted);
}
.f.cyan {
color: var(--cyan);
}
.f.rose {
color: var(--rose);
}
.f.green {
color: var(--green);
}
@media (max-width: 640px) {
.wrap {
padding: 0 16px;
} }
.cabinet { [data-domain="silicon"] {
padding: 16px 14px 18px; --dc: var(--color-rose);
} }
.fr { [data-domain="systems"] {
gap: 2px; --dc: var(--color-green);
}
.board {
gap: 4px;
}
.f {
aspect-ratio: 0.4;
font-size: calc(100cqw / 24 * 1.3);
}
}
.readouts {
display: flex;
flex-wrap: wrap;
gap: 1px;
background: var(--line-2);
border: 1px solid var(--line-2);
margin-top: 16px;
}
.readouts > div {
flex: 1 1 220px;
background: var(--panel-2);
padding: 14px 20px;
}
.label {
font-family: var(--mono);
font-size: 11px;
color: var(--muted);
letter-spacing: 0.08em;
}
.label.amber {
color: var(--amber);
}
.readouts .value {
margin-top: 6px;
font-size: 18px;
font-weight: 500;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 12px 24px;
align-items: center;
justify-content: space-between;
margin-top: 16px;
}
.btns {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.btn {
font-family: var(--mono);
font-size: 14px;
text-decoration: none;
padding: 14px 20px;
border: 1px solid var(--line-2);
background: var(--bg);
}
.btn.primary {
border-color: var(--accent);
background: var(--accent);
color: var(--bg);
font-weight: 500;
}
.btn:hover {
background: var(--amber);
border-color: var(--amber);
color: var(--bg);
}
.tracking {
display: flex;
flex-wrap: wrap;
gap: 8px 16px;
align-items: center;
padding: 12px 16px;
border: 1px solid #5a4318;
background: #1a150a;
font-size: 15px;
color: #eadbc0;
}
.tracking b {
font-family: var(--mono);
font-weight: 400;
font-size: 12px;
color: var(--amber);
}
/* sections */
.section {
padding: 72px 0 0;
}
.section-head {
display: flex;
flex-wrap: wrap;
gap: 12px 20px;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.section-head .t {
display: flex;
align-items: center;
gap: 16px;
}
.tag {
font-family: var(--mono);
font-size: 12px;
padding: 5px 9px;
border: 1px solid var(--accent);
color: var(--accent);
}
h2 {
margin: 0;
font-size: 36px;
font-weight: 600;
letter-spacing: -0.02em;
}
@media (max-width: 640px) {
h2 {
font-size: 28px;
}
}
.legend {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
margin: 0 0 24px;
padding: 0;
list-style: none;
}
.legend li {
display: flex;
align-items: center;
gap: 8px;
}
.legend i {
width: 10px;
height: 10px;
background: var(--dc);
}
/* project strips */
.strips {
display: flex;
flex-direction: column;
gap: 12px;
margin: 0;
padding: 0;
list-style: none;
}
.strip {
display: flex;
flex-wrap: wrap;
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
border-left: 8px solid var(--dc);
text-decoration: none;
}
.strip > div {
background: var(--panel);
padding: 18px 20px;
}
.strip:hover > div {
background: #14201b;
}
.strip .n {
flex: 0 0 72px;
padding: 18px 0;
text-align: center;
font-family: var(--mono);
font-size: 22px;
color: var(--dc);
}
.strip .main {
flex: 1 1 320px;
min-width: 0;
padding: 18px 22px;
}
.strip .name {
font-size: 24px;
font-weight: 600;
}
.strip .desc {
margin-top: 6px;
font-size: 16px;
color: var(--body);
}
.strip .dom {
flex: 1 1 150px;
}
.strip .when {
flex: 1 1 130px;
}
.strip .val {
margin-top: 6px;
font-family: var(--mono);
font-size: 14px;
}
@media (max-width: 640px) {
.strip .name {
font-size: 21px;
}
}
/* history */
.cols {
display: flex;
flex-wrap: wrap;
gap: 40px;
}
.cols > .hist {
flex: 1.3 1 420px;
min-width: 0;
}
.track {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
}
.track li {
position: relative;
margin-left: 28px;
border: 1px solid var(--line);
background: var(--panel);
padding: 16px 20px;
}
.track li.now {
border-color: var(--line-2);
}
.track .rwy {
position: relative;
flex-direction: column;
gap: 10px;
background: #151a17;
border-left: 2px solid var(--flap);
border-right: 2px solid var(--flap);
color: var(--flap);
line-height: 1;
letter-spacing: 0.04em;
}
.track > div:first-child .rwy::before,
.track > div:last-child .rwy::before {
content: "";
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 64px;
height: 20px;
background: repeating-linear-gradient(
90deg,
var(--flap) 0 5px,
transparent 5px 10px
);
z-index: 1;
}
.track > div:first-child .rwy::before {
top: 0;
}
.track > div:last-child .rwy::before {
bottom: 0;
}
.track .rwy::after {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 4px;
transform: translateX(-50%);
background: repeating-linear-gradient(
180deg,
var(--flap) 0 24px,
transparent 24px 48px
);
}
.track > div:first-child .rwy::after {
clip-path: inset(50% 0 0 0);
}
.track > div:last-child .rwy::after {
clip-path: inset(0 0 50% 0);
}
.track .rwy span {
position: relative;
z-index: 1;
padding: 8px 0;
background: #151a17;
}
.track > div:not(:last-child) > li {
margin-bottom: 20px;
}
.track .dot {
position: absolute;
top: 20px;
border-radius: 50%;
}
.track .dates {
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
}
.track .now .dates {
color: var(--accent);
}
.track .what {
margin-top: 6px;
font-size: 20px;
font-weight: 600;
}
.track .text {
margin-top: 6px;
color: var(--body);
}
.channels {
flex: 1 1 320px;
min-width: 0;
align-self: flex-start;
border: 1px solid var(--line-2);
background: var(--panel-2);
padding: 28px;
}
.channels .groups {
display: flex;
flex-direction: column;
gap: 22px;
margin-top: 20px;
}
.channels .gname {
font-family: var(--mono);
font-size: 13px;
color: var(--dc);
margin-bottom: 10px;
}
.chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
font-size: 15px;
}
.chips li {
padding: 6px 12px;
border: 1px solid var(--dc);
}
/* captures */
.captures {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.captures .big {
flex: 2 1 360px;
min-width: 0;
height: 372px;
}
.captures .side {
flex: 1 1 220px;
min-width: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.captures .side .shot {
height: 180px;
}
.shot {
position: relative;
margin: 0;
background: var(--panel);
border: 1px solid var(--line);
overflow: hidden;
}
.shot img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.shot figcaption {
position: absolute;
left: 0;
bottom: 0;
right: 0;
padding: 18px 20px 12px;
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
}
.shot.photo figcaption {
background: linear-gradient(transparent, rgba(5, 8, 7, 0.85));
color: var(--text);
}
.shot.empty::before,
.shot.empty::after {
content: "";
position: absolute;
width: 22px;
height: 22px;
border: 0 solid var(--accent);
}
.shot.empty::before {
top: 10px;
left: 10px;
border-top-width: 2px;
border-left-width: 2px;
}
.shot.empty::after {
bottom: 10px;
right: 10px;
border-bottom-width: 2px;
border-right-width: 2px;
}
@media (max-width: 640px) {
.captures .big {
height: 260px;
}
}
/* contact */
.contact {
display: flex;
flex-wrap: wrap;
gap: 20px 40px;
justify-content: space-between;
align-items: center;
margin: 72px 0 56px;
padding: 40px 36px;
border: 1px solid var(--line-2);
background: var(--panel-2);
}
.contact .l {
flex: 1 1 300px;
}
.contact .big {
margin-top: 10px;
font-size: 34px;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
}
.contact ul {
flex: 1 1 260px;
display: flex;
flex-wrap: wrap;
gap: 10px 24px;
margin: 0;
padding: 0;
list-style: none;
font-family: var(--mono);
font-size: 15px;
color: var(--accent);
}
.contact a {
display: inline-block;
padding: 8px 0;
}
.contact a:hover {
color: var(--amber);
}
@media (max-width: 640px) {
.contact {
padding: 28px 20px;
}
.contact .big {
font-size: 28px;
}
}
footer.foot {
border-top: 1px solid var(--line);
padding: 20px 0 32px;
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
}
/* project detail */
.detail {
padding: 40px 0 0;
}
.crumb {
font-family: var(--mono);
font-size: 13px;
color: var(--muted);
text-decoration: none;
}
.crumb:hover {
color: var(--amber);
}
.detail h1 {
margin: 20px 0 12px;
font-size: 44px;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
border-left: 8px solid var(--dc);
padding-left: 18px;
}
@media (max-width: 640px) {
.detail h1 {
font-size: 30px;
}
}
.detail .lead {
font-size: 20px;
color: var(--body);
max-width: 60ch;
}
.meta {
display: flex;
flex-wrap: wrap;
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
margin: 28px 0;
}
.meta > div {
flex: 1 1 160px;
background: var(--panel);
padding: 14px 20px;
}
.meta .val {
margin-top: 6px;
font-family: var(--mono);
font-size: 14px;
}
.prose {
max-width: 68ch;
font-size: 17px;
color: var(--body);
}
.prose h2 {
font-size: 24px;
color: var(--text);
margin: 32px 0 10px;
}
.prose a {
color: var(--accent);
}
.prose li {
margin: 4px 0;
}
.links {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 28px;
}
.pager {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: space-between;
margin: 56px 0;
font-family: var(--mono);
font-size: 14px;
}
.pager a {
padding: 14px 20px;
border: 1px solid var(--line-2);
text-decoration: none;
}
.pager a:hover {
background: var(--amber);
border-color: var(--amber);
color: var(--bg);
}
.nf {
padding: 96px 0;
}
.nf h1 {
font-size: 56px;
margin: 12px 0;
}
@media (max-width: 640px) {
.nav .brand,
.nav .coords {
flex: 1 1 100%;
}
.nav .link {
flex: 1 1 auto;
text-align: center;
} }
} }