From ef9d597b52b09fc58f6415e854cb559b66bd64e7 Mon Sep 17 00:00:00 2001 From: Johan Sandoval Date: Thu, 8 Oct 2026 15:36:51 +0000 Subject: [PATCH] Redesign with per-page themes and plain wording 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. --- README.md | 37 +- astro.config.mjs | 5 + package-lock.json | 48 ++- package.json | 6 +- src/components/AudioPlayer.tsx | 6 +- src/components/Figure.astro | 7 +- src/components/Footer.astro | 64 +++- src/components/LineBadge.astro | 40 +++ src/components/ModelViewer.astro | 9 +- src/components/Nav.astro | 110 +++--- src/components/ProjectCard.astro | 157 +++++---- src/components/SectionHead.astro | 49 --- src/components/deco/Barcode.astro | 48 +++ src/components/deco/Stamp.astro | 44 +++ src/components/deco/Starburst.astro | 51 +++ src/components/deco/Window.astro | 62 ++++ src/content.config.ts | 16 +- src/content/blog/building-this-site.md | 15 + src/content/log/000-boot-sequence.md | 14 - src/content/music/placeholder-take.yaml | 5 + src/content/sound/placeholder-take.yaml | 5 - src/content/work/chicago-in-3d.md | 2 +- src/content/work/hardware-build.md | 1 - src/content/work/homelab.md | 2 +- src/content/work/untitled-game.md | 2 +- src/content/work/usmt-dash/index.mdx | 3 - src/layouts/Base.astro | 6 +- src/lib/disciplines.ts | 12 + src/lib/media.ts | 2 +- src/lib/site.ts | 13 +- src/lib/themes.ts | 12 +- src/pages/404.astro | 46 ++- src/pages/about.astro | 301 ++++++++++++---- src/pages/blog/[...slug].astro | 84 +++++ src/pages/blog/index.astro | 167 +++++++++ src/pages/contact.astro | 265 ++++++++++---- src/pages/index.astro | 444 ++++++++++++++++-------- src/pages/log/[...slug].astro | 66 ---- src/pages/log/index.astro | 87 ----- src/pages/models.astro | 132 ++++++- src/pages/music.astro | 230 ++++++++++++ src/pages/play/[slug].astro | 6 +- src/pages/rss.xml.ts | 8 +- src/pages/sound.astro | 74 ---- src/pages/work/[...slug].astro | 372 +++++++++++++++----- src/pages/work/index.astro | 140 +++++++- src/styles/global.css | 156 ++++----- src/styles/themes/concrete.css | 22 -- src/styles/themes/desktop.css | 31 ++ src/styles/themes/garden.css | 31 ++ src/styles/themes/index.css | 13 +- src/styles/themes/magazine.css | 32 ++ src/styles/themes/nostromo.css | 23 -- src/styles/themes/overgrowth.css | 22 -- src/styles/themes/postcard.css | 31 ++ src/styles/themes/radio.css | 31 ++ src/styles/themes/spec.css | 31 ++ src/styles/themes/terminal.css | 40 ++- src/styles/themes/transit.css | 31 ++ src/styles/themes/vector.css | 31 ++ src/styles/tokens.css | 78 +++-- 61 files changed, 2770 insertions(+), 1108 deletions(-) create mode 100644 src/components/LineBadge.astro delete mode 100644 src/components/SectionHead.astro create mode 100644 src/components/deco/Barcode.astro create mode 100644 src/components/deco/Stamp.astro create mode 100644 src/components/deco/Starburst.astro create mode 100644 src/components/deco/Window.astro create mode 100644 src/content/blog/building-this-site.md delete mode 100644 src/content/log/000-boot-sequence.md create mode 100644 src/content/music/placeholder-take.yaml delete mode 100644 src/content/sound/placeholder-take.yaml create mode 100644 src/lib/disciplines.ts create mode 100644 src/pages/blog/[...slug].astro create mode 100644 src/pages/blog/index.astro delete mode 100644 src/pages/log/[...slug].astro delete mode 100644 src/pages/log/index.astro create mode 100644 src/pages/music.astro delete mode 100644 src/pages/sound.astro delete mode 100644 src/styles/themes/concrete.css create mode 100644 src/styles/themes/desktop.css create mode 100644 src/styles/themes/garden.css create mode 100644 src/styles/themes/magazine.css delete mode 100644 src/styles/themes/nostromo.css delete mode 100644 src/styles/themes/overgrowth.css create mode 100644 src/styles/themes/postcard.css create mode 100644 src/styles/themes/radio.css create mode 100644 src/styles/themes/spec.css create mode 100644 src/styles/themes/transit.css create mode 100644 src/styles/themes/vector.css diff --git a/README.md b/README.md index ef2d499..8fa057a 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ push to GitHub main ──(.github/workflows/mirror.yml)──▶ Gitea yoyos/yo | What | Where | |---|---| | Project | `src/content/work/.md(x)` or `src/content/work//index.mdx` with images next to it | -| Log post | `src/content/log/.md(x)` (`draft: true` hides it in production) | -| Recording | `src/content/sound/.yaml` + audio file in the media share under `sound/` | +| Blog post | `src/content/blog/.md(x)` (`draft: true` hides it in production) | +| Recording | `src/content/music/.yaml` + audio file in the media share under `music/` | | 3D model | `src/content/models/.yaml` + `.glb` in the media share under `models/` | | Game | add a `game:` block to a project + web export in the media share under `games//` → playable at `/play/` | | 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 -- `src/styles/tokens.css`: raw palette (ink, cream, emerald, rust, peat), type scale, spacing. -- `src/styles/themes/*.css`: each theme maps the palette onto semantic tokens (`--bg`, `--fg`, - `--accent`, `--signal`, `--line`, fonts, grain, scanlines). Current themes: `terminal` (default), - `concrete`, `nostromo`, `overgrowth`. -- Use a theme on a whole page: ``, or `theme: concrete` in a project or post's frontmatter. -- Use a theme on one section: `
`. -- New theme: copy a theme file, rename the selector, import it in `themes/index.css`, and add the name to `src/lib/themes.ts`. -- One-off page styling: the page's own ` diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 067b607..4939a4e 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,22 +1,28 @@ --- -import { SITE } from '../lib/site'; +import { SITE, NAV } from '../lib/site'; const year = new Date().getFullYear(); const links = Object.entries(SITE.links).filter(([, href]) => !href.includes('PLACEHOLDER')); --- diff --git a/src/components/LineBadge.astro b/src/components/LineBadge.astro new file mode 100644 index 0000000..9782aea --- /dev/null +++ b/src/components/LineBadge.astro @@ -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; +--- + + + {letter} + + + diff --git a/src/components/ModelViewer.astro b/src/components/ModelViewer.astro index b9b342d..f14b49e 100644 --- a/src/components/ModelViewer.astro +++ b/src/components/ModelViewer.astro @@ -27,10 +27,10 @@ const { src, alt, poster, ratio = '16 / 10' } = Astro.props; loading="lazy" reveal="interaction" > - +
- Drag to orbit · scroll to zoom + Drag to rotate · scroll to zoom