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:
61 files changed
+2770
-1108
No files matched your search
@@ -26,8 +26,8 @@ push to GitHub main ──(.github/workflows/mirror.yml)──▶ Gitea yoyos/yo
|
||||
| What | Where |
|
||||
|---|---|
|
||||
| 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) |
|
||||
| Recording | `src/content/sound/<slug>.yaml` + audio file in the media share under `sound/` |
|
||||
| Blog post | `src/content/blog/<slug>.md(x)` (`draft: true` hides it in production) |
|
||||
| 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/` |
|
||||
| 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` |
|
||||
@@ -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: `<Base theme="concrete">`, or `theme: concrete` in a project or post's frontmatter.
|
||||
- Use a theme on one section: `<section data-theme="nostromo">`.
|
||||
- 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 `<style>` block (scoped automatically), or `@layer page { }` for global overrides.
|
||||
Each page has its own look, built on one shared palette and a "subway line" color system
|
||||
(every section and project category has a line color + badge, see `src/lib/disciplines.ts`).
|
||||
|
||||
| Theme | Used on | Feel |
|
||||
|---|---|---|
|
||||
| `magazine` (default) | Home | 90s magazine cover / print ad |
|
||||
| `transit` | Work index | Subway map, transit cards |
|
||||
| `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)
|
||||
|
||||
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.
|
||||
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`.
|
||||
|
||||
Reference in new issue
Block a user