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