Redesign with per-page themes and plain wording
Mirror to Gitea / mirror (push) Skipped

Each page now has its own look drawn from print and retro-tech references:
magazine-cover home, subway-map work index, technical-poster project pages,
90s-desktop blog, radio-flyer music page, 80s wireframe 3D page, garden
about page and postcard contact form. A shared subway-line color system
ties sections and project categories together.

Replace themed copy with standard wording (Work, Blog, Music, 3D, About,
Contact; Selected work, Experience, Get in touch). Rename /log to /blog and
/sound to /music with redirects.
This commit is contained in:
Johan Sandoval committed 2026-10-08 15:36:51 +00:00
1 parent b2cd67e74f
commit ef9d597b52
61 files changed
+2770 -1108

No files matched your search

+26 -11
View File
@@ -26,8 +26,8 @@ push to GitHub main ──(.github/workflows/mirror.yml)──▶ Gitea yoyos/yo
| What | Where | | What | Where |
|---|---| |---|---|
| Project | `src/content/work/<slug>.md(x)` or `src/content/work/<slug>/index.mdx` with images next to it | | Project | `src/content/work/<slug>.md(x)` or `src/content/work/<slug>/index.mdx` with images next to it |
| Log post | `src/content/log/<nnn-slug>.md(x)` (`draft: true` hides it in production) | | Blog post | `src/content/blog/<slug>.md(x)` (`draft: true` hides it in production) |
| Recording | `src/content/sound/<slug>.yaml` + audio file in the media share under `sound/` | | Recording | `src/content/music/<slug>.yaml` + audio file in the media share under `music/` |
| 3D model | `src/content/models/<slug>.yaml` + `.glb` in the media share under `models/` | | 3D model | `src/content/models/<slug>.yaml` + `.glb` in the media share under `models/` |
| Game | add a `game:` block to a project + web export in the media share under `games/<slug>/` → playable at `/play/<slug>` | | Game | add a `game:` block to a project + web export in the media share under `games/<slug>/` → playable at `/play/<slug>` |
| Personal info, links, availability | `src/lib/site.ts` | | Personal info, links, availability | `src/lib/site.ts` |
@@ -36,18 +36,33 @@ Every field is typed in `src/content.config.ts`, so the build fails loudly when
## Styling ## Styling
- `src/styles/tokens.css`: raw palette (ink, cream, emerald, rust, peat), type scale, spacing. Each page has its own look, built on one shared palette and a "subway line" color system
- `src/styles/themes/*.css`: each theme maps the palette onto semantic tokens (`--bg`, `--fg`, (every section and project category has a line color + badge, see `src/lib/disciplines.ts`).
`--accent`, `--signal`, `--line`, fonts, grain, scanlines). Current themes: `terminal` (default),
`concrete`, `nostromo`, `overgrowth`. | Theme | Used on | Feel |
- Use a theme on a whole page: `<Base theme="concrete">`, or `theme: concrete` in a project or post's frontmatter. |---|---|---|
- Use a theme on one section: `<section data-theme="nostromo">`. | `magazine` (default) | Home | 90s magazine cover / print ad |
- New theme: copy a theme file, rename the selector, import it in `themes/index.css`, and add the name to `src/lib/themes.ts`. | `transit` | Work index | Subway map, transit cards |
- One-off page styling: the page's own `<style>` block (scoped automatically), or `@layer page { }` for global overrides. | `spec` | Project pages | Technical exhibition poster |
| `desktop` | Blog, 404 | Late-90s desktop windows |
| `radio` | Music | College-radio flyer, dot-matrix type |
| `vector` | 3D models | 80s computer graphics, wireframes |
| `garden` | About | Grass, cream blobs, lowercase type |
| `postcard` | Contact | Postcard + stamp |
| `terminal` | (available) | Green-phosphor CRT |
- `src/styles/tokens.css`: raw palette (paper, ink, lime, red, cobalt, yellow, emerald...), font stacks, type scale, spacing.
- `src/styles/themes/*.css`: each theme maps the palette onto semantic tokens (`--bg`, `--fg`, `--accent`,
`--font-display`, heading weight/case/width, border, shadow, grain, scanlines).
- Use a theme on a page: `<Base theme="radio">`, or `theme: vector` in a project/post's frontmatter
(projects default to `spec`, posts to `desktop`). Use it on one section: `<section data-theme="garden">`.
- New theme: copy a theme file, rename the selector, import it in `themes/index.css`, add the name to `src/lib/themes.ts`.
- Page-specific flourishes live in each page's own `<style>` block (scoped automatically).
- Decorative components: `src/components/deco/` (Starburst, Barcode, Window, Stamp) and `LineBadge`.
## Media share (Nextcloud) ## Media share (Nextcloud)
1. In Nextcloud, make a folder (e.g. `yoyos.sh-media`) with `sound/`, `models/`, `games/`, `resume/`. 1. In Nextcloud, make a folder (e.g. `yoyos.sh-media`) with `music/`, `models/`, `games/`, `resume/`.
2. Share it with a **public link** (read-only). The token is the last part of the link. 2. Share it with a **public link** (read-only). The token is the last part of the link.
3. Set `MEDIA_ORIGIN=https://<nextcloud-host>/public.php/dav/files/<token>` in Coolify. 3. Set `MEDIA_ORIGIN=https://<nextcloud-host>/public.php/dav/files/<token>` in Coolify.
4. Files are then served from `https://yoyos.sh/media/<path>`, e.g. `/media/resume/Johan_Sandoval_Resume.pdf`. 4. Files are then served from `https://yoyos.sh/media/<path>`, e.g. `/media/resume/Johan_Sandoval_Resume.pdf`.
+5
View File
@@ -12,6 +12,11 @@ export default defineConfig({
output: 'static', output: 'static',
adapter: node({ mode: 'standalone' }), adapter: node({ mode: 'standalone' }),
integrations: [mdx(), react(), sitemap()], integrations: [mdx(), react(), sitemap()],
redirects: {
'/log': '/blog',
'/log/[...slug]': '/blog/[...slug]',
'/sound': '/music',
},
prefetch: { prefetchAll: true, defaultStrategy: 'hover' }, prefetch: { prefetchAll: true, defaultStrategy: 'hover' },
security: { security: {
checkOrigin: true, checkOrigin: true,
+44 -4
View File
@@ -13,9 +13,13 @@
"@astrojs/react": "^7.0.1", "@astrojs/react": "^7.0.1",
"@astrojs/rss": "^4.0.19", "@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.4", "@astrojs/sitemap": "^3.7.4",
"@fontsource-variable/big-shoulders": "^5.3.0", "@fontsource-variable/archivo": "^5.3.0",
"@fontsource-variable/doto": "^5.3.0",
"@fontsource-variable/ibm-plex-sans": "^5.3.0", "@fontsource-variable/ibm-plex-sans": "^5.3.0",
"@fontsource/dela-gothic-one": "^5.3.0",
"@fontsource/dotgothic16": "^5.3.0",
"@fontsource/ibm-plex-mono": "^5.3.0", "@fontsource/ibm-plex-mono": "^5.3.0",
"@fontsource/vt323": "^5.3.0",
"@google/model-viewer": "^4.3.1", "@google/model-viewer": "^4.3.1",
"astro": "^7.3.7", "astro": "^7.3.7",
"nodemailer": "^10.0.16", "nodemailer": "^10.0.16",
@@ -1255,10 +1259,19 @@
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/@fontsource-variable/big-shoulders": { "node_modules/@fontsource-variable/archivo": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource-variable/big-shoulders/-/big-shoulders-5.3.0.tgz", "resolved": "https://registry.npmjs.org/@fontsource-variable/archivo/-/archivo-5.3.0.tgz",
"integrity": "sha512-b6JtGj6cqvOO5RLuzqLOoiG1ojTHhM8hNDmqbwQXmWCcQumP0gzHXgYviAooZZWLtEvOoX/EHboa+6/Nx2n9ng==", "integrity": "sha512-HogK8FJelrD1o7TlZlkIVtHgc20bO5PZRWE7mUeUTdMN055alznQV6/00J00IBeu8FQAH4s3zW9UJNvKExXf+g==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource-variable/doto": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource-variable/doto/-/doto-5.3.0.tgz",
"integrity": "sha512-mzvYblQT8AD0tOdBvni6+5E25LMKXKDVqbUutGafV78rIIq1w9s4G1IBpDcHJp+u2+dzsO3zCSm75mBQLguJjw==",
"license": "OFL-1.1", "license": "OFL-1.1",
"funding": { "funding": {
"url": "https://github.com/sponsors/ayuhito" "url": "https://github.com/sponsors/ayuhito"
@@ -1273,6 +1286,24 @@
"url": "https://github.com/sponsors/ayuhito" "url": "https://github.com/sponsors/ayuhito"
} }
}, },
"node_modules/@fontsource/dela-gothic-one": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/dela-gothic-one/-/dela-gothic-one-5.3.0.tgz",
"integrity": "sha512-4A26Qs7TqYFWegJfYHx7KKWy01YybW/e7uhFDM8A8e1neVPm721laLnh0en60wtKihfNdCbJt0VVcEMHC4pHjw==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/dotgothic16": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/dotgothic16/-/dotgothic16-5.3.0.tgz",
"integrity": "sha512-HYOA4yd61tGyjFvDXG0dzvCdXjmPIVuqDFCaMk2ok0G/eWbub6nJ9NlrHaGOUKUWiypGIoz6vZuzm11uFNdm8w==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/ibm-plex-mono": { "node_modules/@fontsource/ibm-plex-mono": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.3.0.tgz", "resolved": "https://registry.npmjs.org/@fontsource/ibm-plex-mono/-/ibm-plex-mono-5.3.0.tgz",
@@ -1282,6 +1313,15 @@
"url": "https://github.com/sponsors/ayuhito" "url": "https://github.com/sponsors/ayuhito"
} }
}, },
"node_modules/@fontsource/vt323": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/vt323/-/vt323-5.3.0.tgz",
"integrity": "sha512-3w33Rg/0+R1587HQfz4t7Q7e0GGeCqr3wmzIwqdGInUnrGEwMA5eX39GP4Z9wpTQnwfhVOhYuxuRwRUeIcicbw==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@google/model-viewer": { "node_modules/@google/model-viewer": {
"version": "4.3.1", "version": "4.3.1",
"resolved": "https://registry.npmjs.org/@google/model-viewer/-/model-viewer-4.3.1.tgz", "resolved": "https://registry.npmjs.org/@google/model-viewer/-/model-viewer-4.3.1.tgz",
+5 -1
View File
@@ -19,9 +19,13 @@
"@astrojs/react": "^7.0.1", "@astrojs/react": "^7.0.1",
"@astrojs/rss": "^4.0.19", "@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.4", "@astrojs/sitemap": "^3.7.4",
"@fontsource-variable/big-shoulders": "^5.3.0", "@fontsource-variable/archivo": "^5.3.0",
"@fontsource-variable/doto": "^5.3.0",
"@fontsource-variable/ibm-plex-sans": "^5.3.0", "@fontsource-variable/ibm-plex-sans": "^5.3.0",
"@fontsource/dela-gothic-one": "^5.3.0",
"@fontsource/dotgothic16": "^5.3.0",
"@fontsource/ibm-plex-mono": "^5.3.0", "@fontsource/ibm-plex-mono": "^5.3.0",
"@fontsource/vt323": "^5.3.0",
"@google/model-viewer": "^4.3.1", "@google/model-viewer": "^4.3.1",
"astro": "^7.3.7", "astro": "^7.3.7",
"nodemailer": "^10.0.16", "nodemailer": "^10.0.16",
+3 -3
View File
@@ -63,10 +63,10 @@ export default function AudioPlayer({ src, title }: Props) {
{state === 'loading' ? '…' : playing ? '❚❚' : '▶'} {state === 'loading' ? '…' : playing ? '❚❚' : '▶'}
</button> </button>
<div className="wave" ref={host}> <div className="wave" ref={host}>
{state === 'idle' && <span className="label">[ press play to load waveform ]</span>} {state === 'idle' && <span className="hint">Press play to load</span>}
{state === 'error' && <span className="label signal">[ signal lost: file not found ]</span>} {state === 'error' && <span className="hint err">This recording isn't available right now.</span>}
</div> </div>
<span className="label time"> <span className="time">
{fmt(time)} / {duration ? fmt(duration) : '--:--'} {fmt(time)} / {duration ? fmt(duration) : '--:--'}
</span> </span>
</div> </div>
+4 -3
View File
@@ -14,7 +14,7 @@ const { src, alt, caption } = Astro.props;
<a href={src.src} target="_blank" rel="noopener"> <a href={src.src} target="_blank" rel="noopener">
<Image src={src} alt={alt} widths={[640, 1024, 1600]} sizes="(min-width: 70rem) 68ch, 100vw" /> <Image src={src} alt={alt} widths={[640, 1024, 1600]} sizes="(min-width: 70rem) 68ch, 100vw" />
</a> </a>
{caption && <figcaption class="label">{caption}</figcaption>} {caption && <figcaption>{caption}</figcaption>}
</figure> </figure>
<style> <style>
@@ -31,7 +31,8 @@ const { src, alt, caption } = Astro.props;
border-color: var(--accent); border-color: var(--accent);
} }
figcaption { figcaption {
text-transform: none; font-family: var(--font-mono);
letter-spacing: 0.02em; font-size: 0.78rem;
color: var(--fg-muted);
} }
</style> </style>
+45 -19
View File
@@ -1,22 +1,28 @@
--- ---
import { SITE } from '../lib/site'; import { SITE, NAV } from '../lib/site';
const year = new Date().getFullYear(); const year = new Date().getFullYear();
const links = Object.entries(SITE.links).filter(([, href]) => !href.includes('PLACEHOLDER')); const links = Object.entries(SITE.links).filter(([, href]) => !href.includes('PLACEHOLDER'));
--- ---
<footer> <footer>
<div class="lines" aria-hidden="true">
{NAV.map((n) => <span style={`--c:${n.color}`} />)}
</div>
<div class="wrap grid"> <div class="wrap grid">
<div class="stack"> <div class="stack">
<p class="big">Have something to build?</p> <p class="big">Let's build something.</p>
<p><a class="btn btn--primary" href="/contact">Open a channel →</a></p> <p class="cluster">
<a class="btn btn--primary" href="/contact">Get in touch</a>
<a class="btn" href={SITE.resume}>Résumé</a>
</p>
</div> </div>
<dl class="readout"> <dl class="readout">
<dt>Mail</dt> <dt>Email</dt>
<dd><a href={`mailto:${SITE.email}`}>{SITE.email}</a></dd> <dd><a href={`mailto:${SITE.email}`}>{SITE.email}</a></dd>
{ {
links.map(([name, href]) => ( links.map(([name, href]) => (
<> <>
<dt>{name}</dt> <dt>{name[0].toUpperCase() + name.slice(1)}</dt>
<dd> <dd>
<a href={href} rel="me noopener"> <a href={href} rel="me noopener">
{href.replace(/^https?:\/\//, '')} {href.replace(/^https?:\/\//, '')}
@@ -25,36 +31,53 @@ const links = Object.entries(SITE.links).filter(([, href]) => !href.includes('PL
</> </>
)) ))
} }
<dt>Feed</dt> <dt>RSS</dt>
<dd><a href="/rss.xml">/rss.xml</a></dd> <dd><a href="/rss.xml">yoyos.sh/rss.xml</a></dd>
</dl> </dl>
</div> </div>
<div class="wrap base label"> <div class="wrap base">
<span>© {year} {SITE.name}</span> <span>© {year} {SITE.name}</span>
<span>{SITE.coords}</span> <span>{SITE.location}</span>
<span>Self-hosted · built with Astro</span> <span>Self-hosted · Built with Astro</span>
</div> </div>
</footer> </footer>
<style> <style>
footer { footer {
margin-top: var(--space-9); margin-top: var(--space-9);
border-top: var(--border-w) solid var(--line-strong); background: var(--ink);
background: var(--bg-sunken); color: var(--paper);
padding-block: var(--space-7) var(--space-5); padding-bottom: var(--space-5);
--fg-muted: #a8a294;
--accent: var(--lime);
--accent-fg: var(--ink);
--line-strong: var(--paper);
--bg-raised: transparent;
--fg: var(--paper);
}
.lines {
display: grid;
grid-template-columns: repeat(6, 1fr);
height: 10px;
}
.lines span {
background: var(--c);
} }
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
gap: var(--space-7); gap: var(--space-7);
align-items: end; align-items: end;
padding-top: var(--space-8);
} }
.big { .big {
font-family: var(--font-display); font-family: var(--ff-mag);
font-weight: 800; font-size: var(--step-4);
font-size: var(--step-3); line-height: 1;
line-height: 0.95; letter-spacing: -0.02em;
text-transform: uppercase; }
.readout {
font-family: var(--ff-mono);
} }
.base { .base {
display: flex; display: flex;
@@ -63,6 +86,9 @@ const links = Object.entries(SITE.links).filter(([, href]) => !href.includes('PL
gap: var(--space-3); gap: var(--space-3);
margin-top: var(--space-7); margin-top: var(--space-7);
padding-top: var(--space-4); padding-top: var(--space-4);
border-top: 1px solid var(--line); border-top: 1px solid #3a3a34;
font-family: var(--ff-mono);
font-size: 0.75rem;
color: #a8a294;
} }
</style> </style>
+40
View File
@@ -0,0 +1,40 @@
---
// Round subway-line badge. Pass a discipline or explicit color + letter.
import { LINES, type Discipline } from '../lib/disciplines';
interface Props {
d?: Discipline;
letter?: string;
color?: string;
fg?: string;
size?: string;
title?: string;
}
const p = Astro.props;
const line = p.d ? LINES[p.d] : undefined;
const letter = p.letter ?? line?.letter ?? '';
const color = p.color ?? line?.color ?? 'var(--fg)';
const fg = p.fg ?? line?.fg ?? 'var(--bg)';
const title = p.title ?? line?.label;
---
<span class="badge" style={`--c:${color};--f:${fg};--s:${p.size ?? '1.6em'}`} title={title} aria-label={title}>
{letter}
</span>
<style>
.badge {
display: inline-grid;
place-items: center;
flex: none;
width: var(--s);
height: var(--s);
border-radius: 50%;
background: var(--c);
color: var(--f);
font-family: var(--ff-grotesk);
font-weight: 800;
font-size: calc(var(--s) * 0.55);
line-height: 1;
}
</style>
+6 -3
View File
@@ -27,10 +27,10 @@ const { src, alt, poster, ratio = '16 / 10' } = Astro.props;
loading="lazy" loading="lazy"
reveal="interaction" reveal="interaction"
> >
<button slot="poster" class="placeholder start">[ load model ]</button> <button slot="poster" class="placeholder start">Load 3D model</button>
<div slot="progress-bar" class="bar"></div> <div slot="progress-bar" class="bar"></div>
</model-viewer> </model-viewer>
<span class="label hud">Drag to orbit · scroll to zoom</span> <span class="hud">Drag to rotate · scroll to zoom</span>
</div> </div>
<script> <script>
@@ -41,7 +41,7 @@ const { src, alt, poster, ratio = '16 / 10' } = Astro.props;
el.querySelector('.start')?.addEventListener('click', () => el.dismissPoster?.()); el.querySelector('.start')?.addEventListener('click', () => el.dismissPoster?.());
el.addEventListener('error', () => { el.addEventListener('error', () => {
const btn = el.querySelector<HTMLElement>('.start'); const btn = el.querySelector<HTMLElement>('.start');
if (btn) btn.textContent = '[ signal lost — model not found ]'; if (btn) btn.textContent = 'This model isn’t available right now.';
}); });
}); });
}); });
@@ -72,6 +72,9 @@ const { src, alt, poster, ratio = '16 / 10' } = Astro.props;
color: var(--accent); color: var(--accent);
} }
.hud { .hud {
font-family: var(--font-mono);
font-size: 0.7rem;
color: var(--fg-muted);
position: absolute; position: absolute;
right: var(--space-3); right: var(--space-3);
bottom: var(--space-2); bottom: var(--space-2);
+63 -47
View File
@@ -7,8 +7,8 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
<header class="bar"> <header class="bar">
<div class="wrap row"> <div class="wrap row">
<a class="brand" href="/" aria-label={`${SITE.name}, home`}> <a class="brand" href="/" aria-label={`${SITE.name}, home`}>
<span class="mark" aria-hidden="true">Y/</span> <span class="mark" aria-hidden="true">yo</span>
<span class="name">yoyos<span class="accent">.sh</span></span> <span class="name">yoyos.sh</span>
</a> </a>
<nav aria-label="Main"> <nav aria-label="Main">
@@ -16,8 +16,12 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
{ {
NAV.map((item) => ( NAV.map((item) => (
<li> <li>
<a href={item.href} aria-current={isActive(item.href) ? 'page' : undefined}> <a
<span class="code" aria-hidden="true">{item.code}</span> href={item.href}
aria-current={isActive(item.href) ? 'page' : undefined}
style={`--c:${item.color};--f:${item.fg}`}
>
<span class="dot" aria-hidden="true" />
{item.label} {item.label}
</a> </a>
</li> </li>
@@ -27,8 +31,8 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
</nav> </nav>
<a class="status" href="/contact" title={SITE.availability.text}> <a class="status" href="/contact" title={SITE.availability.text}>
<span class:list={['dot', { off: !SITE.availability.open }]} aria-hidden="true"></span> <span class:list={['led', { off: !SITE.availability.open }]} aria-hidden="true"></span>
<span>{SITE.availability.open ? 'Available' : 'Busy'}</span> {SITE.availability.open ? 'Available for work' : 'Not available'}
</a> </a>
</div> </div>
</header> </header>
@@ -38,35 +42,39 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 100; z-index: 100;
border-bottom: var(--border-w) solid var(--line); background: color-mix(in oklab, var(--bg) 90%, transparent);
background: color-mix(in oklab, var(--bg) 88%, transparent);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
border-bottom: var(--border-w) solid var(--line-strong);
} }
.row { .row {
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--space-5); gap: var(--space-5);
min-height: 3.5rem; min-height: 3.75rem;
} }
.brand { .brand {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.6rem; gap: 0.55rem;
color: var(--fg);
text-decoration: none; text-decoration: none;
font-family: var(--font-mono); font-family: var(--ff-grotesk);
font-weight: 500; font-weight: 800;
font-stretch: 110%;
letter-spacing: -0.02em;
color: var(--fg);
} }
.mark { .mark {
display: grid; display: grid;
place-items: center; place-items: center;
width: 2rem; width: 2.2rem;
height: 2rem; height: 2.2rem;
background: var(--accent); border-radius: 50%;
color: var(--accent-fg); background: var(--red);
font-family: var(--font-display); color: #fff;
font-weight: 900; font-family: var(--ff-mag);
font-size: 1.1rem; font-size: 0.95rem;
font-weight: 400;
letter-spacing: -0.04em;
} }
nav { nav {
min-width: 0; min-width: 0;
@@ -82,58 +90,66 @@ const isActive = (href: string) => path === href || path.startsWith(href + '/');
} }
nav a { nav a {
display: flex; display: flex;
align-items: baseline; align-items: center;
gap: 0.35em; gap: 0.45em;
padding: 0.4em 0.7em; padding: 0.35em 0.8em;
color: var(--fg-muted); border-radius: 999px;
border: var(--border-w) solid transparent;
font-family: var(--ff-grotesk);
font-weight: 600;
font-size: 0.92rem;
text-decoration: none; text-decoration: none;
font-family: var(--font-mono);
font-size: var(--step--1);
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap; white-space: nowrap;
color: var(--fg);
} }
nav a:hover, .dot {
nav a[aria-current='page'] { width: 0.7em;
height: 0.7em;
border-radius: 50%;
background: var(--c);
box-shadow: 0 0 0 1.5px var(--line-strong);
}
nav a:hover {
border-color: var(--line-strong);
color: var(--fg); color: var(--fg);
} }
nav a[aria-current='page'] { nav a[aria-current='page'] {
box-shadow: inset 0 -2px 0 var(--signal); background: var(--c);
color: var(--f);
border-color: var(--line-strong);
} }
.code { nav a[aria-current='page'] .dot {
font-size: 0.7em; background: var(--f);
color: var(--accent);
} }
.status { .status {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5em; gap: 0.5em;
font-family: var(--font-mono); font-family: var(--ff-mono);
font-size: 0.72rem; font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--fg-muted); color: var(--fg-muted);
text-decoration: none; text-decoration: none;
white-space: nowrap; white-space: nowrap;
} }
.dot { .led {
width: 0.55rem; width: 0.6rem;
height: 0.55rem; height: 0.6rem;
background: var(--accent); border-radius: 50%;
box-shadow: var(--glow); background: #2fd36b;
box-shadow: 0 0 0 2px color-mix(in oklab, #2fd36b 30%, transparent);
animation: pulse 2.4s var(--ease) infinite; animation: pulse 2.4s var(--ease) infinite;
} }
.dot.off { .led.off {
background: var(--signal); background: var(--red);
animation: none; animation: none;
} }
@keyframes pulse { @keyframes pulse {
50% { 50% {
opacity: 0.35; box-shadow: 0 0 0 6px transparent;
} }
} }
@media (max-width: 52rem) { @media (max-width: 56rem) {
.row { .row {
flex-wrap: wrap; flex-wrap: wrap;
gap: var(--space-2) var(--space-4); gap: var(--space-2) var(--space-4);
+91 -66
View File
@@ -1,19 +1,25 @@
--- ---
import { Image } from 'astro:assets'; import { Image } from 'astro:assets';
import type { CollectionEntry } from 'astro:content'; import type { CollectionEntry } from 'astro:content';
import LineBadge from './LineBadge.astro';
import { LINES } from '../lib/disciplines';
interface Props { interface Props {
project: CollectionEntry<'work'>; project: CollectionEntry<'work'>;
index?: number; index?: number;
large?: boolean;
} }
const { project, index, large = false } = Astro.props; const { project, index } = Astro.props;
const { title, summary, disciplines, cover, coverAlt, status, date, placeholder } = project.data; const { title, summary, disciplines, cover, coverAlt, status, date, placeholder, stack } = project.data;
const fileNo = String(index ?? 0).padStart(3, '0'); const main = LINES[disciplines[0]];
const statusLabel = { live: 'Live', shipped: 'Shipped', 'in-progress': 'In progress', archived: 'Archived' }[status];
--- ---
<article class:list={['card', { large }]} data-disciplines={disciplines.join(' ')}> <article class="card" data-disciplines={disciplines.join(' ')} style={`--c:${main.color};--f:${main.fg}`}>
<a href={`/work/${project.id}`} class="link"> <a href={`/work/${project.id}`} class="link">
<div class="stripe">
<span class="no">{index !== undefined && String(index).padStart(2, '0')}</span>
<span class="badges">{disciplines.map((d) => <LineBadge d={d} size="1.5rem" />)}</span>
</div>
<div class="media"> <div class="media">
{ {
cover ? ( cover ? (
@@ -21,113 +27,132 @@ const fileNo = String(index ?? 0).padStart(3, '0');
src={cover} src={cover}
alt={coverAlt ?? ''} alt={coverAlt ?? ''}
widths={[480, 800, 1200]} widths={[480, 800, 1200]}
sizes={large ? '(min-width: 60rem) 60vw, 100vw' : '(min-width: 60rem) 30vw, 100vw'} sizes="(min-width: 60rem) 33vw, 100vw"
transition:name={`cover-${project.id}`} transition:name={`cover-${project.id}`}
/> />
) : ( ) : (
<div class="placeholder">[ no signal ]</div> <div class="placeholder">Images coming soon</div>
) )
} }
<span class="file label">File {fileNo}</span>
</div> </div>
<div class="body"> <div class="body">
<div class="meta label">
<span class:list={['status', status]}>{status.replace('-', ' ')}</span>
<span>{date.getFullYear()}</span>
{placeholder && <span class="signal">placeholder</span>}
</div>
<h3 transition:name={`title-${project.id}`}>{title}</h3> <h3 transition:name={`title-${project.id}`}>{title}</h3>
<p class="muted">{summary}</p> <p class="summary">{summary}</p>
<ul class="cluster tags"> <div class="meta">
{disciplines.map((d) => <li class="tag">{d}</li>)} <span class:list={['status', status]}>{statusLabel}</span>
</ul> <span>{date.getFullYear()}</span>
{stack[0] && <span>{stack.slice(0, 3).join(' · ')}</span>}
{placeholder && <span class="ph">Draft</span>}
</div>
</div> </div>
</a> </a>
</article> </article>
<style> <style>
.card { .card {
border: var(--border-w) solid var(--line); background: #fffdf7;
background: var(--bg-raised); color: var(--ink);
border: 2px solid var(--ink);
border-radius: 14px;
overflow: hidden;
transition: transition:
border-color 0.15s var(--ease), translate 0.15s var(--ease),
box-shadow 0.15s var(--ease), box-shadow 0.15s var(--ease);
translate 0.15s var(--ease);
} }
.card:hover { .card:hover {
border-color: var(--accent);
box-shadow: 6px 6px 0 var(--signal);
translate: -3px -3px; translate: -3px -3px;
box-shadow: 6px 6px 0 var(--ink);
} }
.link { .link {
display: grid; display: grid;
grid-template-rows: auto auto 1fr;
height: 100%; height: 100%;
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
} }
.large .link { .stripe {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); display: flex;
align-items: center;
justify-content: space-between;
padding: 0.45rem 0.6rem 0.45rem 0.9rem;
background: var(--c);
color: var(--f);
border-bottom: 2px solid var(--ink);
}
.no {
font-family: var(--ff-grotesk);
font-weight: 800;
font-size: 1.1rem;
letter-spacing: -0.03em;
}
.badges {
display: flex;
gap: 4px;
}
.badges :global(.badge) {
box-shadow: 0 0 0 2px #fffdf7;
} }
.media { .media {
position: relative; border-bottom: 2px solid var(--ink);
border-bottom: var(--border-w) solid var(--line); background: #e8e3d4;
overflow: hidden;
background: var(--bg-sunken);
} }
.large .media { .media :global(img),
border-bottom: 0; .placeholder {
border-inline-end: var(--border-w) solid var(--line);
}
.media :global(img) {
width: 100%; width: 100%;
height: 100%;
aspect-ratio: 16 / 10; aspect-ratio: 16 / 10;
object-fit: cover; object-fit: cover;
object-position: top left; object-position: top left;
filter: saturate(0.85) contrast(1.05);
transition: filter 0.3s var(--ease);
} }
.card:hover .media :global(img) { .placeholder {
filter: none; --fg: var(--ink);
} --fg-muted: #6b675d;
.file { --bg-sunken: #ebe6d6;
position: absolute;
top: 0;
left: 0;
padding: 0.2em 0.6em;
background: var(--bg);
color: var(--fg);
} }
.body { .body {
display: grid; display: grid;
align-content: start; align-content: start;
gap: var(--space-3); gap: 0.6rem;
padding: var(--space-5); padding: 1rem 1rem 1.1rem;
} }
.large .body { h3 {
align-content: center; font-family: var(--ff-grotesk);
padding: var(--space-6); font-weight: 800;
font-stretch: 100%;
font-size: var(--step-2);
letter-spacing: -0.035em;
text-transform: none;
line-height: 1;
} }
.large h3 { .summary {
font-size: var(--step-4); color: #4a4740;
font-size: 0.95rem;
line-height: 1.5;
} }
.meta { .meta {
display: flex; display: flex;
gap: var(--space-4); flex-wrap: wrap;
gap: 0.35rem 0.9rem;
font-family: var(--ff-mono);
font-size: 0.72rem;
color: #6b675d;
} }
.status::before { .status::before {
content: '■ '; content: '';
display: inline-block;
width: 0.55em;
height: 0.55em;
margin-right: 0.4em;
border-radius: 50%;
background: #9a958a;
} }
.status.live, .status.live::before,
.status.shipped { .status.shipped::before {
color: var(--accent); background: #2fb36b;
} }
.status.in-progress { .status.in-progress::before {
color: var(--signal); background: var(--orange);
} }
.tags { .ph {
--cluster-gap: var(--space-2); color: var(--red);
list-style: none;
padding: 0;
} }
</style> </style>
-49
View File
@@ -1,49 +0,0 @@
---
interface Props {
code: string;
title: string;
href?: string;
linkLabel?: string;
}
const { code, title, href, linkLabel = 'View all' } = Astro.props;
---
<div class="head">
<span class="label label--accent">// {code}</span>
<h2>{title}</h2>
<span class="rule" aria-hidden="true"></span>
{href && <a class="label more" href={href}>{linkLabel} →</a>}
</div>
<style>
.head {
display: grid;
grid-template-columns: auto auto 1fr auto;
align-items: end;
gap: var(--space-4);
margin-bottom: var(--space-6);
}
.rule {
height: var(--border-w);
background: var(--line);
margin-bottom: 0.6em;
}
.more {
text-decoration: none;
margin-bottom: 0.3em;
}
.more:hover {
color: var(--signal);
}
@media (max-width: 40rem) {
.head {
grid-template-columns: 1fr auto;
}
.head .label:first-child {
grid-column: 1 / -1;
}
.rule {
display: none;
}
}
</style>
+48
View File
@@ -0,0 +1,48 @@
---
// Decorative barcode generated from a string, like the corner of a magazine cover.
interface Props {
value: string;
height?: number;
}
const { value, height = 44 } = Astro.props;
let x = 0;
const bars: { x: number; w: number }[] = [];
for (const ch of `*${value}*`) {
let n = ch.charCodeAt(0);
for (let i = 0; i < 5; i++) {
const w = (n % 3) + 1;
if (i % 2 === 0) bars.push({ x, w });
x += w + 1;
n = Math.floor(n / 3) + i;
}
}
const digits = [...value].map((c) => c.charCodeAt(0) % 10).join('').slice(0, 13).padEnd(13, '0');
---
<figure class="barcode" aria-hidden="true">
<svg viewBox={`0 0 ${x} ${height}`} preserveAspectRatio="none">
{bars.map((b) => <rect x={b.x} y="0" width={b.w} height={height} />)}
</svg>
<figcaption>{digits.replace(/^(\d)(\d{6})(\d{6})$/, '$1 $2 $3')}</figcaption>
</figure>
<style>
.barcode {
display: inline-grid;
gap: 2px;
padding: 6px 8px 4px;
background: #fff;
color: #111;
}
svg {
width: 9rem;
height: 2.6rem;
fill: currentColor;
}
figcaption {
font-family: var(--ff-mono);
font-size: 0.68rem;
letter-spacing: 0.18em;
text-align: center;
}
</style>
+44
View File
@@ -0,0 +1,44 @@
---
// Postage-stamp frame with perforated edges.
interface Props {
color?: string;
class?: string;
rotate?: number;
}
const { color = 'var(--paper-2)', class: cls, rotate = 0 } = Astro.props;
---
<div class:list={['wrapper', cls]}>
<div class="stamp" style={`--c:${color};--rot:${rotate}deg`}>
<div class="inner"><slot /></div>
</div>
</div>
<style>
.stamp {
--r: 5px;
padding: calc(var(--r) * 2.4);
background: var(--c);
rotate: var(--rot);
/* half-circle bites along the edges + a solid center */
-webkit-mask:
radial-gradient(circle var(--r) at var(--r) var(--r), #0000 96%, #000) calc(-1 * var(--r))
calc(-1 * var(--r)) / calc(var(--r) * 2 + 4px) calc(var(--r) * 2 + 4px) round,
linear-gradient(#000 0 0) content-box;
mask:
radial-gradient(circle var(--r) at var(--r) var(--r), #0000 96%, #000) calc(-1 * var(--r))
calc(-1 * var(--r)) / calc(var(--r) * 2 + 4px) calc(var(--r) * 2 + 4px) round,
linear-gradient(#000 0 0) content-box;
}
.wrapper {
filter: drop-shadow(3px 4px 0 rgb(0 0 0 / 0.25));
}
.inner {
height: 100%;
overflow: hidden;
}
.inner :global(svg) {
width: 100%;
height: auto;
}
</style>
+51
View File
@@ -0,0 +1,51 @@
---
// Print-ad starburst ("NEW!", "OPEN TO WORK!"). Purely decorative SVG + text.
interface Props {
color?: string;
ink?: string;
points?: number;
size?: string;
rotate?: number;
class?: string;
}
const { color = 'var(--yellow)', ink = 'var(--ink)', points = 18, size = '9rem', rotate = -8, class: cls } = Astro.props;
const pts: string[] = [];
for (let i = 0; i < points * 2; i++) {
const r = i % 2 === 0 ? 50 : 36 + ((i * 7) % 5);
const a = (Math.PI * i) / points;
pts.push(`${(50 + r * Math.cos(a)).toFixed(2)},${(50 + r * Math.sin(a)).toFixed(2)}`);
}
---
<div class:list={['burst', cls]} style={`--size:${size};--rot:${rotate}deg;--c:${color};--ink:${ink}`}>
<svg viewBox="-2 -2 104 104" aria-hidden="true">
<polygon points={pts.join(' ')} fill="var(--c)" stroke="var(--ink)" stroke-width="2" stroke-linejoin="round" />
</svg>
<span><slot /></span>
</div>
<style>
.burst {
position: relative;
display: grid;
place-items: center;
width: var(--size);
aspect-ratio: 1;
rotate: var(--rot);
color: var(--ink);
}
svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
span {
position: relative;
width: 70%;
text-align: center;
font-family: var(--ff-mag);
font-size: calc(var(--size) * 0.12);
line-height: 1.05;
}
</style>
+62
View File
@@ -0,0 +1,62 @@
---
// Retro OS window frame with a title bar.
interface Props {
title: string;
class?: string;
as?: 'div' | 'article' | 'section';
}
const { title, class: cls, as: Tag = 'div' } = Astro.props;
---
<Tag class:list={['win', cls]}>
<div class="titlebar">
<span class="title">{title}</span>
<span class="btns" aria-hidden="true"><i>_</i><i>□</i><i>×</i></span>
</div>
<div class="body"><slot /></div>
</Tag>
<style>
.win {
border: 2px solid var(--cobalt);
background: var(--bg-raised);
box-shadow: 5px 5px 0 color-mix(in oklab, var(--cobalt) 30%, transparent);
}
.titlebar {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
padding: 0.25rem 0.35rem 0.25rem 0.6rem;
background: linear-gradient(90deg, var(--cobalt), color-mix(in oklab, var(--cobalt) 65%, var(--sky)));
color: #fff;
font-family: var(--ff-pixel);
font-size: 0.9rem;
}
.title {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btns {
display: flex;
gap: 3px;
}
.btns i {
display: grid;
place-items: center;
width: 1.2rem;
height: 1.1rem;
background: #e9ecdf;
color: #10172e;
font-style: normal;
font-size: 0.75rem;
line-height: 1;
box-shadow:
inset -1px -1px 0 #7d8597,
inset 1px 1px 0 #fff;
}
.body {
padding: var(--space-5);
}
</style>
+8 -8
View File
@@ -5,7 +5,7 @@ import { THEMES } from './lib/themes';
const theme = z.enum(THEMES).optional(); const theme = z.enum(THEMES).optional();
export const DISCIPLINES = ['software', 'web', 'game', 'hardware', '3d', 'music'] as const; import { DISCIPLINES } from './lib/disciplines';
/** /**
* Projects. One .md/.mdx file per project in src/content/work/. * Projects. One .md/.mdx file per project in src/content/work/.
@@ -45,9 +45,9 @@ const work = defineCollection({
}), }),
}); });
/** Weekly log / blog. */ /** Weekly blog. */
const log = defineCollection({ const blog = defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/log' }), loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }),
schema: ({ image }) => schema: ({ image }) =>
z.object({ z.object({
title: z.string(), title: z.string(),
@@ -61,9 +61,9 @@ const log = defineCollection({
}), }),
}); });
/** Recordings. Audio files live in the media share under sound/. */ /** Recordings. Audio files live in the media share under music/. */
const sound = defineCollection({ const music = defineCollection({
loader: glob({ pattern: '**/*.{md,yaml,yml,json}', base: './src/content/sound' }), loader: glob({ pattern: '**/*.{md,yaml,yml,json}', base: './src/content/music' }),
schema: z.object({ schema: z.object({
title: z.string(), title: z.string(),
date: z.coerce.date(), date: z.coerce.date(),
@@ -87,4 +87,4 @@ const models = defineCollection({
}), }),
}); });
export const collections = { work, log, sound, models }; export const collections = { work, blog, music, models };
+15
View File
@@ -0,0 +1,15 @@
---
title: Building this site
summary: Why I built a portfolio from scratch, what it runs on, and what I'll be writing about here each week.
date: 2026-10-08
tags: [astro, self-hosting, design]
---
Placeholder for the first weekly post.
This site is built with Astro, React islands and plain CSS. It runs in a Docker container on
my own Coolify server, and the heavy media (game builds, recordings, 3D models) is served
from my NAS. Every page has its own visual style, drawn from old print ads, transit maps,
radio flyers and early computer graphics.
Each week I'll post what I worked on: code, builds, 3D models and music.
-14
View File
@@ -1,14 +0,0 @@
---
title: 'Transmission 000: Boot Sequence'
summary: Why this site exists, what it's built with, and what's going in the log each week.
date: 2026-10-08
tags: [meta, site]
---
Placeholder for the first weekly log entry.
This site is built with Astro, React islands and plain CSS. It runs in a Docker container on
my own Coolify server, and the heavy media (game builds, recordings, 3D models) is served
from my NAS.
Each week I'll post what I worked on: code, builds, models and music.
+5
View File
@@ -0,0 +1,5 @@
title: Placeholder Take
date: 2026-10-01
file: music/placeholder-take.mp3
notes: Upload an mp3/ogg/flac to the media share under music/ and point `file` at it.
gear: [Guitar, Interface]
-5
View File
@@ -1,5 +0,0 @@
title: Placeholder Take
date: 2026-10-01
file: sound/placeholder-take.mp3
notes: Upload an mp3/ogg/flac to the media share under sound/ and point `file` at it.
gear: [Guitar, Interface]
+1 -1
View File
@@ -6,7 +6,7 @@ stack: [React, Three.js, Blender]
date: 2026-06-01 date: 2026-06-01
status: in-progress status: in-progress
placeholder: true placeholder: true
theme: concrete theme: vector
--- ---
Placeholder. Write-up coming soon, with an interactive viewer for the city map. Placeholder. Write-up coming soon, with an interactive viewer for the city map.
-1
View File
@@ -6,7 +6,6 @@ stack: []
date: 2025-09-01 date: 2025-09-01
status: shipped status: shipped
placeholder: true placeholder: true
theme: concrete
--- ---
Placeholder. Placeholder.
+1 -1
View File
@@ -6,7 +6,7 @@ stack: [Proxmox, Docker, Podman, LXC, NixOS, Coolify, Gitea]
date: 2025-04-01 date: 2025-04-01
status: live status: live
placeholder: true placeholder: true
theme: nostromo theme: terminal
--- ---
Placeholder. A write-up of the rack, the network and the services is coming soon. Placeholder. A write-up of the rack, the network and the services is coming soon.
+1 -1
View File
@@ -6,7 +6,7 @@ stack: [Godot]
date: 2026-01-01 date: 2026-01-01
status: in-progress status: in-progress
placeholder: true placeholder: true
theme: overgrowth theme: desktop
# Uncomment when a web export is uploaded to <media share>/games/untitled-game/ # Uncomment when a web export is uploaded to <media share>/games/untitled-game/
# game: # game:
# engine: godot # engine: godot
-3
View File
@@ -16,7 +16,6 @@ links:
import Figure from '../../../components/Figure.astro'; import Figure from '../../../components/Figure.astro';
import Gallery from '../../../components/Gallery.astro'; import Gallery from '../../../components/Gallery.astro';
import overview from './overview.png';
import status from './usmt-status.png'; import status from './usmt-status.png';
import terminals from './terminals.png'; import terminals from './terminals.png';
import software from './missing-software.png'; import software from './missing-software.png';
@@ -38,8 +37,6 @@ bottleneck.
USMT Dash is one shared live view of the whole refresh. Every device answers in **under a USMT Dash is one shared live view of the whole refresh. Every device answers in **under a
second**, and the overview page is built to drive the refresh's open issues to zero. second**, and the overview page is built to drive the refresh's open issues to zero.
<Figure src={overview} alt="Overview page" caption="Overview: issue counters, progress, a building × floor map, and a calendar of deployment-date tags." />
It's **PowerShell from end to end**, with no web framework, database server or runtime It's **PowerShell from end to end**, with no web framework, database server or runtime
beyond PowerShell. That was deliberate: it had to run on locked-down hospital beyond PowerShell. That was deliberate: it had to run on locked-down hospital
infrastructure where installing a stack wasn't an option. infrastructure where installing a stack wasn't an option.
+3 -3
View File
@@ -9,7 +9,7 @@ import '../styles/global.css';
interface Props { interface Props {
title?: string; title?: string;
description?: string; description?: string;
/** Any theme from src/styles/themes. Defaults to "terminal". */ /** Any theme from src/styles/themes. Defaults to "magazine". */
theme?: Theme; theme?: Theme;
/** Extra class on <body> for page-level styling hooks. */ /** Extra class on <body> for page-level styling hooks. */
bodyClass?: string; bodyClass?: string;
@@ -20,7 +20,7 @@ interface Props {
const { const {
title, title,
description = SITE.description, description = SITE.description,
theme = 'terminal', theme = 'magazine',
bodyClass, bodyClass,
image, image,
type = 'website', type = 'website',
@@ -51,7 +51,7 @@ const person = {
<meta name="description" content={description} /> <meta name="description" content={description} />
<link rel="canonical" href={canonical} /> <link rel="canonical" href={canonical} />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" /> <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="alternate" type="application/rss+xml" title={`${SITE.name} — Log`} href="/rss.xml" /> <link rel="alternate" type="application/rss+xml" title={`${SITE.name} — Blog`} href="/rss.xml" />
<link rel="sitemap" href="/sitemap-index.xml" /> <link rel="sitemap" href="/sitemap-index.xml" />
<meta property="og:type" content={type} /> <meta property="og:type" content={type} />
+12
View File
@@ -0,0 +1,12 @@
// Project categories. Each one is a "subway line" with a letter and color.
export const DISCIPLINES = ['software', 'web', 'game', 'hardware', '3d', 'music'] as const;
export type Discipline = (typeof DISCIPLINES)[number];
export const LINES: Record<Discipline, { label: string; letter: string; color: string; fg: string }> = {
software: { label: 'Software & Tools', letter: 'S', color: 'var(--emerald)', fg: '#fff' },
web: { label: 'Web', letter: 'W', color: 'var(--cobalt)', fg: '#fff' },
game: { label: 'Games', letter: 'G', color: 'var(--red)', fg: '#fff' },
hardware: { label: 'Hardware', letter: 'H', color: 'var(--orange)', fg: '#141412' },
'3d': { label: '3D', letter: '3', color: 'var(--violet)', fg: '#fff' },
music: { label: 'Music', letter: 'M', color: 'var(--yellow)', fg: '#141412' },
};
+1 -1
View File
@@ -3,7 +3,7 @@
* NAS in Nextcloud, not in git. They're served through this site's /media/* * NAS in Nextcloud, not in git. They're served through this site's /media/*
* proxy so URLs stay on yoyos.sh and headers can be set per file type. * proxy so URLs stay on yoyos.sh and headers can be set per file type.
* *
* media('sound/demo.mp3') -> '/media/sound/demo.mp3' * media('music/demo.mp3') -> '/media/music/demo.mp3'
*/ */
export function media(path: string): string { export function media(path: string): string {
if (/^https?:\/\//.test(path)) return path; if (/^https?:\/\//.test(path)) return path;
+6 -7
View File
@@ -7,7 +7,6 @@ export const SITE = {
description: description:
'Johan Sandoval builds the tools other teams run on: dashboards, automation and web apps, plus games, 3D models, hardware and music.', 'Johan Sandoval builds the tools other teams run on: dashboards, automation and web apps, plus games, 3D models, hardware and music.',
location: 'Chicago, IL', location: 'Chicago, IL',
coords: '41.8781° N, 87.6298° W',
email: 'contact@mail.yoyos.sh', email: 'contact@mail.yoyos.sh',
// Shown in the status readout. Flip `open` off when you take a job. // Shown in the status readout. Flip `open` off when you take a job.
availability: { availability: {
@@ -24,10 +23,10 @@ export const SITE = {
} as const; } as const;
export const NAV = [ export const NAV = [
{ href: '/work', label: 'Work', code: '01' }, { href: '/work', label: 'Work', color: 'var(--line-work)', fg: '#fff' },
{ href: '/log', label: 'Log', code: '02' }, { href: '/blog', label: 'Blog', color: 'var(--line-blog)', fg: '#fff' },
{ href: '/sound', label: 'Sound', code: '03' }, { href: '/music', label: 'Music', color: 'var(--line-music)', fg: '#141412' },
{ href: '/models', label: 'Models', code: '04' }, { href: '/models', label: '3D', color: 'var(--line-3d)', fg: '#fff' },
{ href: '/about', label: 'About', code: '05' }, { href: '/about', label: 'About', color: 'var(--line-about)', fg: '#fff' },
{ href: '/contact', label: 'Contact', code: '06' }, { href: '/contact', label: 'Contact', color: 'var(--line-contact)', fg: '#141412' },
] as const; ] as const;
+11 -1
View File
@@ -1,3 +1,13 @@
// Every theme in src/styles/themes/. Pages and content entries pick one by name. // Every theme in src/styles/themes/. Pages and content entries pick one by name.
export const THEMES = ['terminal', 'concrete', 'nostromo', 'overgrowth'] as const; export const THEMES = [
'magazine', // home: 90s magazine cover
'transit', // work index: subway map
'spec', // project pages: technical poster
'desktop', // blog: 90s desktop windows
'radio', // music: radio flyer
'vector', // 3D: 80s computer graphics
'garden', // about
'postcard', // contact
'terminal', // green-phosphor CRT
] as const;
export type Theme = (typeof THEMES)[number]; export type Theme = (typeof THEMES)[number];
+38 -8
View File
@@ -1,24 +1,54 @@
--- ---
import Base from '../layouts/Base.astro'; import Base from '../layouts/Base.astro';
import Window from '../components/deco/Window.astro';
--- ---
<Base title="Signal lost" theme="nostromo"> <Base title="Page not found" theme="desktop">
<section class="wrap section"> <section class="wrap section">
<p class="label signal">ERR 404 // SECTOR NOT FOUND</p> <Window title="Error 404" class="dialog">
<h1 class="glow">Signal lost</h1> <div class="row">
<p class="muted">Nothing at this address. It may have moved, or it never existed.</p> <svg class="icon" viewBox="0 0 32 32" shape-rendering="crispEdges" aria-hidden="true">
<p><a class="btn btn--primary" href="/">Return to base</a></p> <path d="M16 2 L30 28 H2 Z" fill="#ffd31a" stroke="#10172e" stroke-width="2" />
<rect x="15" y="11" width="3" height="9" fill="#10172e" />
<rect x="15" y="22" width="3" height="3" fill="#10172e" />
</svg>
<div class="stack">
<h1>Page not found</h1>
<p>This page doesn't exist or has moved. Do you want to go back?</p>
</div>
</div>
<div class="cluster actions">
<a class="btn btn--primary" href="/">Go to homepage</a>
<a class="btn" href="/work">See my work</a>
</div>
</Window>
</section> </section>
</Base> </Base>
<style> <style>
section { section {
display: grid; display: grid;
place-items: center;
min-height: 60vh;
}
.dialog {
width: min(100%, 34rem);
}
.row {
display: grid;
grid-template-columns: auto 1fr;
gap: var(--space-5); gap: var(--space-5);
min-height: 50vh; align-items: start;
align-content: center; }
.icon {
width: 3rem;
} }
h1 { h1 {
font-size: var(--step-5); font-size: var(--step-3);
color: var(--cobalt);
}
.actions {
justify-content: flex-end;
margin-top: var(--space-6);
} }
</style> </style>
+235 -66
View File
@@ -44,64 +44,100 @@ const timeline = [
notes: ['Built a React + Tailwind trainer booking site. Bookings rose 50% in the first month.'], notes: ['Built a React + Tailwind trainer booking site. Bookings rose 50% in the first month.'],
}, },
{ {
when: 'B.S.', when: 'Education',
what: 'B.S. Computer Engineering', what: 'B.S. Computer Engineering',
where: 'University of Illinois Urbana-Champaign', where: 'University of Illinois Urbana-Champaign',
notes: [], notes: [],
}, },
]; ];
// Deterministic grass blades for the hero.
const blades = Array.from({ length: 140 }, (_, i) => {
const r = (n: number) => ((Math.sin(i * 12.9898 + n * 78.233) * 43758.5453) % 1 + 1) % 1;
const x = (i / 140) * 1200 + r(1) * 10;
const h = 70 + r(2) * 150;
const lean = (r(3) - 0.5) * 60;
const shade = ['#2f7a1f', '#4c9a2a', '#6bb534', '#3d8a26', '#8cc63f', '#1f5e17'][Math.floor(r(4) * 6)];
return { d: `M${x.toFixed(1)} 260 Q ${(x + lean / 2).toFixed(1)} ${(260 - h / 2).toFixed(1)} ${(x + lean).toFixed(1)} ${(260 - h).toFixed(1)}`, shade, w: (3 + r(5) * 5).toFixed(1) };
});
const flowers = Array.from({ length: 14 }, (_, i) => ({ x: 40 + ((i * 197) % 1120), y: 90 + ((i * 61) % 110) }));
--- ---
<Base title="About" description="About Johan Sandoval: background, skills and experience." theme="concrete"> <Base title="About" description="About Johan Sandoval: background, skills and experience." theme="garden">
<section class="wrap section"> <section class="hero">
<p class="label label--accent">// 05 — Operator profile</p> <svg class="grass" viewBox="0 0 1200 260" preserveAspectRatio="xMidYMax slice" aria-hidden="true">
<h1>About</h1> <rect width="1200" height="260" fill="#3f8a22" />
{blades.map((b) => <path d={b.d} stroke={b.shade} stroke-width={b.w} fill="none" stroke-linecap="round" />)}
{
flowers.map((f) => (
<g transform={`translate(${f.x} ${f.y})`}>
<circle r="6" fill="#fffdf5" />
<circle r="2.4" fill="#ffd31a" />
</g>
))
}
</svg>
<div class="wrap intro">
<h1>about me<sup>*</sup></h1>
<p class="tagline">software engineer in chicago. i like building useful things.</p>
</div>
</section>
<div class="intro"> <div class="strip"><div class="wrap">Automation, internal tools and web apps, plus games, 3D, hardware and music on the side.</div></div>
<div class="prose lead">
<p>
I'm a deployment services technical lead who builds the tooling the deployments run on.
Over two years and 16,000+ devices across healthcare, higher-ed, agriculture and
hospitality, I wrote the PowerShell, Python and SQL automation behind them in house.
</p>
<p>
Most recently that was <a href="/work/usmt-dash">USMT Dash</a>, a web dashboard over SCCM
that took a six-person team from 10 machine builds a day to 25. Now I'm looking for my
next role as a software engineer.
</p>
<p>
Outside work I run a homelab, model in Blender, build games in Godot and Unity, make
hardware, and play guitar. All of it ends up on this site.
</p>
<p class="cluster">
<a class="btn btn--primary" href={SITE.resume}>Download résumé</a>
<a class="btn" href="/contact">Get in touch</a>
</p>
</div>
<dl class="readout panel" data-tab="Skills"> <section class="wrap section intro-grid">
{ <div class="blob prose">
skills.map((s) => ( <p>
<> I'm a deployment technical lead who builds the tooling the deployments run on. Over two
<dt>{s.k}</dt> years and 16,000+ devices across healthcare, higher-ed, agriculture and hospitality, I wrote
<dd>{s.v.join(' · ')}</dd> the PowerShell, Python and SQL automation behind them in house.
</> </p>
)) <p>
} Most recently that was <a href="/work/usmt-dash">USMT Dash</a>, a web dashboard over SCCM
</dl> that took a six-person team from 10 machine builds a day to 25. Now I'm looking for my next
role as a software engineer.
</p>
<p>
Outside work I run a homelab, model in Blender, build games in Godot and Unity, make
hardware and play guitar. All of it ends up on this site.
</p>
<p class="cluster">
<a class="btn btn--primary" href={SITE.resume}>Download résumé</a>
<a class="btn" href="/contact">Get in touch</a>
</p>
</div> </div>
</section> </section>
<section class="wrap section"> <section class="wrap section">
<h2>Service record</h2> <h2>skills</h2>
<ul class="packets">
{
skills.map((s, i) => (
<li class="packet" style={`--rot:${[-2, 1.5, -1, 2, -1.5][i % 5]}deg`}>
<span class="kit">skill set</span>
<h3>{s.k}</h3>
<ul>
{s.v.map((v) => (
<li>{v}</li>
))}
</ul>
<span class="count">{s.v.length} items</span>
</li>
))
}
</ul>
</section>
<section class="wrap section">
<h2>experience</h2>
<ol class="timeline"> <ol class="timeline">
{ {
timeline.map((t) => ( timeline.map((t) => (
<li> <li>
<span class="label when">{t.when}</span> <span class="when">{t.when}</span>
<div class="stack"> <div class="stack">
<h3>{t.what}</h3> <h3>{t.what}</h3>
<p class="label">{t.where}</p> <p class="where">{t.where}</p>
{t.notes.length > 0 && ( {t.notes.length > 0 && (
<ul> <ul>
{t.notes.map((n) => ( {t.notes.map((n) => (
@@ -118,40 +154,179 @@ const timeline = [
</Base> </Base>
<style> <style>
h1 { .hero {
margin-block: var(--space-3) var(--space-7); position: relative;
font-size: var(--step-5); overflow: hidden;
min-height: clamp(20rem, 42vw, 30rem);
display: grid;
align-items: center;
}
.grass {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
} }
.intro { .intro {
display: grid; position: relative;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); padding-block: var(--space-8);
gap: var(--space-7);
align-items: start;
} }
.lead { h1 {
font-size: clamp(4.5rem, 15vw, 11rem);
line-height: 0.8;
color: #fffdf5;
text-shadow: 0 4px 24px rgb(0 0 0 / 0.25);
}
h1 sup {
font-size: 0.5em;
vertical-align: top;
color: var(--lime);
}
.tagline {
margin-top: var(--space-4);
color: #fffdf5;
font-family: var(--ff-grotesk);
font-weight: 500;
font-stretch: 115%;
font-size: var(--step-1);
text-shadow: 0 2px 10px rgb(0 0 0 / 0.35);
}
.strip {
padding-block: 0.4rem;
border-block: 2px solid var(--fg);
font-family: var(--ff-grotesk);
font-stretch: 112%;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.blob {
max-width: 52rem;
margin-inline: auto;
padding: clamp(1.75rem, 5vw, 3.5rem);
background: var(--bg-raised);
border: 2px solid var(--fg);
border-radius: 48% 52% 46% 54% / 12% 10% 14% 12%;
font-size: var(--step-1); font-size: var(--step-1);
} }
.readout { .blob a {
grid-template-columns: 1fr; text-decoration-color: var(--lime);
gap: 0.2em; text-decoration-thickness: 0.3em;
} text-underline-offset: -0.05em;
.readout dd { text-decoration-skip-ink: none;
margin-bottom: var(--space-4);
} }
h2 { h2 {
font-size: var(--step-4);
margin-bottom: var(--space-6); margin-bottom: var(--space-6);
} }
.timeline {
.packets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
gap: var(--space-5);
list-style: none; list-style: none;
padding: 0; padding: 0;
border-top: var(--border-w) solid var(--line-strong); }
.packet {
position: relative;
display: grid;
align-content: start;
gap: var(--space-2);
padding: var(--space-4) var(--space-4) var(--space-6);
background: #fffdf5;
border: 2px solid var(--fg);
border-radius: 6px;
rotate: var(--rot);
box-shadow: 0 10px 20px -12px rgb(0 0 0 / 0.4);
transition: rotate 0.2s var(--ease);
}
.packet:hover {
rotate: 0deg;
}
.kit {
font-family: var(--ff-mono);
font-size: 0.65rem;
text-transform: uppercase;
color: var(--fg-muted);
}
.packet h3 {
font-size: var(--step-2);
color: var(--accent);
}
.packet ul {
display: flex;
flex-wrap: wrap;
gap: 4px;
list-style: none;
padding: 0;
}
.packet ul li {
padding: 0.1em 0.6em;
background: var(--bg-sunken);
border-radius: 999px;
font-size: 0.85rem;
}
.count {
position: absolute;
right: var(--space-3);
bottom: var(--space-2);
padding: 0.05em 0.6em;
background: var(--fg);
color: var(--bg);
border-radius: 999px;
font-family: var(--ff-mono);
font-size: 0.65rem;
}
.timeline {
position: relative;
list-style: none;
padding: 0 0 0 2rem;
}
.timeline::before {
content: '';
position: absolute;
left: 0.45rem;
top: 0.5rem;
bottom: 0.5rem;
width: 4px;
border-radius: 2px;
background: var(--accent);
} }
.timeline > li { .timeline > li {
position: relative;
display: grid; display: grid;
grid-template-columns: 10rem 1fr; gap: var(--space-2);
gap: var(--space-5); padding-bottom: var(--space-7);
padding-block: var(--space-5); }
border-bottom: var(--border-w) solid var(--line); .timeline > li::before {
content: '';
position: absolute;
left: -2rem;
top: 0.2rem;
width: 1.2rem;
height: 1.2rem;
border-radius: 50%;
background: var(--signal);
border: 3px solid var(--fg);
}
.when {
font-family: var(--ff-mono);
font-size: var(--step--1);
color: var(--fg-muted);
}
.timeline h3 {
font-size: var(--step-2);
text-transform: none;
letter-spacing: -0.03em;
font-stretch: 100%;
}
.where {
font-family: var(--ff-grotesk);
font-weight: 600;
color: var(--accent);
} }
.timeline .stack { .timeline .stack {
--stack-gap: var(--space-2); --stack-gap: var(--space-2);
@@ -161,12 +336,6 @@ const timeline = [
max-width: var(--prose-w); max-width: var(--prose-w);
} }
.timeline ul li::marker { .timeline ul li::marker {
color: var(--signal); color: var(--accent);
}
@media (max-width: 40rem) {
.timeline > li {
grid-template-columns: 1fr;
gap: var(--space-2);
}
} }
</style> </style>
+84
View File
@@ -0,0 +1,84 @@
---
import { getCollection, render } from 'astro:content';
import { Image } from 'astro:assets';
import Base from '../../layouts/Base.astro';
import Window from '../../components/deco/Window.astro';
export async function getStaticPaths() {
const posts = await getCollection('blog', ({ data }) => import.meta.env.DEV || !data.draft);
return posts.map((post) => ({ params: { slug: post.id }, props: { post } }));
}
const { post } = Astro.props;
const { Content } = await render(post);
const d = post.data;
const words = post.body?.split(/\s+/).length ?? 0;
const minutes = Math.max(1, Math.round(words / 230));
const date = d.date.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
---
<Base title={d.title} description={d.summary} theme={d.theme ?? 'desktop'} type="article" image={d.cover?.src}>
<section class="wrap section">
<a class="back" href="/blog">← Back to blog</a>
<Window title={`${post.id}.md`} as="article" class="post">
<header>
<p class="meta">
<time datetime={d.date.toISOString()}>{date}</time> · {minutes} min read
</p>
<h1>{d.title}</h1>
<p class="summary">{d.summary}</p>
{d.tags.length > 0 && <p class="cluster tags">{d.tags.map((t) => <span class="tag">{t}</span>)}</p>}
</header>
{
d.cover && (
<Image class="cover" src={d.cover} alt={d.coverAlt ?? ''} widths={[800, 1280]} sizes="(min-width: 68ch) 68ch, 100vw" />
)
}
<div class="prose">
<Content />
</div>
</Window>
</section>
</Base>
<style>
section {
max-width: calc(var(--prose-w) + 6rem + 2 * var(--gutter));
}
.back {
display: inline-block;
margin-bottom: var(--space-5);
font-family: var(--ff-pixel);
text-decoration: none;
}
.post :global(.body) {
padding: clamp(1.25rem, 4vw, 3rem);
}
header {
display: grid;
gap: var(--space-3);
margin-bottom: var(--space-6);
padding-bottom: var(--space-5);
border-bottom: 2px dashed var(--line);
}
.meta {
font-family: var(--ff-pixel);
color: var(--fg-muted);
}
h1 {
font-size: var(--step-4);
color: var(--cobalt);
}
.summary {
font-size: var(--step-1);
color: var(--fg-muted);
}
.tags {
--cluster-gap: 4px;
}
.cover {
width: 100%;
margin-bottom: var(--space-6);
border: 2px solid var(--cobalt);
}
</style>
+167
View File
@@ -0,0 +1,167 @@
---
import { getCollection } from 'astro:content';
import Base from '../../layouts/Base.astro';
import Window from '../../components/deco/Window.astro';
const posts = (await getCollection('blog', ({ data }) => import.meta.env.DEV || !data.draft)).sort(
(a, b) => +b.data.date - +a.data.date,
);
const fmt = (d: Date) => d.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
---
<Base title="Blog" description="Weekly notes from Johan Sandoval on what he's building." theme="desktop">
<section class="wrap section desk">
<div class="hero">
<div class="loading" aria-hidden="true">
<span class="bar"><i></i></span>
<span>Loading…</span>
</div>
<h1>Blog</h1>
<p class="sub">
Weekly notes on what I'm building: code, homelab, games, 3D and music.{' '}
<a href="/rss.xml">Subscribe via RSS</a>.
</p>
</div>
<Window title={`C:\\yoyos\\blog — ${posts.length} ${posts.length === 1 ? 'post' : 'posts'}`} class="list">
<ol class="posts">
{
posts.map((post) => (
<li>
<a href={`/blog/${post.id}`}>
<span class="icon" aria-hidden="true">
<svg viewBox="0 0 16 16" shape-rendering="crispEdges">
<path d="M3 1h7l3 3v11H3z" fill="#fff" stroke="currentColor" />
<path d="M10 1v3h3M5 7h6M5 9h6M5 11h4" stroke="currentColor" />
</svg>
</span>
<span class="t">
{post.data.title}
{post.data.draft && <span class="tag">draft</span>}
</span>
<time datetime={post.data.date.toISOString()}>{fmt(post.data.date)}</time>
<span class="s">{post.data.summary}</span>
{post.data.tags.length > 0 && (
<span class="tags">{post.data.tags.map((t) => <span class="tag">{t}</span>)}</span>
)}
</a>
</li>
))
}
</ol>
</Window>
</section>
</Base>
<style>
.desk {
background:
radial-gradient(circle, color-mix(in oklab, var(--cobalt) 18%, transparent) 1px, transparent 1.4px) 0 0 / 14px 14px;
}
.hero {
display: grid;
gap: var(--space-4);
margin-bottom: var(--space-7);
}
.loading {
display: flex;
align-items: center;
gap: var(--space-3);
font-family: var(--ff-pixel);
font-size: 0.85rem;
color: var(--cobalt);
}
.bar {
width: 12rem;
height: 1rem;
padding: 2px;
border: 2px solid var(--cobalt);
}
.bar i {
display: block;
height: 100%;
width: 0;
background: repeating-linear-gradient(90deg, var(--cobalt) 0 10px, transparent 10px 12px);
animation: load 1.6s steps(12) forwards;
}
@keyframes load {
to {
width: 100%;
}
}
h1 {
font-size: clamp(4rem, 14vw, 9rem);
line-height: 0.9;
color: var(--cobalt);
text-shadow: 5px 5px 0 var(--lime);
}
.sub {
max-width: 52ch;
font-size: var(--step-1);
}
.posts {
list-style: none;
padding: 0;
}
.posts a {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.25rem var(--space-4);
padding: var(--space-4);
border-bottom: 1px dashed var(--line);
text-decoration: none;
}
.posts li:last-child a {
border-bottom: 0;
}
.posts a:hover,
.posts a:focus-visible {
background: var(--cobalt);
color: #fff;
}
.posts a:hover time,
.posts a:hover .s {
color: #fff;
}
.icon {
grid-row: span 3;
width: 2rem;
color: var(--cobalt);
}
.posts a:hover .icon {
color: var(--ink);
}
.t {
font-family: var(--ff-pixel);
font-size: var(--step-2);
line-height: 1.1;
}
time {
font-family: var(--ff-pixel);
color: var(--fg-muted);
white-space: nowrap;
}
.s {
grid-column: 2 / -1;
color: var(--fg-muted);
}
.tags {
grid-column: 2 / -1;
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.list :global(.body) {
padding: 0;
}
@media (max-width: 40rem) {
.posts a {
grid-template-columns: auto 1fr;
}
time,
.s,
.tags {
grid-column: 2;
}
}
</style>
+201 -64
View File
@@ -1,59 +1,86 @@
--- ---
import Base from '../layouts/Base.astro'; import Base from '../layouts/Base.astro';
import Stamp from '../components/deco/Stamp.astro';
import { SITE } from '../lib/site'; import { SITE } from '../lib/site';
const year = new Date().getFullYear();
--- ---
<Base title="Contact" description="Hire Johan Sandoval or get in touch."> <Base title="Contact" description="Hire Johan Sandoval or get in touch." theme="postcard">
<section class="wrap section layout"> <section class="wrap section layout">
<div class="stack side"> <div class="side stack">
<p class="label label--accent">// 06 — Open channel</p> <h1>Get in touch</h1>
<h1>Contact</h1>
<p class="lead"> <p class="lead">
Hiring, freelance, collaborations, or you just want to talk about a game, a model or a riff. Hiring, freelance work, collaborations, or you want to talk about a game, a 3D model or a
I read everything. riff. I read everything and usually reply within a couple of days.
</p> </p>
<dl class="readout"> <dl class="readout">
<dt>Mail</dt> <dt>Email</dt>
<dd><a href={`mailto:${SITE.email}`}>{SITE.email}</a></dd> <dd><a href={`mailto:${SITE.email}`}>{SITE.email}</a></dd>
<dt>Base</dt> <dt>Based in</dt>
<dd>{SITE.location} · open to remote</dd> <dd>{SITE.location} · open to remote</dd>
<dt>Status</dt> <dt>Status</dt>
<dd class="accent">{SITE.availability.text}</dd> <dd>{SITE.availability.text}</dd>
<dt>Résumé</dt> <dt>Résumé</dt>
<dd><a href={SITE.resume}>PDF ↓</a></dd> <dd><a href={SITE.resume}>Download PDF</a></dd>
</dl> </dl>
</div> </div>
<form class="panel stack" data-tab="Transmit" method="post" action="/api/contact"> <form class="card" method="post" action="/api/contact">
<div class="status" role="status" aria-live="polite"></div> <div class="message">
<p class="hello">Hi Johan,</p>
<label class="msg">
<span class="visually-hidden">Message</span>
<textarea name="message" rows="9" required minlength="10" maxlength="5000" placeholder="Write your message here…"></textarea>
</label>
<div class="status" role="status" aria-live="polite"></div>
</div>
<label> <div class="address">
<span class="label">Name</span> <div class="top">
<input name="name" autocomplete="name" required maxlength="120" /> <div class="postmark" aria-hidden="true">
</label> <span>Chicago IL</span>
<label> <b>{year}</b>
<span class="label">Email</span> <span>yoyos.sh</span>
<input name="email" type="email" autocomplete="email" required maxlength="200" /> </div>
</label> <Stamp color="#fbf5e4" rotate={3} class="stamp">
<label> <svg viewBox="0 0 80 96" aria-hidden="true">
<span class="label">Reason</span> <rect width="80" height="96" fill="#3f78b8" />
<select name="reason"> <path d="M10 90 C 30 60, 26 40, 52 18" stroke="#3a2a1c" stroke-width="3" fill="none" />
<option value="hiring">Hiring / job opportunity</option> <path d="M34 52 C 44 50, 52 54, 62 46" stroke="#3a2a1c" stroke-width="2" fill="none" />
<option value="freelance">Freelance project</option> <g fill="#f2a0b8" stroke="#fbf5e4" stroke-width="1">
<option value="collab">Collaboration</option> <circle cx="52" cy="18" r="7" /><circle cx="30" cy="44" r="6" /><circle cx="62" cy="46" r="6" />
<option value="music">Music</option> <circle cx="22" cy="66" r="5" /><circle cx="44" cy="31" r="5" />
<option value="other">Something else</option> </g>
</select> <g fill="#ffd31a"><circle cx="52" cy="18" r="2" /><circle cx="30" cy="44" r="2" /><circle cx="62" cy="46" r="2" /></g>
</label> <text x="6" y="90" fill="#fbf5e4" font-family="Archivo Variable, sans-serif" font-weight="800" font-size="13">26¢</text>
<label> </svg>
<span class="label">Message</span> </Stamp>
<textarea name="message" rows="7" required minlength="10" maxlength="5000"></textarea> </div>
</label>
<label class="hp" aria-hidden="true">
Leave this empty <input name="website" tabindex="-1" autocomplete="off" />
</label>
<button class="btn btn--primary" type="submit">Send transmission →</button> <label>
<span>From</span>
<input name="name" autocomplete="name" required maxlength="120" placeholder="Your name" />
</label>
<label>
<span>Reply to</span>
<input name="email" type="email" autocomplete="email" required maxlength="200" placeholder="you@company.com" />
</label>
<label>
<span>About</span>
<select name="reason">
<option value="hiring">A job opportunity</option>
<option value="freelance">A freelance project</option>
<option value="collab">A collaboration</option>
<option value="music">Music</option>
<option value="other">Something else</option>
</select>
</label>
<label class="hp" aria-hidden="true">
Leave this empty <input name="website" tabindex="-1" autocomplete="off" />
</label>
<button class="btn send" type="submit">Send message →</button>
</div>
</form> </form>
</section> </section>
</Base> </Base>
@@ -61,43 +88,154 @@ import { SITE } from '../lib/site';
<style> <style>
.layout { .layout {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
gap: var(--space-8); gap: var(--space-8);
align-items: start; align-items: start;
} }
@media (max-width: 60rem) {
.layout {
grid-template-columns: minmax(0, 1fr);
gap: var(--space-6);
}
}
.side { .side {
--stack-gap: var(--space-5); --stack-gap: var(--space-5);
} }
h1 {
font-size: clamp(3.25rem, 8vw, 6rem);
line-height: 0.9;
}
.lead { .lead {
font-size: var(--step-1); font-size: var(--step-1);
} }
form { .readout a {
--stack-gap: var(--space-4); text-decoration-color: var(--accent);
margin-top: var(--space-6); }
.card {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
background: #fbf5e4;
color: #142033;
border: 2px solid #142033;
box-shadow: var(--shadow);
rotate: -1deg;
--fg: #142033;
--fg-muted: #5b6577;
--line: #c9bfa6;
--line-strong: #142033;
}
@media (max-width: 40rem) {
.card {
grid-template-columns: minmax(0, 1fr);
rotate: 0deg;
}
}
.message {
display: grid;
align-content: start;
gap: var(--space-3);
padding: var(--space-5);
border-right: 2px dashed #c9bfa6;
}
@media (max-width: 40rem) {
.message {
border-right: 0;
border-bottom: 2px dashed #c9bfa6;
}
}
.hello {
font-family: var(--ff-grotesk);
font-weight: 700;
font-size: var(--step-1);
}
textarea {
width: 100%;
min-height: 16rem;
border: 0;
resize: vertical;
background: repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), #c9bfa6 calc(1.9rem - 1px) 1.9rem);
line-height: 1.9rem;
color: #142033;
font-size: 1.05rem;
}
textarea:focus {
outline: none;
}
.address {
display: grid;
align-content: start;
gap: var(--space-4);
padding: var(--space-5);
}
.top {
display: flex;
justify-content: space-between;
align-items: start;
gap: var(--space-3);
margin-bottom: var(--space-3);
}
.postmark {
display: grid;
place-items: center;
width: 6.5rem;
height: 6.5rem;
border: 3px double #b0302a;
border-radius: 50%;
color: #b0302a;
font-family: var(--ff-mono);
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.08em;
rotate: -14deg;
opacity: 0.85;
padding-block: 0.8rem;
}
.postmark b {
font-family: var(--ff-grotesk);
font-size: 1.3rem;
line-height: 1;
}
.address :global(.stamp) {
width: 6.25rem;
} }
label { label {
display: grid; display: grid;
gap: var(--space-1); gap: 2px;
}
label > span {
font-family: var(--ff-mono);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #5b6577;
} }
input, input,
select, select {
textarea {
width: 100%; width: 100%;
padding: 0.7em 0.8em; padding: 0.35rem 0;
background: var(--bg-sunken); border: 0;
border: var(--border-w) solid var(--line); border-bottom: 2px solid #142033;
border-radius: var(--radius); background: transparent;
color: var(--fg); color: #142033;
} }
input:focus, input:focus,
select:focus, select:focus,
textarea:focus { textarea:focus-visible {
border-color: var(--accent);
outline: none; outline: none;
box-shadow: var(--glow); border-color: var(--cobalt);
box-shadow: 0 2px 0 var(--cobalt);
} }
textarea { .send {
resize: vertical; justify-self: start;
margin-top: var(--space-3);
--btn-bg: #142033;
--btn-fg: #fbf5e4;
--btn-line: #142033;
}
.send:hover {
--btn-bg: var(--yellow);
--btn-fg: #142033;
} }
.hp { .hp {
position: absolute; position: absolute;
@@ -107,16 +245,15 @@ import { SITE } from '../lib/site';
display: none; display: none;
} }
.status { .status {
padding: var(--space-3) var(--space-4); padding: var(--space-2) var(--space-3);
border: 1px solid currentColor; border: 2px solid currentColor;
font-family: var(--font-mono); font-weight: 600;
font-size: var(--step--1);
} }
.status.ok { .status.ok {
color: var(--accent); color: var(--grass);
} }
.status.err { .status.err {
color: var(--signal); color: #b0302a;
} }
</style> </style>
@@ -128,7 +265,7 @@ import { SITE } from '../lib/site';
const button = form.querySelector<HTMLButtonElement>('button[type=submit]')!; const button = form.querySelector<HTMLButtonElement>('button[type=submit]')!;
const show = (ok: boolean, msg: string) => { const show = (ok: boolean, msg: string) => {
status.className = `status ${ok ? 'ok' : 'err'}`; status.className = `status ${ok ? 'ok' : 'err'}`;
status.textContent = `${ok ? '■ RECEIVED' : '■ ERROR'} — ${msg}`; status.textContent = msg;
}; };
// Messages from the no-JS fallback redirect // Messages from the no-JS fallback redirect
@@ -139,7 +276,7 @@ import { SITE } from '../lib/site';
form.addEventListener('submit', async (e) => { form.addEventListener('submit', async (e) => {
e.preventDefault(); e.preventDefault();
button.disabled = true; button.disabled = true;
button.textContent = 'Transmitting…'; button.textContent = 'Sending…';
try { try {
const res = await fetch(form.action, { const res = await fetch(form.action, {
method: 'POST', method: 'POST',
@@ -153,7 +290,7 @@ import { SITE } from '../lib/site';
show(false, 'Network error. Please email me directly.'); show(false, 'Network error. Please email me directly.');
} finally { } finally {
button.disabled = false; button.disabled = false;
button.textContent = 'Send transmission →'; button.textContent = 'Send message →';
} }
}); });
} }
+302 -142
View File
@@ -2,90 +2,98 @@
import { getCollection } from 'astro:content'; import { getCollection } from 'astro:content';
import Base from '../layouts/Base.astro'; import Base from '../layouts/Base.astro';
import ProjectCard from '../components/ProjectCard.astro'; import ProjectCard from '../components/ProjectCard.astro';
import SectionHead from '../components/SectionHead.astro'; import LineBadge from '../components/LineBadge.astro';
import Starburst from '../components/deco/Starburst.astro';
import Barcode from '../components/deco/Barcode.astro';
import { SITE } from '../lib/site'; import { SITE } from '../lib/site';
import { DISCIPLINES } from '../content.config'; import { DISCIPLINES, LINES } from '../lib/disciplines';
const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data.date); const work = (await getCollection('work')).sort(
const featured = work.find((p) => p.data.featured) ?? work[0]; (a, b) => Number(b.data.featured) - Number(a.data.featured) || +b.data.date - +a.data.date,
const rest = work.filter((p) => p !== featured).slice(0, 3); );
const posts = (await getCollection('log', ({ data }) => !data.draft)) const selected = work.slice(0, 6);
const posts = (await getCollection('blog', ({ data }) => !data.draft))
.sort((a, b) => +b.data.date - +a.data.date) .sort((a, b) => +b.data.date - +a.data.date)
.slice(0, 3); .slice(0, 3);
const counts = Object.fromEntries( const counts = Object.fromEntries(
DISCIPLINES.map((d) => [d, work.filter((p) => p.data.disciplines.includes(d)).length]), DISCIPLINES.map((d) => [d, work.filter((p) => p.data.disciplines.includes(d)).length]),
); );
const disciplineLabels: Record<string, string> = { const fmt = (d: Date) => d.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
software: 'Software & tools', const now = new Date();
web: 'Web', const season = ['Winter', 'Spring', 'Summer', 'Fall'][Math.floor(((now.getMonth() + 1) % 12) / 3)];
game: 'Games',
hardware: 'Hardware',
'3d': '3D modeling',
music: 'Music',
};
const fmt = (d: Date) => d.toISOString().slice(0, 10).replaceAll('-', '.');
--- ---
<Base> <Base>
<section class="hero wrap"> <!-- ===== Cover ===== -->
<div class="boot label" aria-hidden="true"> <section class="cover wrap">
<span>SYS://YOYOS.SH</span> <div class="masthead">
<span>BOOT OK</span> <span>Portfolio · {season} {now.getFullYear()}</span>
<span>{SITE.coords}</span> <span>{SITE.location}</span>
<span class="price">Free</span>
</div> </div>
<h1 class="name"> <h1 class="title">
<span>Johan</span> <span class="l1">Johan</span>
<span class="outline">Sandoval</span> <span class="l2">Sandoval</span>
</h1> </h1>
<p class="kana" aria-hidden="true">ジョハン・サンドバル</p>
<div class="intro"> <Starburst class="burst" color="var(--yellow)" size="clamp(7.5rem, 14vw, 11rem)" rotate={12}>
{SITE.availability.open ? 'Open to work!' : 'Say hi!'}
</Starburst>
<div class="deck">
<p class="role">Software engineer<br />building internal tools, automation &amp; web apps.</p>
<p class="lede"> <p class="lede">
Software engineer who builds the tools other teams run on. <span class="accent" I make the software operations teams run on: dashboards, deployment tooling and the APIs
>Dashboards, automation and web apps</span behind them. On the side I make games, 3D models, hardware and music.
>, plus games, 3D models, hardware and music on the side.
</p> </p>
<div class="cluster">
<dl class="readout panel" data-tab="Operator"> <a class="btn btn--primary" href="/work">See my work</a>
<dt>Role</dt> <a class="btn" href="/contact">Hire me</a>
<dd>{SITE.role}</dd> <a class="btn" href={SITE.resume}>Résumé (PDF)</a>
<dt>Base</dt> </div>
<dd>{SITE.location}</dd>
<dt>Status</dt>
<dd class:list={[SITE.availability.open ? 'accent' : 'signal']}>
{SITE.availability.text}<span class="blink">_</span>
</dd>
<dt>Stack</dt>
<dd>TypeScript · Python · PowerShell · React · SQL · Docker</dd>
</dl>
</div> </div>
<div class="cluster cta"> <ul class="stats" aria-label="Highlights">
<a class="btn btn--primary" href="/work">View work</a> <li style="--c: var(--lime)"><b>16,000+</b> devices deployed with my tooling</li>
<a class="btn" href="/contact">Hire me</a> <li style="--c: var(--pink)"><b>10 → 25</b> daily builds after shipping USMT Dash</li>
<a class="btn" href={SITE.resume}>Résumé (PDF)</a> <li style="--c: var(--sky)"><b>2 yrs</b> as technical lead on enterprise rollouts</li>
</ul>
<div class="corner">
<Barcode value="YOYOS.SH-2026" />
</div> </div>
</section> </section>
<!-- ===== Selected work ===== -->
<section class="wrap section"> <section class="wrap section">
<SectionHead code="01" title="Case files" href="/work" linkLabel="All work" /> <div class="head">
{featured && <ProjectCard project={featured} index={1} large />} <h2><span class="hl" style="--c: var(--lime)">Selected work</span></h2>
<a class="more" href="/work">All projects →</a>
</div>
<div class="grid"> <div class="grid">
{rest.map((p, i) => <ProjectCard project={p} index={i + 2} />)} {selected.map((p, i) => <ProjectCard project={p} index={i + 1} />)}
</div> </div>
</section> </section>
<!-- ===== What I do ===== -->
<section class="wrap section"> <section class="wrap section">
<SectionHead code="02" title="Disciplines" /> <div class="head">
<ul class="disciplines"> <h2><span class="hl" style="--c: var(--sky)">What I work on</span></h2>
</div>
<ul class="lines">
{ {
DISCIPLINES.map((d) => ( DISCIPLINES.map((d) => (
<li> <li style={`--c:${LINES[d].color}`}>
<a href={d === 'music' ? '/sound' : `/work?d=${d}`}> <a href={d === 'music' ? '/music' : d === '3d' ? '/models' : `/work?d=${d}`}>
<span class="label">{String(counts[d]).padStart(2, '0')} files</span> <LineBadge d={d} size="2.4rem" />
<span class="dname">{disciplineLabels[d]}</span> <span class="lname">{LINES[d].label}</span>
<span class="track" aria-hidden="true" />
<span class="count">
{counts[d]} {counts[d] === 1 ? 'project' : 'projects'}
</span>
</a> </a>
</li> </li>
)) ))
@@ -93,18 +101,20 @@ const fmt = (d: Date) => d.toISOString().slice(0, 10).replaceAll('-', '.');
</ul> </ul>
</section> </section>
<!-- ===== Blog ===== -->
<section class="wrap section"> <section class="wrap section">
<SectionHead code="03" title="Transmissions" href="/log" linkLabel="Full log" /> <div class="head">
<ol class="log"> <h2><span class="hl" style="--c: var(--pink)">From the blog</span></h2>
<a class="more" href="/blog">All posts →</a>
</div>
<ol class="posts">
{ {
posts.map((post) => ( posts.map((post) => (
<li> <li>
<a href={`/log/${post.id}`}> <a href={`/blog/${post.id}`}>
<time class="label" datetime={post.data.date.toISOString()}> <time datetime={post.data.date.toISOString()}>{fmt(post.data.date)}</time>
{fmt(post.data.date)}
</time>
<span class="ptitle">{post.data.title}</span> <span class="ptitle">{post.data.title}</span>
<span class="muted">{post.data.summary}</span> <span class="psum">{post.data.summary}</span>
</a> </a>
</li> </li>
)) ))
@@ -114,120 +124,270 @@ const fmt = (d: Date) => d.toISOString().slice(0, 10).replaceAll('-', '.');
</Base> </Base>
<style> <style>
.hero { /* ---------- cover ---------- */
.cover {
position: relative;
display: grid; display: grid;
gap: var(--space-6); grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
padding-block: var(--space-8) var(--space-7); grid-template-areas:
'mast mast'
'title title'
'deck stats';
gap: var(--space-5) var(--space-7);
margin-top: var(--space-6);
padding: var(--space-5) var(--space-6) 5.5rem;
border: 3px solid var(--ink);
background:
radial-gradient(circle, color-mix(in oklab, var(--red) 22%, transparent) 1.3px, transparent 1.7px) 0 0 / 11px 11px,
var(--paper-2);
box-shadow: 10px 10px 0 var(--ink);
overflow: hidden;
} }
.boot { .masthead {
grid-area: mast;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: var(--space-5); gap: var(--space-2) var(--space-5);
border-bottom: 1px dashed var(--line); align-items: center;
padding-bottom: var(--space-3); padding-bottom: var(--space-3);
border-bottom: 3px solid var(--ink);
font-family: var(--ff-grotesk);
font-weight: 700;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.06em;
} }
.boot span:nth-child(2) { .price {
color: var(--accent); margin-inline-start: auto;
padding: 0.1em 0.6em;
background: var(--red);
color: #fff;
} }
.name { .title {
grid-area: title;
display: grid; display: grid;
font-size: var(--step-5); font-family: var(--ff-mag);
line-height: 0.82; font-size: clamp(3.5rem, 13vw, 11.5rem);
font-weight: 900; line-height: 0.86;
letter-spacing: -0.01em; letter-spacing: -0.04em;
padding-right: 3.5rem;
} }
.outline { .l1 {
color: transparent; color: var(--red);
-webkit-text-stroke: 2px var(--fg); -webkit-text-stroke: 3px var(--ink);
text-shadow: none; paint-order: stroke fill;
text-shadow: 6px 6px 0 var(--ink);
} }
.intro { .l2 {
color: var(--ink);
margin-left: 0.35em;
text-shadow: 6px 6px 0 var(--lime);
}
.kana {
position: absolute;
top: 4.5rem;
right: var(--space-5);
writing-mode: vertical-rl;
font-family: var(--ff-mag);
font-size: clamp(1.1rem, 2.4vw, 1.9rem);
color: var(--cobalt);
letter-spacing: 0.08em;
}
.cover :global(.burst) {
position: absolute;
top: clamp(5rem, 8vw, 7rem);
right: clamp(4rem, 14vw, 13rem);
}
.deck {
grid-area: deck;
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--space-4);
gap: var(--space-7); align-content: start;
align-items: start; }
.role {
font-family: var(--ff-grotesk);
font-weight: 800;
font-stretch: 105%;
font-size: var(--step-2);
line-height: 1.05;
letter-spacing: -0.03em;
} }
.lede { .lede {
font-size: var(--step-2); max-width: 46ch;
line-height: 1.25; font-size: var(--step-0);
max-width: 30ch; color: var(--ink-2);
} }
.readout.panel { .stats {
margin-top: var(--space-4); grid-area: stats;
display: grid;
gap: var(--space-3);
align-content: start;
list-style: none;
padding: 0;
}
.stats li {
padding: 0.7rem 0.9rem;
background: var(--c);
border: 2px solid var(--ink);
font-size: 0.95rem;
line-height: 1.3;
}
.stats li:nth-child(1) {
rotate: -1.5deg;
}
.stats li:nth-child(2) {
rotate: 1deg;
margin-left: 1.5rem;
}
.stats li:nth-child(3) {
rotate: -0.5deg;
}
.stats b {
display: block;
font-family: var(--ff-mag);
font-weight: 400;
font-size: var(--step-2);
line-height: 1;
}
.corner {
position: absolute;
right: 0;
bottom: 0;
border-top: 2px solid var(--ink);
border-left: 2px solid var(--ink);
}
@media (max-width: 52rem) {
.cover {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: 'mast' 'title' 'deck' 'stats';
padding-inline: var(--space-4);
padding-bottom: 6rem;
box-shadow: 6px 6px 0 var(--ink);
}
.kana {
display: none;
}
.title {
padding-right: 0;
}
.cover :global(.burst) {
top: 4.5rem;
right: var(--space-2);
width: 5.75rem;
}
.stats li:nth-child(2) {
margin-left: 0;
}
}
/* ---------- sections ---------- */
.head {
display: flex;
flex-wrap: wrap;
align-items: end;
justify-content: space-between;
gap: var(--space-3);
margin-bottom: var(--space-6);
}
.head h2 {
font-size: var(--step-4);
}
.hl {
padding: 0 0.15em;
background: linear-gradient(transparent 55%, var(--c) 55% 92%, transparent 92%);
}
.more {
font-family: var(--ff-grotesk);
font-weight: 700;
} }
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
gap: var(--space-5); gap: var(--space-5);
margin-top: var(--space-5);
} }
.disciplines { .lines {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-3);
list-style: none; list-style: none;
padding: 0; padding: 0;
border-top: var(--border-w) solid var(--line);
border-left: var(--border-w) solid var(--line);
} }
.disciplines a { .lines a {
display: grid; display: grid;
gap: var(--space-5); grid-template-columns: auto auto 1fr auto;
min-height: 9rem; align-items: center;
align-content: space-between; gap: var(--space-4);
padding: var(--space-4); padding: var(--space-2) 0;
border-right: var(--border-w) solid var(--line);
border-bottom: var(--border-w) solid var(--line);
color: var(--fg);
text-decoration: none; text-decoration: none;
transition: background 0.15s var(--ease); color: var(--ink);
} }
.disciplines a:hover { .lname {
background: var(--accent); font-family: var(--ff-grotesk);
color: var(--accent-fg);
}
.disciplines a:hover .label {
color: inherit;
}
.dname {
font-family: var(--font-display);
font-size: var(--step-2);
font-weight: 800; font-weight: 800;
text-transform: uppercase;
line-height: 1;
}
.log {
list-style: none;
padding: 0;
}
.log a {
display: grid;
grid-template-columns: 8rem 1fr;
gap: var(--space-1) var(--space-5);
padding-block: var(--space-4);
border-bottom: 1px solid var(--line);
color: inherit;
text-decoration: none;
}
.log a:hover .ptitle {
color: var(--signal);
}
.log .muted {
grid-column: 2;
}
.ptitle {
font-family: var(--font-display);
font-size: var(--step-2); font-size: var(--step-2);
font-weight: 700; letter-spacing: -0.03em;
text-transform: uppercase; }
line-height: 1; .track {
height: 10px;
border-radius: 5px;
background: var(--c);
border: 2px solid var(--ink);
transition: transform 0.25s var(--ease);
transform-origin: left;
}
.lines a:hover .track {
transform: scaleX(1.03);
}
.count {
font-family: var(--ff-mono);
font-size: var(--step--1);
} }
@media (max-width: 40rem) { @media (max-width: 40rem) {
.log a { .lines a {
grid-template-columns: auto 1fr auto;
}
.track {
display: none;
}
}
.posts {
list-style: none;
padding: 0;
border-top: 3px solid var(--ink);
}
.posts a {
display: grid;
grid-template-columns: 9rem 1fr;
gap: 0.2rem var(--space-5);
padding-block: var(--space-4);
border-bottom: 2px solid var(--ink);
text-decoration: none;
color: var(--ink);
}
.posts a:hover {
background: var(--lime);
}
time {
font-family: var(--ff-mono);
font-size: var(--step--1);
padding-top: 0.3em;
}
.ptitle {
font-family: var(--ff-mag);
font-size: var(--step-2);
line-height: 1.1;
}
.psum {
grid-column: 2;
color: var(--ink-2);
}
@media (max-width: 40rem) {
.posts a {
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
.log .muted { .psum {
grid-column: 1; grid-column: 1;
} }
} }
-66
View File
@@ -1,66 +0,0 @@
---
import { getCollection, render } from 'astro:content';
import { Image } from 'astro:assets';
import Base from '../../layouts/Base.astro';
export async function getStaticPaths() {
const posts = await getCollection('log', ({ data }) => import.meta.env.DEV || !data.draft);
return posts.map((post) => ({ params: { slug: post.id }, props: { post } }));
}
const { post } = Astro.props;
const { Content } = await render(post);
const d = post.data;
const words = post.body?.split(/\s+/).length ?? 0;
const minutes = Math.max(1, Math.round(words / 230));
---
<Base title={d.title} description={d.summary} theme={d.theme} type="article" image={d.cover?.src}>
<article class="wrap section">
<a class="label back" href="/log">← All transmissions</a>
<header class="stack">
<p class="label">
<time datetime={d.date.toISOString()}>{d.date.toISOString().slice(0, 10)}</time>
· {minutes} min read
{d.tags.map((t) => <span class="tag">{t}</span>)}
</p>
<h1>{d.title}</h1>
<p class="summary muted">{d.summary}</p>
</header>
{
d.cover && (
<Image class="cover" src={d.cover} alt={d.coverAlt ?? ''} widths={[800, 1280]} sizes="(min-width: 68ch) 68ch, 100vw" />
)
}
<div class="prose">
<Content />
</div>
</article>
</Base>
<style>
article {
max-width: calc(var(--prose-w) + 2 * var(--gutter));
}
.back {
display: inline-block;
margin-bottom: var(--space-6);
text-decoration: none;
}
header {
margin-bottom: var(--space-7);
padding-bottom: var(--space-5);
border-bottom: var(--border-w) solid var(--line-strong);
}
header .tag {
margin-inline-start: var(--space-2);
}
.summary {
font-size: var(--step-1);
}
.cover {
width: 100%;
margin-bottom: var(--space-6);
border: var(--border-w) solid var(--line);
}
</style>
-87
View File
@@ -1,87 +0,0 @@
---
import { getCollection } from 'astro:content';
import Base from '../../layouts/Base.astro';
const posts = (await getCollection('log', ({ data }) => import.meta.env.DEV || !data.draft)).sort(
(a, b) => +b.data.date - +a.data.date,
);
const fmt = (d: Date) => d.toISOString().slice(0, 10).replaceAll('-', '.');
---
<Base title="Log" description="Weekly notes on what Johan Sandoval is building.">
<section class="wrap section">
<p class="label label--accent">// 02 — Weekly log</p>
<h1>Transmissions</h1>
<p class="muted intro">
What I'm building each week. Subscribe via <a href="/rss.xml">RSS</a>.
</p>
<ol class="posts">
{
posts.map((post, i) => (
<li>
<a href={`/log/${post.id}`}>
<span class="label n">{String(posts.length - 1 - i).padStart(3, '0')}</span>
<time class="label" datetime={post.data.date.toISOString()}>
{fmt(post.data.date)}
</time>
<span class="t">
{post.data.title}
{post.data.draft && <span class="tag">draft</span>}
</span>
<span class="muted s">{post.data.summary}</span>
</a>
</li>
))
}
</ol>
</section>
</Base>
<style>
h1 {
margin-block: var(--space-3) var(--space-3);
}
.intro {
margin-bottom: var(--space-7);
}
.posts {
list-style: none;
padding: 0;
border-top: var(--border-w) solid var(--line-strong);
}
.posts a {
display: grid;
grid-template-columns: 4rem 7rem 1fr;
gap: var(--space-1) var(--space-4);
padding-block: var(--space-5);
border-bottom: 1px solid var(--line);
color: inherit;
text-decoration: none;
}
.n {
color: var(--accent);
}
.t {
font-family: var(--font-display);
font-size: var(--step-2);
font-weight: 700;
text-transform: uppercase;
line-height: 1;
}
.s {
grid-column: 3;
}
.posts a:hover .t {
color: var(--signal);
}
@media (max-width: 40rem) {
.posts a {
grid-template-columns: auto 1fr;
}
.t,
.s {
grid-column: 1 / -1;
}
}
</style>
+113 -19
View File
@@ -7,23 +7,43 @@ import { media } from '../lib/media';
const models = (await getCollection('models')).sort((a, b) => +b.data.date - +a.data.date); const models = (await getCollection('models')).sort((a, b) => +b.data.date - +a.data.date);
--- ---
<Base title="Models" description="3D models by Johan Sandoval, viewable in the browser." theme="overgrowth"> <Base title="3D Models" description="3D models by Johan Sandoval, viewable in the browser." theme="vector">
<section class="wrap section"> <section class="hero">
<p class="label label--accent">// 04 — Specimens</p> <div class="floor" aria-hidden="true"></div>
<h1>Models</h1> <div class="wrap intro">
<p class="muted intro">Blender work you can spin around. Drag to orbit, scroll to zoom.</p> <p class="sys">Blender · glTF · real-time in the browser</p>
<h1 class="glow">3D Models</h1>
<p class="sub">Models I've built in Blender. Drag to rotate, scroll to zoom.</p>
</div>
</section>
<section class="wrap section">
<div class="grid"> <div class="grid">
{ {
models.map((m) => ( models.map((m, i) => (
<figure class="stack"> <figure class="item">
<ModelViewer src={media(m.data.file)} poster={m.data.poster && media(m.data.poster)} alt={m.data.title} ratio="1 / 1" /> <ModelViewer
src={media(m.data.file)}
poster={m.data.poster && media(m.data.poster)}
alt={m.data.title}
ratio="1 / 1"
/>
<figcaption> <figcaption>
<h2>{m.data.title}</h2> <div class="row">
<p class="label"> <h2>{m.data.title}</h2>
{m.data.date.toISOString().slice(0, 10)} · {m.data.tools.join(' · ')} <span class="idx">#{String(i + 1).padStart(3, '0')}</span>
</p> </div>
{m.data.notes && <p class="muted">{m.data.notes}</p>} <dl class="readout">
<dt>Date</dt>
<dd>{m.data.date.toISOString().slice(0, 10)}</dd>
{m.data.tools.length > 0 && (
<>
<dt>Tools</dt>
<dd>{m.data.tools.join(' · ')}</dd>
</>
)}
</dl>
{m.data.notes && <p class="notes">{m.data.notes}</p>}
</figcaption> </figcaption>
</figure> </figure>
)) ))
@@ -33,21 +53,95 @@ const models = (await getCollection('models')).sort((a, b) => +b.data.date - +a.
</Base> </Base>
<style> <style>
h1 { .hero {
margin-block: var(--space-3); position: relative;
overflow: hidden;
min-height: 26rem;
display: grid;
align-items: end;
border-bottom: 1px solid var(--line-strong);
perspective: 420px;
}
.floor {
position: absolute;
left: -50%;
right: -50%;
bottom: -40%;
height: 120%;
background:
linear-gradient(var(--cyan) 1px, transparent 1px) 0 0 / 60px 60px,
linear-gradient(90deg, var(--cyan) 1px, transparent 1px) 0 0 / 60px 60px;
transform: rotateX(68deg);
transform-origin: bottom;
mask: linear-gradient(to top, #000 10%, transparent 75%);
opacity: 0.55;
animation: travel 6s linear infinite;
}
@keyframes travel {
to {
background-position:
0 60px,
0 0;
}
} }
.intro { .intro {
margin-bottom: var(--space-7); position: relative;
padding-block: var(--space-8) var(--space-7);
}
.sys {
font-family: var(--ff-crt);
font-size: 1.3rem;
color: var(--signal);
}
h1 {
font-size: clamp(4.5rem, 16vw, 12rem);
line-height: 0.85;
color: var(--accent);
}
.sub {
max-width: 44ch;
color: var(--fg-muted);
} }
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
gap: var(--space-6); gap: var(--space-7);
} }
figure :global(.viewer) { .item {
display: grid;
gap: var(--space-4);
}
.item :global(.viewer) {
margin-bottom: 0; margin-bottom: 0;
border-color: var(--cyan);
background:
linear-gradient(color-mix(in oklab, var(--cyan) 14%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
linear-gradient(90deg, color-mix(in oklab, var(--cyan) 14%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
#000;
}
.row {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: var(--space-3);
} }
h2 { h2 {
font-size: var(--step-2); font-size: var(--step-3);
color: var(--fg);
}
.idx {
font-family: var(--ff-crt);
font-size: 1.3rem;
color: var(--signal);
}
.readout {
margin-block: var(--space-2);
}
.readout dd {
color: var(--accent);
}
.notes {
color: var(--fg-muted);
font-size: 0.95rem;
} }
</style> </style>
+230
View File
@@ -0,0 +1,230 @@
---
import { getCollection } from 'astro:content';
import Base from '../layouts/Base.astro';
import AudioPlayer from '../components/AudioPlayer';
import { media } from '../lib/media';
const tracks = (await getCollection('music')).sort((a, b) => +b.data.date - +a.data.date);
const cable = ['var(--red)', 'var(--yellow)', 'var(--cobalt)', 'var(--grass)', 'var(--pink)'];
---
<Base title="Music" description="Guitar and original recordings by Johan Sandoval." theme="radio">
<section class="hero">
<svg class="cables" viewBox="0 0 1200 260" preserveAspectRatio="none" aria-hidden="true">
<path d="M-20 40 C 200 260, 360 -40, 560 140 S 900 40, 1220 200" stroke={cable[0]} />
<path d="M-20 200 C 180 20, 420 260, 640 80 S 980 240, 1220 60" stroke={cable[1]} />
<path d="M-20 120 C 260 120, 300 240, 520 220 S 860 -20, 1220 130" stroke={cable[2]} />
<path d="M-20 250 C 300 160, 520 -10, 760 40 S 1050 230, 1220 250" stroke={cable[3]} />
</svg>
<div class="wrap intro">
<p class="tune">guitar · recordings · experiments</p>
<h1>Music</h1>
<div class="lcd" aria-hidden="true">
<span class="rec"></span>
<span class="scroll"><span>Original recordings, self-hosted · {tracks.length} {tracks.length === 1 ? 'track' : 'tracks'} · press play ·&nbsp;</span></span>
</div>
</div>
</section>
<section class="wrap section">
<ol class="tracks">
{
tracks.map((t, i) => (
<li class="track" style={`--c:${cable[i % cable.length]}`}>
<div class="num">{String(i + 1).padStart(2, '0')}</div>
<div class="info">
<h2>{t.data.title}</h2>
<p class="meta">
{t.data.date.toLocaleDateString('en-US', { month: 'short', year: 'numeric' })}
{t.data.duration && ` · ${t.data.duration}`}
</p>
{t.data.notes && <p class="notes">{t.data.notes}</p>}
{t.data.gear.length > 0 && (
<p class="cluster gear">
{t.data.gear.map((g) => (
<span class="tag">{g}</span>
))}
</p>
)}
</div>
<div class="deck">
<AudioPlayer client:visible src={media(t.data.file)} title={t.data.title} />
</div>
</li>
))
}
</ol>
</section>
</Base>
<style>
.hero {
position: relative;
overflow: hidden;
border-bottom: 3px solid var(--fg);
}
.cables {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
}
.cables path {
fill: none;
stroke-width: 10;
stroke-linecap: round;
filter: drop-shadow(2px 3px 0 #111);
}
.intro {
position: relative;
display: grid;
justify-items: start;
gap: var(--space-3);
padding-block: var(--space-8) var(--space-7);
}
.tune {
padding: 0.2em 0.7em;
background: var(--bg);
border: 2px solid var(--fg);
border-radius: 999px;
font-family: var(--ff-mono);
font-size: 0.85rem;
}
h1 {
font-size: clamp(5rem, 20vw, 15rem);
line-height: 0.8;
padding: 0.05em 0.1em;
background: var(--bg);
border: 3px solid var(--fg);
box-shadow: var(--shadow);
}
.lcd {
display: flex;
align-items: center;
gap: var(--space-3);
width: min(100%, 36rem);
padding: 0.5rem 0.8rem;
background: #1b1a14;
color: var(--yellow);
border: 3px solid var(--fg);
border-radius: 6px;
font-family: var(--ff-dot);
font-weight: 700;
font-size: 1.15rem;
overflow: hidden;
}
.rec {
flex: none;
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
background: var(--red);
animation: blink 1.2s steps(1) infinite;
}
@keyframes blink {
50% {
opacity: 0.2;
}
}
.scroll {
flex: 1;
overflow: hidden;
white-space: nowrap;
mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.scroll span {
display: inline-block;
padding-left: 100%;
animation: marquee 14s linear infinite;
}
@keyframes marquee {
to {
transform: translateX(-100%);
}
}
.tracks {
display: grid;
gap: var(--space-6);
list-style: none;
padding: 0;
}
.track {
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas: 'num info' 'deck deck';
gap: var(--space-4) var(--space-5);
padding: var(--space-5);
background: var(--bg-raised);
border: 3px solid var(--fg);
border-radius: 10px;
box-shadow: 6px 6px 0 var(--c);
}
.num {
grid-area: num;
display: grid;
place-items: center;
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
background: var(--c);
border: 3px solid var(--fg);
font-family: var(--ff-dot);
font-weight: 900;
font-size: 1.4rem;
}
.info {
grid-area: info;
display: grid;
gap: 0.3rem;
}
h2 {
font-size: var(--step-3);
}
.meta {
font-family: var(--ff-mono);
font-size: var(--step--1);
color: var(--fg-muted);
}
.gear {
--cluster-gap: 4px;
}
.deck {
grid-area: deck;
}
.deck :global(.player) {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-4);
padding: var(--space-3);
background: #1b1a14;
border-radius: 6px;
color: var(--yellow);
}
.deck :global(.play) {
width: 3rem;
height: 3rem;
justify-content: center;
padding: 0;
border-radius: 50%;
font-size: 1rem;
--btn-line: var(--yellow);
}
.deck :global(.wave) {
min-height: 64px;
display: grid;
align-items: center;
--line-strong: #8a8370;
--accent: var(--yellow);
--signal: var(--red);
}
.deck :global(.hint),
.deck :global(.time) {
font-family: var(--ff-dot);
font-weight: 700;
}
.deck :global(.err) {
color: var(--pink);
}
</style>
+3 -3
View File
@@ -15,13 +15,13 @@ const src = media(`${game.path}/${game.entry}`);
<Base title={`Play ${project.data.title}`} description={project.data.summary} theme={project.data.theme}> <Base title={`Play ${project.data.title}`} description={project.data.summary} theme={project.data.theme}>
<section class="wrap section"> <section class="wrap section">
<a class="label back" href={`/work/${project.id}`}>← {project.data.title}</a> <a class="back" href={`/work/${project.id}`}>← {project.data.title}</a>
<div class="cabinet" style={`--ratio: ${game.aspect}`}> <div class="cabinet" style={`--ratio: ${game.aspect}`}>
<div class="top label"> <div class="top label">
<span>{project.data.title}</span> <span>{project.data.title}</span>
<span>{game.engine} build</span> <span>{game.engine === 'godot' ? 'Godot' : game.engine === 'unity' ? 'Unity' : 'Web'} build</span>
</div> </div>
<button class="placeholder boot" type="button">[ insert coin ▶ ]</button> <button class="placeholder boot" type="button">▶ Click to play</button>
<div class="bottom cluster"> <div class="bottom cluster">
<button class="btn fs" type="button">Fullscreen</button> <button class="btn fs" type="button">Fullscreen</button>
<a class="btn" href={src} target="_blank" rel="noopener">Open in new tab ↗</a> <a class="btn" href={src} target="_blank" rel="noopener">Open in new tab ↗</a>
+4 -4
View File
@@ -4,18 +4,18 @@ import type { APIContext } from 'astro';
import { SITE } from '../lib/site'; import { SITE } from '../lib/site';
export async function GET(context: APIContext) { export async function GET(context: APIContext) {
const posts = (await getCollection('log', ({ data }) => !data.draft)).sort( const posts = (await getCollection('blog', ({ data }) => !data.draft)).sort(
(a, b) => +b.data.date - +a.data.date, (a, b) => +b.data.date - +a.data.date,
); );
return rss({ return rss({
title: `${SITE.name} — Log`, title: `${SITE.name} — Blog`,
description: 'Weekly transmissions: code, builds, models and music.', description: 'Weekly notes on code, homelab, games, 3D and music.',
site: context.site!, site: context.site!,
items: posts.map((post) => ({ items: posts.map((post) => ({
title: post.data.title, title: post.data.title,
description: post.data.summary, description: post.data.summary,
pubDate: post.data.date, pubDate: post.data.date,
link: `/log/${post.id}/`, link: `/blog/${post.id}/`,
categories: post.data.tags, categories: post.data.tags,
})), })),
}); });
-74
View File
@@ -1,74 +0,0 @@
---
import { getCollection } from 'astro:content';
import Base from '../layouts/Base.astro';
import AudioPlayer from '../components/AudioPlayer';
import { media } from '../lib/media';
const tracks = (await getCollection('sound')).sort((a, b) => +b.data.date - +a.data.date);
---
<Base title="Sound" description="Guitar and original music by Johan Sandoval." theme="nostromo">
<section class="wrap section">
<p class="label label--accent">// 03 — Audio logs</p>
<h1 class="glow">Sound</h1>
<p class="muted intro">Guitar, recordings and experiments. Self-hosted, no streaming service in the middle.</p>
<ol class="tracks">
{
tracks.map((t, i) => (
<li class="panel" data-tab={`Track ${String(i + 1).padStart(2, '0')}`}>
<div class="info">
<h2>{t.data.title}</h2>
<p class="label">
{t.data.date.toISOString().slice(0, 10)}
{t.data.gear.length > 0 && ` · ${t.data.gear.join(' · ')}`}
</p>
{t.data.notes && <p class="muted">{t.data.notes}</p>}
</div>
<AudioPlayer client:visible src={media(t.data.file)} title={t.data.title} />
</li>
))
}
</ol>
</section>
</Base>
<style>
h1 {
margin-block: var(--space-3);
}
.intro {
margin-bottom: var(--space-8);
}
.tracks {
display: grid;
gap: var(--space-8);
list-style: none;
padding: 0;
}
.info {
margin-bottom: var(--space-4);
}
h2 {
font-size: var(--step-2);
}
.tracks :global(.player) {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: var(--space-4);
}
.tracks :global(.play) {
width: 3.25rem;
height: 3.25rem;
justify-content: center;
padding: 0;
font-size: 1rem;
}
.tracks :global(.wave) {
min-height: 64px;
display: grid;
align-items: center;
border-block: 1px dashed var(--line);
}
</style>
+283 -89
View File
@@ -3,123 +3,317 @@ import { getCollection, render } from 'astro:content';
import { Image } from 'astro:assets'; import { Image } from 'astro:assets';
import Base from '../../layouts/Base.astro'; import Base from '../../layouts/Base.astro';
import ModelViewer from '../../components/ModelViewer.astro'; import ModelViewer from '../../components/ModelViewer.astro';
import LineBadge from '../../components/LineBadge.astro';
import { LINES } from '../../lib/disciplines';
import { media } from '../../lib/media'; import { media } from '../../lib/media';
export async function getStaticPaths() { export async function getStaticPaths() {
const work = await getCollection('work'); const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data.date);
return work.map((project) => ({ params: { slug: project.id }, props: { project } })); return work.map((project, i) => ({
params: { slug: project.id },
props: { project, next: work[(i + 1) % work.length] },
}));
} }
const { project } = Astro.props; const { project, next } = Astro.props;
const { Content } = await render(project); const { Content } = await render(project);
const d = project.data; const d = project.data;
const statusLabel = { live: 'Live', shipped: 'Shipped', 'in-progress': 'In progress', archived: 'Archived' }[d.status];
const date = `${d.date.getFullYear()}.${String(d.date.getMonth() + 1).padStart(2, '0')}`;
const spec: [string, string, string][] = [
['date', date, 'Released'],
['status', statusLabel, 'Status'],
...(d.role ? [['role', d.role, 'Role'] as [string, string, string]] : []),
['type', d.disciplines.map((x) => LINES[x].label).join(', '), 'Category'],
...(d.stack.length ? [['stack', d.stack.join(' · '), 'Built with'] as [string, string, string]] : []),
];
--- ---
<Base title={d.title} description={d.summary} theme={d.theme} type="article" image={d.cover?.src}> <Base title={d.title} description={d.summary} theme={d.theme ?? 'spec'} type="article" image={d.cover?.src}>
<article class="wrap section"> <article class="sheet">
<a class="label back" href="/work">← All case files</a> <div class="wrap">
<div class="topline">
<header class="head"> <a href="/work">← All work</a>
<div class="stack"> <span>{d.disciplines.map((x) => <LineBadge d={x} size="1.35rem" />)}</span>
<p class="label label--accent">// {d.disciplines.join(' · ')}</p> <span class="mono">yoyos.sh/work/{project.id}</span>
<h1 transition:name={`title-${project.id}`}>{d.title}</h1>
<p class="summary">{d.summary}</p>
{
d.links.length > 0 && (
<div class="cluster">
{d.links.map((l, i) => (
<a class:list={['btn', { 'btn--primary': i === 0 }]} href={l.href} rel="noopener">
{l.label} ↗
</a>
))}
{d.game && (
<a class="btn btn--primary" href={`/play/${project.id}`}>
Play ▶
</a>
)}
</div>
)
}
{
d.links.length === 0 && d.game && (
<a class="btn btn--primary" href={`/play/${project.id}`}>
Play ▶
</a>
)
}
</div> </div>
<dl class="readout panel" data-tab="Spec">
<dt>Status</dt>
<dd>{d.status.replace('-', ' ')}</dd>
<dt>Date</dt>
<dd>{d.date.toISOString().slice(0, 7)}</dd>
{
d.role && (
<>
<dt>Role</dt>
<dd>{d.role}</dd>
</>
)
}
{
d.stack.length > 0 && (
<>
<dt>Stack</dt>
<dd>{d.stack.join(' · ')}</dd>
</>
)
}
</dl>
</header>
{ <header class="head">
d.cover && ( <h1 transition:name={`title-${project.id}`}>{d.title}</h1>
<Image <p class="side" aria-hidden="true">{statusLabel} · {d.date.getFullYear()}</p>
class="cover" </header>
src={d.cover}
alt={d.coverAlt ?? ''}
widths={[800, 1280, 1920]}
sizes="(min-width: 76rem) 76rem, 100vw"
loading="eager"
transition:name={`cover-${project.id}`}
/>
)
}
{d.model && <ModelViewer src={media(d.model)} alt={`3D model: ${d.title}`} />} <div class="intro">
<p class="summary">{d.summary}</p>
<div class="prose body"> <div class="spec">
<Content /> <p class="mono brace">{'{'}</p>
<dl>
{
spec.map(([k, v, label]) => (
<div>
<dd>
<span class="k">{k}</span> = <span class="v">{v}</span>
</dd>
<dt>{label}</dt>
</div>
))
}
</dl>
<p class="mono brace">{'}'}</p>
{
(d.links.length > 0 || d.game) && (
<div class="cluster links">
{d.game && (
<a class="btn btn--primary" href={`/play/${project.id}`}>
Play in browser ▶
</a>
)}
{d.links.map((l, i) => (
<a class:list={['btn', { 'btn--primary': i === 0 && !d.game }]} href={l.href} rel="noopener">
{l.label} ↗
</a>
))}
</div>
)
}
</div>
</div>
{
d.cover && (
<figure class="hero-fig">
<span class="tick tl" />
<span class="tick tr" />
<span class="tick bl" />
<span class="tick br" />
<Image
src={d.cover}
alt={d.coverAlt ?? ''}
widths={[800, 1280, 1920]}
sizes="(min-width: 78rem) 78rem, 100vw"
loading="eager"
transition:name={`cover-${project.id}`}
/>
{d.coverAlt && <figcaption>Fig. 00 · {d.coverAlt}</figcaption>}
</figure>
)
}
{d.model && <ModelViewer src={media(d.model)} alt={`3D model: ${d.title}`} />}
<div class="prose body">
<Content />
</div>
{
next && next.id !== project.id && (
<a class="next" href={`/work/${next.id}`}>
<span class="mono">Next project →</span>
<span class="ntitle">{next.data.title}</span>
</a>
)
}
</div> </div>
</article> </article>
</Base> </Base>
<style> <style>
.back { .sheet {
display: inline-block; background:
margin-bottom: var(--space-6); linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
text-decoration: none; linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px;
background-attachment: fixed;
padding-bottom: var(--space-8);
}
.topline {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
padding-block: var(--space-4);
border-bottom: 1px solid var(--line-strong);
font-family: var(--font-mono);
font-size: var(--step--1);
}
.topline span {
display: flex;
gap: 4px;
} }
.head { .head {
display: grid; position: relative;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); padding-block: var(--space-8) var(--space-6);
gap: var(--space-7);
align-items: end;
margin-bottom: var(--space-7);
} }
.head .stack { h1 {
--stack-gap: var(--space-4); font-size: clamp(3.5rem, 12vw, 10rem);
line-height: 0.85;
max-width: 12ch;
}
.side {
position: absolute;
right: 0;
bottom: var(--space-6);
writing-mode: vertical-rl;
rotate: 180deg;
max-height: 18rem;
font-family: var(--font-display);
font-weight: 300;
font-size: var(--step-1);
color: var(--fg-muted);
}
.intro {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
gap: var(--space-7);
padding-bottom: var(--space-7);
border-bottom: 1px solid var(--line-strong);
margin-bottom: var(--space-7);
} }
.summary { .summary {
font-family: var(--font-display);
font-weight: 400;
font-size: var(--step-2);
line-height: 1.2;
letter-spacing: -0.02em;
max-width: 26ch;
}
.spec dl {
display: grid;
gap: 0.45rem;
padding-left: 1.25rem;
font-family: var(--font-mono);
font-size: var(--step--1);
}
.spec dl div {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0 var(--space-3);
align-items: baseline;
}
.spec dt {
color: var(--fg-muted);
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap;
}
.spec dt::before {
content: '// ';
}
.spec dd {
margin: 0;
}
.k {
color: var(--fg-muted);
}
.v {
color: var(--accent);
font-weight: 500;
}
.brace {
font-size: var(--step-1); font-size: var(--step-1);
max-width: 50ch; line-height: 1;
color: var(--fg-muted);
} }
.cover { .links {
margin-top: var(--space-5);
}
.hero-fig {
position: relative;
margin-bottom: var(--space-8);
padding: var(--space-4);
border: 1px solid var(--accent);
}
.hero-fig :global(img) {
width: 100%; width: 100%;
border: var(--border-w) solid var(--line-strong);
margin-bottom: var(--space-7);
} }
.tick {
position: absolute;
width: 14px;
height: 14px;
border: 0 solid var(--accent);
}
.tl {
top: -8px;
left: -8px;
border-width: 2px 0 0 2px;
}
.tr {
top: -8px;
right: -8px;
border-width: 2px 2px 0 0;
}
.bl {
bottom: -8px;
left: -8px;
border-width: 0 0 2px 2px;
}
.br {
bottom: -8px;
right: -8px;
border-width: 0 2px 2px 0;
}
.hero-fig figcaption {
margin-top: var(--space-3);
font-family: var(--font-mono);
font-size: 0.75rem;
color: var(--fg-muted);
}
.body { .body {
margin-inline: auto; margin-inline: auto;
counter-reset: sec fig;
}
.body :global(h2) {
counter-increment: sec;
font-size: var(--step-3);
}
.body :global(h2)::before {
content: counter(sec, decimal-leading-zero);
display: block;
margin-bottom: 0.4em;
font-family: var(--font-mono);
font-size: 0.8rem;
font-weight: 500;
letter-spacing: 0.1em;
color: var(--accent);
}
.body :global(figure) {
counter-increment: fig;
}
.body :global(figcaption)::before {
content: 'Fig. ' counter(fig, decimal-leading-zero) ' · ';
color: var(--accent);
}
.next {
display: grid;
gap: var(--space-2);
margin-top: var(--space-8);
padding: var(--space-6);
border: 1px solid var(--line-strong);
background: var(--bg-raised);
text-decoration: none;
}
.next:hover {
background: var(--accent);
color: var(--accent-fg);
}
.ntitle {
font-family: var(--font-display);
font-weight: var(--heading-weight);
font-size: var(--step-4);
letter-spacing: var(--heading-tracking);
text-transform: var(--heading-transform);
line-height: 1;
}
@media (max-width: 48rem) {
.side {
display: none;
}
} }
</style> </style>
+122 -18
View File
@@ -2,22 +2,61 @@
import { getCollection } from 'astro:content'; import { getCollection } from 'astro:content';
import Base from '../../layouts/Base.astro'; import Base from '../../layouts/Base.astro';
import ProjectCard from '../../components/ProjectCard.astro'; import ProjectCard from '../../components/ProjectCard.astro';
import { DISCIPLINES } from '../../content.config'; import LineBadge from '../../components/LineBadge.astro';
import { DISCIPLINES, LINES } from '../../lib/disciplines';
const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data.date); const work = (await getCollection('work')).sort(
(a, b) => Number(b.data.featured) - Number(a.data.featured) || +b.data.date - +a.data.date,
);
// Decorative route map: one line per discipline, stations = project count.
const routes = DISCIPLINES.map((d, i) => {
const y = 30 + i * 22;
const kink = 140 + i * 70;
return {
d,
color: LINES[d].color,
path: `M -10 ${y} H ${kink} l 40 ${i % 2 ? 40 : -40} H 1210`,
stops: work.filter((p) => p.data.disciplines.includes(d)).map((_, k) => ({ x: kink + 120 + k * 150, y: y + (i % 2 ? 40 : -40) })),
};
});
--- ---
<Base title="Work" description="Software, web, games, hardware and 3D projects by Johan Sandoval."> <Base title="Work" description="Software, web, games, hardware and 3D projects by Johan Sandoval." theme="transit">
<section class="wrap section"> <section class="hero">
<p class="label label--accent">// 01 — Archive</p> <svg class="map" viewBox="0 0 1200 190" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<h1>Case files</h1> {
routes.map((r) => (
<g>
<path d={r.path} stroke={r.color} stroke-width="9" fill="none" stroke-linejoin="round" />
{r.stops.map((s) => (
<circle cx={s.x} cy={s.y} r="7" fill="#fff" stroke="#141412" stroke-width="3" />
))}
</g>
))
}
</svg>
<div class="wrap intro">
<h1>Work</h1>
<p class="sub">
Projects across software, web, games, hardware and 3D. Pick a line to filter.
</p>
</div>
</section>
<div class="cluster filters" role="group" aria-label="Filter by discipline"> <section class="wrap">
<button class="btn" data-filter="all" aria-pressed="true">All</button> <div class="filters" role="group" aria-label="Filter by category">
<button class="chip" data-filter="all" aria-pressed="true">
<LineBadge letter="★" color="var(--ink)" fg="#fff" size="1.6rem" title="All" />
All
<span class="n">{work.length}</span>
</button>
{ {
DISCIPLINES.map((d) => ( DISCIPLINES.map((d) => (
<button class="btn" data-filter={d} aria-pressed="false"> <button class="chip" data-filter={d} aria-pressed="false">
{d} <LineBadge d={d} size="1.6rem" />
{LINES[d].label}
<span class="n">{work.filter((p) => p.data.disciplines.includes(d)).length}</span>
</button> </button>
)) ))
} }
@@ -26,27 +65,90 @@ const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data
<div class="grid"> <div class="grid">
{work.map((p, i) => <ProjectCard project={p} index={i + 1} />)} {work.map((p, i) => <ProjectCard project={p} index={i + 1} />)}
</div> </div>
<p class="empty label" hidden>No files in this category yet.</p> <p class="empty" hidden>Nothing in this category yet. Check back soon.</p>
</section> </section>
</Base> </Base>
<style> <style>
.hero {
position: relative;
overflow: hidden;
border-bottom: 2px solid var(--ink);
background: #fffdf7;
}
.map {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0.9;
}
.intro {
position: relative;
padding-block: var(--space-8) var(--space-6);
}
h1 { h1 {
margin-block: var(--space-3) var(--space-6); display: inline-block;
font-size: clamp(4rem, 16vw, 12rem);
line-height: 0.8;
padding: 0.08em 0.15em 0.12em;
background: var(--yellow);
border: 3px solid var(--ink);
border-radius: 18px;
} }
.sub {
display: inline-block;
margin-top: var(--space-4);
padding: 0.4em 0.8em;
background: var(--ink);
color: #fff;
border-radius: 8px;
font-family: var(--ff-grotesk);
font-weight: 600;
}
.filters { .filters {
margin-bottom: var(--space-6); display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-block: var(--space-6);
} }
.filters .btn[aria-pressed='true'] { .chip {
--btn-bg: var(--accent); display: inline-flex;
--btn-fg: var(--accent-fg); align-items: center;
--btn-line: var(--accent); gap: 0.5em;
padding: 0.3em 0.8em 0.3em 0.3em;
border: 2px solid var(--ink);
border-radius: 999px;
background: #fff;
font-family: var(--ff-grotesk);
font-weight: 700;
cursor: pointer;
}
.chip:hover {
background: var(--bg-sunken);
}
.chip[aria-pressed='true'] {
background: var(--ink);
color: #fff;
}
.n {
font-family: var(--ff-mono);
font-weight: 400;
font-size: 0.75rem;
opacity: 0.7;
} }
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
gap: var(--space-5); gap: var(--space-5);
} }
.empty {
padding: var(--space-6);
text-align: center;
font-family: var(--ff-grotesk);
font-weight: 600;
}
</style> </style>
<script> <script>
@@ -57,6 +159,7 @@ const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data
if (!buttons.length) return; if (!buttons.length) return;
const apply = (filter: string) => { const apply = (filter: string) => {
if (![...buttons].some((b) => b.dataset.filter === filter)) filter = 'all';
let shown = 0; let shown = 0;
buttons.forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.filter === filter))); buttons.forEach((b) => b.setAttribute('aria-pressed', String(b.dataset.filter === filter)));
cards.forEach((c) => { cards.forEach((c) => {
@@ -66,7 +169,8 @@ const work = (await getCollection('work')).sort((a, b) => +b.data.date - +a.data
}); });
if (empty) empty.hidden = shown > 0; if (empty) empty.hidden = shown > 0;
const url = new URL(location.href); const url = new URL(location.href);
filter === 'all' ? url.searchParams.delete('d') : url.searchParams.set('d', filter); if (filter === 'all') url.searchParams.delete('d');
else url.searchParams.set('d', filter);
history.replaceState(history.state, '', url); history.replaceState(history.state, '', url);
}; };
+59 -97
View File
@@ -1,6 +1,10 @@
@layer reset, tokens, base, layout, components, utilities, page; @layer reset, tokens, base, layout, components, utilities, page;
@import '@fontsource-variable/big-shoulders'; @import '@fontsource/dela-gothic-one';
@import '@fontsource/dotgothic16';
@import '@fontsource/vt323';
@import '@fontsource-variable/doto';
@import '@fontsource-variable/archivo/wdth.css';
@import '@fontsource-variable/ibm-plex-sans'; @import '@fontsource-variable/ibm-plex-sans';
@import '@fontsource/ibm-plex-mono/400.css'; @import '@fontsource/ibm-plex-mono/400.css';
@import '@fontsource/ibm-plex-mono/500.css'; @import '@fontsource/ibm-plex-mono/500.css';
@@ -9,9 +13,9 @@
@import './themes/index.css' layer(tokens); @import './themes/index.css' layer(tokens);
/* /*
* Page-specific styles should go in the page's own <style> block (Astro scopes * Page-specific styles go in the page's own <style> block (Astro scopes it).
* it automatically). Unscoped overrides belong in `@layer page { ... }` so * Unscoped overrides belong in `@layer page { ... }` so they win over
* they always win over everything here without !important. * everything here without !important.
*/ */
@layer reset { @layer reset {
@@ -62,8 +66,7 @@
background: var(--bg); background: var(--bg);
color: var(--fg); color: var(--fg);
font-family: var(--font-body); font-family: var(--font-body);
font-size: 100%; scrollbar-color: var(--fg) var(--bg-sunken);
scrollbar-color: var(--accent) var(--bg-sunken);
} }
/* Themes can be applied to any element, not just <html>. */ /* Themes can be applied to any element, not just <html>. */
@@ -75,12 +78,11 @@
body { body {
font-size: var(--step-0); font-size: var(--step-0);
background: var(--bg);
position: relative; position: relative;
isolation: isolate; isolation: isolate;
} }
/* film grain */ /* paper grain */
body::before { body::before {
content: ''; content: '';
position: fixed; position: fixed;
@@ -88,23 +90,19 @@
z-index: 9998; z-index: 9998;
pointer-events: none; pointer-events: none;
opacity: var(--grain); opacity: var(--grain);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
mix-blend-mode: overlay; mix-blend-mode: multiply;
} }
/* scanlines */ /* CRT scanlines (themes opt in with --scanlines: 1) */
body::after { body::after {
content: ''; content: '';
position: fixed; position: fixed;
inset: 0; inset: 0;
z-index: 9999; z-index: 9999;
pointer-events: none; pointer-events: none;
opacity: calc(var(--scanlines) * 0.35); opacity: calc(var(--scanlines) * 0.3);
background: repeating-linear-gradient( background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / 0.55) 2px 3px);
to bottom,
transparent 0 2px,
color-mix(in oklab, var(--bg-sunken) 55%, transparent) 2px 3px
);
} }
h1, h1,
@@ -112,10 +110,11 @@
h3, h3,
h4 { h4 {
font-family: var(--font-display); font-family: var(--font-display);
font-weight: 800; font-weight: var(--heading-weight);
line-height: 0.95; font-stretch: var(--heading-stretch);
letter-spacing: 0.005em; letter-spacing: var(--heading-tracking);
text-transform: uppercase; text-transform: var(--heading-transform);
line-height: 1;
text-wrap: balance; text-wrap: balance;
} }
h1 { h1 {
@@ -136,12 +135,13 @@
} }
a { a {
color: var(--accent); color: inherit;
text-decoration-thickness: 1px; text-decoration-color: var(--accent);
text-decoration-thickness: 2px;
text-underline-offset: 0.2em; text-underline-offset: 0.2em;
} }
a:hover { a:hover {
color: var(--signal); color: var(--accent);
} }
code, code,
@@ -151,6 +151,10 @@
font-family: var(--font-mono); font-family: var(--font-mono);
font-size: 0.9em; font-size: 0.9em;
} }
:not(pre) > code {
padding: 0.05em 0.3em;
background: var(--bg-sunken);
}
pre { pre {
padding: var(--space-4); padding: var(--space-4);
overflow-x: auto; overflow-x: auto;
@@ -159,12 +163,12 @@
} }
::selection { ::selection {
background: var(--signal); background: var(--accent);
color: var(--signal-fg); color: var(--accent-fg);
} }
:focus-visible { :focus-visible {
outline: 2px solid var(--signal); outline: 3px solid var(--pop);
outline-offset: 3px; outline-offset: 3px;
} }
@@ -201,9 +205,6 @@
.prose h3 { .prose h3 {
margin-block-start: 1.8em; margin-block-start: 1.8em;
} }
.prose img {
border: var(--border-w) solid var(--line);
}
.prose ul, .prose ul,
.prose ol { .prose ol {
padding-inline-start: 1.25em; padding-inline-start: 1.25em;
@@ -215,69 +216,49 @@
color: var(--accent); color: var(--accent);
} }
.prose blockquote { .prose blockquote {
border-inline-start: 4px solid var(--signal); border-inline-start: 4px solid var(--accent);
padding-inline-start: var(--space-4); padding-inline-start: var(--space-4);
color: var(--fg-muted); color: var(--fg-muted);
} }
} }
@layer components { @layer components {
/* monospaced micro label: "// 01 — SECTION" */ /* small eyebrow text */
.label { .label {
font-family: var(--font-mono); font-family: var(--font-mono);
font-size: var(--step--1); font-size: var(--step--1);
font-weight: 500; font-weight: 500;
letter-spacing: 0.12em; letter-spacing: 0.08em;
text-transform: uppercase; text-transform: uppercase;
color: var(--fg-muted); color: var(--fg-muted);
} }
.label--accent {
color: var(--accent);
}
.label--signal {
color: var(--signal);
}
/* bordered slab with an optional tab label */
.panel { .panel {
position: relative; position: relative;
background: var(--bg-raised); background: var(--bg-raised);
color: var(--fg);
border: var(--border-w) solid var(--line-strong); border: var(--border-w) solid var(--line-strong);
border-radius: var(--radius); border-radius: min(var(--radius), 1.25rem);
padding: var(--space-5); padding: var(--space-5);
} box-shadow: var(--shadow);
.panel[data-tab]::before {
content: attr(data-tab);
position: absolute;
top: calc(-1 * var(--border-w));
left: calc(-1 * var(--border-w));
translate: 0 -100%;
padding: 0.15em 0.6em;
background: var(--line-strong);
color: var(--bg);
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.14em;
text-transform: uppercase;
} }
.btn { .btn {
--btn-bg: transparent; --btn-bg: var(--bg-raised);
--btn-fg: var(--fg); --btn-fg: var(--fg);
--btn-line: var(--line-strong); --btn-line: var(--line-strong);
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.6em; gap: 0.6em;
padding: 0.7em 1.15em; padding: 0.7em 1.2em;
border: var(--border-w) solid var(--btn-line); border: var(--border-w) solid var(--btn-line);
border-radius: var(--radius); border-radius: var(--radius);
background: var(--btn-bg); background: var(--btn-bg);
color: var(--btn-fg); color: var(--btn-fg);
font-family: var(--font-mono); font-family: var(--font-body);
font-size: var(--step--1); font-size: var(--step--1);
font-weight: 500; font-weight: 600;
letter-spacing: 0.1em; letter-spacing: 0.02em;
text-transform: uppercase;
text-decoration: none; text-decoration: none;
cursor: pointer; cursor: pointer;
transition: transition:
@@ -287,21 +268,14 @@
translate 0.15s var(--ease); translate 0.15s var(--ease);
} }
.btn:hover { .btn:hover {
--btn-bg: var(--fg); color: var(--btn-fg);
--btn-fg: var(--bg); box-shadow: 4px 4px 0 var(--line-strong);
box-shadow: 4px 4px 0 var(--signal);
translate: -2px -2px; translate: -2px -2px;
} }
.btn--primary { .btn--primary {
--btn-bg: var(--accent); --btn-bg: var(--accent);
--btn-fg: var(--accent-fg); --btn-fg: var(--accent-fg);
--btn-line: var(--accent); --btn-line: var(--line-strong);
}
.btn--primary:hover {
--btn-bg: var(--signal);
--btn-fg: var(--signal-fg);
--btn-line: var(--signal);
box-shadow: 4px 4px 0 var(--fg);
} }
.btn[disabled] { .btn[disabled] {
opacity: 0.5; opacity: 0.5;
@@ -310,16 +284,16 @@
.tag { .tag {
display: inline-block; display: inline-block;
padding: 0.1em 0.55em; padding: 0.1em 0.6em;
border: 1px solid var(--line); border: 1px solid var(--line-strong);
border-radius: var(--radius);
font-family: var(--font-mono); font-family: var(--font-mono);
font-size: 0.72rem; font-size: 0.72rem;
letter-spacing: 0.08em; letter-spacing: 0.04em;
text-transform: uppercase; color: var(--fg);
color: var(--fg-muted);
} }
/* key/value system readout */ /* key/value spec list */
.readout { .readout {
display: grid; display: grid;
grid-template-columns: max-content 1fr; grid-template-columns: max-content 1fr;
@@ -329,37 +303,28 @@
} }
.readout dt { .readout dt {
color: var(--fg-muted); color: var(--fg-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
} }
.readout dd { .readout dd {
margin: 0; margin: 0;
color: var(--fg);
} }
.blink { /* used when a project has no image yet */
animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
/* placeholder art for projects without media yet */
.placeholder { .placeholder {
display: grid; display: grid;
place-items: center; place-items: center;
aspect-ratio: var(--ratio, 16 / 10); aspect-ratio: var(--ratio, 16 / 10);
background: background:
linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px, radial-gradient(circle, color-mix(in oklab, var(--fg) 22%, transparent) 1.2px, transparent 1.6px) 0 0 / 10px 10px,
linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
var(--bg-sunken); var(--bg-sunken);
color: var(--fg-muted); color: var(--fg-muted);
font-family: var(--font-mono); font-family: var(--font-mono);
font-size: var(--step--1); font-size: var(--step--1);
letter-spacing: 0.12em; }
text-transform: uppercase;
/* halftone dot overlay helper */
.halftone {
background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.5px);
background-size: 8px 8px;
} }
} }
@@ -381,9 +346,6 @@
.accent { .accent {
color: var(--accent); color: var(--accent);
} }
.signal {
color: var(--signal);
}
.glow { .glow {
text-shadow: var(--glow); text-shadow: var(--glow);
} }
-22
View File
@@ -1,22 +0,0 @@
/* Daylight brutalism: cream paper, poured-ink borders, emerald + rust stamps. */
[data-theme='concrete'] {
color-scheme: light;
--bg: var(--cream-100);
--bg-raised: var(--cream-50);
--bg-sunken: var(--cream-300);
--fg: var(--ink-900);
--fg-muted: var(--peat-500);
--line: color-mix(in oklab, var(--ink-900) 25%, transparent);
--line-strong: var(--ink-900);
--accent: var(--emerald-700);
--accent-fg: var(--cream-50);
--signal: var(--rust-500);
--signal-fg: var(--ink-950);
--earth: var(--peat-700);
--border-w: 2px;
--radius: 0;
--grain: 0.12;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* Late-90s desktop: pale screen, cobalt window chrome, pixel type. */
[data-theme='desktop'] {
color-scheme: light;
--bg: #e9ecdf;
--bg-raised: #fbfcf6;
--bg-sunken: #d6dccb;
--fg: #10172e;
--fg-muted: #4f5874;
--line: color-mix(in oklab, var(--cobalt) 30%, transparent);
--line-strong: var(--cobalt);
--accent: var(--cobalt);
--accent-fg: #fff;
--signal: var(--grass);
--signal-fg: #fff;
--pop: var(--sky);
--font-display: var(--ff-pixel);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 400;
--heading-transform: none;
--heading-tracking: 0;
--heading-stretch: 100%;
--border-w: 2px;
--radius: 0;
--shadow: 4px 4px 0 color-mix(in oklab, var(--cobalt) 35%, transparent);
--grain: 0.06;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* Garden: grass greens, cream blobs, fat lowercase grotesk. */
[data-theme='garden'] {
color-scheme: light;
--bg: #fbf6e6;
--bg-raised: #fffdf5;
--bg-sunken: #eef0d0;
--fg: #16260f;
--fg-muted: #55654a;
--line: color-mix(in oklab, #16260f 18%, transparent);
--line-strong: #16260f;
--accent: var(--grass);
--accent-fg: #fffdf5;
--signal: var(--lime);
--signal-fg: #16260f;
--pop: var(--emerald);
--font-display: var(--ff-grotesk);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 900;
--heading-transform: lowercase;
--heading-tracking: -0.045em;
--heading-stretch: 112%;
--border-w: 2px;
--radius: 999px;
--shadow: none;
--grain: 0.1;
--scanlines: 0;
--glow: none;
}
+9 -4
View File
@@ -1,9 +1,14 @@
/* /*
* Every theme lives in its own file and only overrides semantic tokens. * Every theme lives in its own file and only overrides semantic tokens.
* To add one: copy terminal.css, rename the selector, import it here, * To add one: copy a theme file, rename the selector, import it here,
* and add its name to src/lib/themes.ts. * and add its name to src/lib/themes.ts.
*/ */
@import './magazine.css';
@import './transit.css';
@import './spec.css';
@import './desktop.css';
@import './radio.css';
@import './vector.css';
@import './garden.css';
@import './postcard.css';
@import './terminal.css'; @import './terminal.css';
@import './concrete.css';
@import './nostromo.css';
@import './overgrowth.css';
+32
View File
@@ -0,0 +1,32 @@
/* 90s Japanese magazine cover / print ad: cream stock, heavy display type, red + lime + cobalt. */
:root,
[data-theme='magazine'] {
color-scheme: light;
--bg: var(--paper);
--bg-raised: var(--paper-2);
--bg-sunken: var(--paper-3);
--fg: var(--ink);
--fg-muted: color-mix(in oklab, var(--ink) 62%, var(--paper));
--line: color-mix(in oklab, var(--ink) 22%, transparent);
--line-strong: var(--ink);
--accent: var(--red);
--accent-fg: var(--paper-2);
--signal: var(--lime);
--signal-fg: var(--ink);
--pop: var(--cobalt);
--font-display: var(--ff-mag);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 400;
--heading-transform: none;
--heading-tracking: -0.01em;
--heading-stretch: 100%;
--border-w: 2px;
--radius: 0;
--shadow: 5px 5px 0 var(--ink);
--grain: 0.18;
--scanlines: 0;
--glow: none;
}
-23
View File
@@ -1,23 +0,0 @@
/* Ship's-computer amber on peat. Heavier CRT. */
[data-theme='nostromo'] {
color-scheme: dark;
--bg: var(--peat-900);
--bg-raised: color-mix(in oklab, var(--peat-900) 80%, var(--peat-700));
--bg-sunken: #170f09;
--fg: var(--rust-300);
--fg-muted: var(--peat-300);
--line: color-mix(in oklab, var(--rust-300) 22%, transparent);
--line-strong: var(--rust-400);
--accent: var(--rust-400);
--accent-fg: var(--peat-900);
--signal: var(--emerald-300);
--signal-fg: var(--peat-900);
--earth: var(--peat-500);
--font-body: var(--font-mono);
--border-w: 1px;
--radius: 0;
--grain: 0.08;
--scanlines: 1;
--glow: 0 0 0.7em color-mix(in oklab, var(--accent) 55%, transparent);
}
-22
View File
@@ -1,22 +0,0 @@
/* Moss over concrete: deep emerald, cream, rust. */
[data-theme='overgrowth'] {
color-scheme: dark;
--bg: var(--emerald-900);
--bg-raised: color-mix(in oklab, var(--emerald-900) 82%, var(--emerald-700));
--bg-sunken: #06211a;
--fg: var(--cream-50);
--fg-muted: var(--cream-300);
--line: color-mix(in oklab, var(--cream-50) 20%, transparent);
--line-strong: var(--cream-300);
--accent: var(--emerald-300);
--accent-fg: var(--emerald-900);
--signal: var(--rust-400);
--signal-fg: var(--ink-950);
--earth: var(--peat-300);
--border-w: 1px;
--radius: 0;
--grain: 0.1;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* Postcard + stamp: sky blue, cream card stock, postmark ink. */
[data-theme='postcard'] {
color-scheme: light;
--bg: #3f78b8;
--bg-raised: #fbf5e4;
--bg-sunken: #e9e0c6;
--fg: #fbf5e4;
--fg-muted: #d6e3f2;
--line: color-mix(in oklab, #fbf5e4 35%, transparent);
--line-strong: #fbf5e4;
--accent: var(--yellow);
--accent-fg: #142033;
--signal: var(--red);
--signal-fg: #fff;
--pop: var(--pink);
--font-display: var(--ff-grotesk);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 800;
--heading-transform: none;
--heading-tracking: -0.03em;
--heading-stretch: 120%;
--border-w: 2px;
--radius: 0;
--shadow: 6px 6px 0 #142033;
--grain: 0.14;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* College-radio flyer: cream, black ink, dot-matrix display, red + pink + yellow patch cables. */
[data-theme='radio'] {
color-scheme: light;
--bg: #f7f1e1;
--bg-raised: #fffaf0;
--bg-sunken: #ebe2cb;
--fg: #111;
--fg-muted: #5f574a;
--line: color-mix(in oklab, #111 20%, transparent);
--line-strong: #111;
--accent: var(--red);
--accent-fg: #fff;
--signal: var(--yellow);
--signal-fg: #111;
--pop: var(--pink);
--font-display: var(--ff-dot);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 900;
--heading-transform: uppercase;
--heading-tracking: 0;
--heading-stretch: 100%;
--border-w: 2px;
--radius: 6px;
--shadow: 4px 4px 0 #111;
--grain: 0.16;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* Technical exhibition poster: grey stock, fine grid, mono annotations, leader lines. */
[data-theme='spec'] {
color-scheme: light;
--bg: var(--newsprint);
--bg-raised: #e8e7e1;
--bg-sunken: #cfcec6;
--fg: #161616;
--fg-muted: #5d5d58;
--line: color-mix(in oklab, #161616 18%, transparent);
--line-strong: #161616;
--accent: var(--emerald);
--accent-fg: #fff;
--signal: var(--orange);
--signal-fg: #161616;
--pop: var(--emerald);
--font-display: var(--ff-grotesk);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 300;
--heading-transform: none;
--heading-tracking: -0.03em;
--heading-stretch: 100%;
--border-w: 1px;
--radius: 0;
--shadow: none;
--grain: 0.12;
--scanlines: 0;
--glow: none;
}
+24 -16
View File
@@ -1,23 +1,31 @@
/* Default. Night-shift terminal: ink, cream phosphor, emerald + rust signals. */ /* Green-phosphor terminal: dashed frames, pixel-ish mono. */
:root,
[data-theme='terminal'] { [data-theme='terminal'] {
color-scheme: dark; color-scheme: dark;
--bg: var(--ink-900); --bg: var(--crt-bg);
--bg-raised: var(--ink-800); --bg-raised: #0b1a10;
--bg-sunken: var(--ink-950); --bg-sunken: #040a06;
--fg: var(--cream-100); --fg: #c9f7d6;
--fg-muted: var(--cream-500); --fg-muted: #6fa883;
--line: color-mix(in oklab, var(--cream-100) 18%, transparent); --line: color-mix(in oklab, var(--phosphor) 30%, transparent);
--line-strong: var(--cream-300); --line-strong: var(--phosphor);
--accent: var(--emerald-400); --accent: var(--phosphor);
--accent-fg: var(--ink-950); --accent-fg: var(--crt-bg);
--signal: var(--rust-500); --signal: var(--amber);
--signal-fg: var(--ink-950); --signal-fg: var(--crt-bg);
--earth: var(--peat-500); --pop: var(--phosphor);
--font-display: var(--ff-crt);
--font-body: var(--ff-mono);
--font-mono: var(--ff-mono);
--heading-weight: 400;
--heading-transform: uppercase;
--heading-tracking: 0.03em;
--heading-stretch: 100%;
--border-w: 1px; --border-w: 1px;
--radius: 0; --radius: 0;
--grain: 0.06; --shadow: none;
--grain: 0.05;
--scanlines: 1; --scanlines: 1;
--glow: 0 0 0.6em color-mix(in oklab, var(--accent) 45%, transparent); --glow: 0 0 0.45em color-mix(in oklab, var(--phosphor) 60%, transparent);
} }
+31
View File
@@ -0,0 +1,31 @@
/* Subway map + transit card: off-white, Helvetica-ish grotesk, colored line badges. */
[data-theme='transit'] {
color-scheme: light;
--bg: #f4f1e8;
--bg-raised: #ffffff;
--bg-sunken: #e8e3d4;
--fg: var(--ink);
--fg-muted: #6b675d;
--line: #d3cdbd;
--line-strong: var(--ink);
--accent: var(--yellow);
--accent-fg: var(--ink);
--signal: var(--red);
--signal-fg: #fff;
--pop: var(--cobalt);
--font-display: var(--ff-grotesk);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 800;
--heading-transform: none;
--heading-tracking: -0.035em;
--heading-stretch: 100%;
--border-w: 2px;
--radius: 14px;
--shadow: 0 2px 0 var(--line);
--grain: 0.1;
--scanlines: 0;
--glow: none;
}
+31
View File
@@ -0,0 +1,31 @@
/* 80s computer graphics: black void, wireframe grids, CRT orange + cyan readouts. */
[data-theme='vector'] {
color-scheme: dark;
--bg: #050507;
--bg-raised: #0d0d14;
--bg-sunken: #000;
--fg: #f4ead2;
--fg-muted: #a39a86;
--line: color-mix(in oklab, var(--cyan) 28%, transparent);
--line-strong: var(--cyan);
--accent: var(--amber);
--accent-fg: #050507;
--signal: var(--phosphor);
--signal-fg: #050507;
--pop: var(--cyan);
--font-display: var(--ff-crt);
--font-body: var(--ff-sans);
--font-mono: var(--ff-mono);
--heading-weight: 400;
--heading-transform: uppercase;
--heading-tracking: 0.02em;
--heading-stretch: 100%;
--border-w: 1px;
--radius: 0;
--shadow: none;
--grain: 0.05;
--scanlines: 1;
--glow: 0 0 0.5em color-mix(in oklab, var(--amber) 55%, transparent);
}
+46 -32
View File
@@ -1,48 +1,62 @@
/* /*
* Raw palette. Themes map these onto the semantic tokens below; components * Raw palette + type. Themes map these onto semantic tokens (--bg, --fg,
* should only ever use the semantic ones (--bg, --fg, --accent, ...). * --accent, ...). Components should only use the semantic ones.
*/ */
:root { :root {
--ink-950: #0a0c09; /* ink + paper */
--ink-900: #11140f; --ink: #141412;
--ink-800: #1a1e16; --ink-2: #2a2a26;
--ink-700: #262b20; --paper: #f3ecd9;
--paper-2: #fbf7ec;
--paper-3: #e4dbc3;
--newsprint: #dddcd5;
--cream-50: #f4eedf; /* print colors */
--cream-100: #eae0c8; --lime: #c8e034;
--cream-300: #cfc1a0; --grass: #4c9a2a;
--cream-500: #a3967a; --emerald: #138a52;
--forest: #0d4d2f;
--red: #e2321f;
--tomato: #f0563c;
--orange: #f07a1a;
--yellow: #ffd31a;
--cobalt: #1d3fd8;
--sky: #5aa0dc;
--pink: #f2a0b8;
--violet: #7b4fd0;
--peat: #6c4b34;
--emerald-300: #63d6a0; /* CRT */
--emerald-400: #33b87c; --crt-bg: #07120b;
--emerald-500: #1c9a63; --phosphor: #4dff8a;
--emerald-700: #0f5d3d; --amber: #ff9a2a;
--emerald-900: #0a3123; --cyan: #67e8f9;
--rust-300: #f7a86a; /* subway lines: one per section / discipline */
--rust-400: #f08a3c; --line-work: var(--red);
--rust-500: #de6119; --line-blog: var(--cobalt);
--rust-700: #993e0b; --line-music: var(--yellow);
--line-3d: var(--violet);
--line-about: var(--emerald);
--line-contact: var(--sky);
--peat-300: #a58063; /* type families */
--peat-500: #6c4b34; --ff-mag: 'Dela Gothic One', 'Arial Black', sans-serif;
--peat-700: #3f2b1e; --ff-grotesk: 'Archivo Variable', 'Helvetica Neue', Arial, sans-serif;
--peat-900: #22170f; --ff-pixel: 'DotGothic16', ui-monospace, monospace;
--ff-dot: 'Doto Variable', ui-monospace, monospace;
/* type */ --ff-crt: 'VT323', ui-monospace, monospace;
--font-display: 'Big Shoulders Variable', 'Arial Narrow', sans-serif; --ff-sans: 'IBM Plex Sans Variable', system-ui, sans-serif;
--font-body: 'IBM Plex Sans Variable', system-ui, sans-serif; --ff-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
--font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
--step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem); --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
--step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem); --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
--step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem); --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
--step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem); --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
--step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem); --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
--step-4: clamp(2.75rem, 2.1rem + 3.2vw, 5rem); --step-4: clamp(2.6rem, 2rem + 3vw, 4.75rem);
--step-5: clamp(3.5rem, 2.3rem + 6vw, 8.5rem); --step-5: clamp(3.25rem, 2rem + 6.5vw, 8.5rem);
/* space */
--space-1: 0.25rem; --space-1: 0.25rem;
--space-2: 0.5rem; --space-2: 0.5rem;
--space-3: 0.75rem; --space-3: 0.75rem;
@@ -54,7 +68,7 @@
--space-9: 7rem; --space-9: 7rem;
--gutter: clamp(1rem, 4vw, 2.5rem); --gutter: clamp(1rem, 4vw, 2.5rem);
--max-w: 76rem; --max-w: 78rem;
--prose-w: 68ch; --prose-w: 68ch;
--ease: cubic-bezier(0.2, 0.7, 0.2, 1); --ease: cubic-bezier(0.2, 0.7, 0.2, 1);