# yoyos.sh Portfolio, project archive and weekly log of Johan Sandoval. **Stack:** Astro (static pages + a small Node server) · React islands · MDX · plain CSS · Docker on Coolify. Large media lives on the NAS (Nextcloud) and is proxied through `/media`. ```bash npm install npm run dev # http://localhost:4321 npm run build && npm start ``` ## Deploy pipeline ``` push to GitHub main ──(.github/workflows/mirror.yml)──▶ Gitea yoyos/yoyos.sh ──▶ Coolify (Dockerfile) ──▶ yoyos.sh ``` - GitHub repo secrets: `GITEA_URL` (`https://gitea.yoyos.sh/yoyos/yoyos.sh.git`), `GITEA_TOKEN`. - Coolify: Dockerfile build pack, port **4321**, health check `/healthz`. - Coolify environment variables: see `.env.example` (`MEDIA_ORIGIN`, `SMTP_*`, `CONTACT_*`). ## Adding content | What | Where | |---|---| | Project | `src/content/work/.md(x)` or `src/content/work//index.mdx` with images next to it | | 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` | Every field is typed in `src/content.config.ts`, so the build fails loudly when something's missing. ## Styling 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: ``, or `theme: vector` in a project/post's frontmatter (projects default to `spec`, posts to `desktop`). Use it on one section: `
`. - 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 `