docs: document theme, content conventions, and 2026-11-24 changes

- Replace create-next-app README with a real one (layout, dev, deploy).
- docs/CLAUDE.md: add theme/styling and content convention sections, the
  no-em-dash copy rule, dev-server and stale-CSS notes, cross-references.
- Add docs/changelog.md with today's site and infra changes.
- Mark docs/palette.html as the superseded original spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
donnyandClaude Opus 5.5 committed 2026-11-24 19:09:58 -07:00
1 parent abd5fd4a58
commit 08a250202d
4 files changed
+115 -29

No files matched your search

+38 -2
View File
@@ -41,6 +41,17 @@ Full profile lives in `~/Projects/career-ops/config/profile.yml` and `~/Projects
- A blog-first site. (Writing is welcome but not the entry point.)
- A "projects" grid of unfinished side projects. Quality over quantity — 3-4 deep case studies beats 12 thumbnails.
## Theme and styling (current implementation)
Every color and font comes from CSS variables in the `:root` block at the top of `app/globals.css`. Change the theme there, not in components.
- **Fonts:** loaded with `next/font` in `app/layout.tsx` (Manrope, EB Garamond). `--site-sans` / `--site-serif` point at them, and Tailwind's `font-sans` / `font-serif` read those.
- **Colors:** `--background`, `--foreground`, `--bg-elevated`, `--accent` (gold `#d4a24a`), `--accent-hover`. Use the matching Tailwind utilities: `bg-background`, `text-foreground`, `bg-elevated`, `text-accent`, `border-accent`, `bg-accent`. For inline styles, `constants/colors.ts` exports the same values as `var(...)` strings.
- **Greys:** the `--n-50` to `--n-950` scale (currently Tailwind's **zinc** values) is mapped onto every `neutral-*` class. Swapping the grey tone means swapping that one scale, not editing ~90 class names.
- **Never build Tailwind class names at runtime** (for example `` `hover:bg-[${color}]` ``). Tailwind only generates classes it can read literally in the source. The about page had four of these, and they never produced any CSS.
- **Dev-only theme switcher** (`components/dev/`): a floating panel on the dev server for A/B-ing body font, display font, grey tone, and accent on the real pages. Save combos to A/B and press `` ` `` to flip. `app/layout.tsx` loads it behind a `NODE_ENV === "development"` dynamic import, so it and its extra fonts are compiled out of production (verified with `next build`). To adopt a combo, bake it into `globals.css` + `layout.tsx`.
- `docs/palette.html` is the **original** spec (Inter, Instrument Serif, neutral greys). It's kept for history, but `globals.css` is the source of truth.
## Information architecture
Five routes max. Keep it skimmable.
@@ -91,14 +102,20 @@ Why: it's the stack the bullseye companies ship. Using it is itself a signal.
**Deployment:** Self-hosted by Angel. Traefik is already configured and pointing at the domain. Do not propose Vercel, Netlify, Cloudflare Pages, or any managed host — the infra is in-house and stays that way. Build target should produce a standard Node server or static export that drops into the existing Traefik setup; ask Angel for specifics (container? bare Node? static `out/`?) before wiring CI.
**Current deploy:** Docker container behind Traefik, defined as the `portfolio` service in `~/portfolio-stack/docker-compose.yml` (host `angelmankel.com`). No CI — after pushing to `main`, redeploy with `docker compose up -d --build --no-deps portfolio` from `~/portfolio-stack`. Only do this when Angel asks.
**Current deploy:** Docker container behind Traefik, defined as the `portfolio` service in `~/portfolio-stack/docker-compose.yml` (host `angelmankel.com`). No CI — after pushing to `main`, redeploy with `docker compose up -d --build --no-deps portfolio` from `~/portfolio-stack`. Only do this when Angel asks. Commit straight to `main` (no feature branches in this repo). `www.angelmankel.com` 301-redirects to the apex, and a DDNS container keeps the DNS on the home IP. Both are documented in `~/portfolio-stack/README.md`.
**Dev server for review:** Angel reviews from another machine on the LAN, so bind to the server's LAN IP: `npx next dev -H 192.168.0.10 -p 3100`, then open `http://192.168.0.10:3100`. Binding to the IP matters, because Next 16 blocks dev assets for other origins (`allowedDevOrigins`). Over plain http on a LAN IP, `navigator.clipboard` doesn't exist.
**Known dev gotcha:** Turbopack's dev server has repeatedly kept serving a **stale `app/globals.css`** after edits (new keyframes and theme variables were missing from the served CSS). After any CSS change, check the served stylesheet (`curl` the `/_next/static/...css` from the page). If it's stale, stop the server, `rm -rf .next/dev`, and restart. Production builds aren't affected.
**Lint:** `npx eslint` currently reports pre-existing errors in `components/ui/Modal.tsx` and warnings in `components/ui/ImageViewer.tsx`. Lint the files you touch.
**Alternatives considered:**
- Astro — better for static-heavy content sites, but Next.js signals stack alignment with target employers. Use Astro only if Angel wants to demonstrate range.
- Plain HTML/CSS — would actually be impressive ("I don't need a framework for this") but reads as contrarian unless the design carries it. Skip.
**Other choices:**
- `next/font` for self-hosted typography. Suggested pairing: Inter (UI) + JetBrains Mono / Geist Mono (code). Or splurge on a paid display face for the name only.
- `next/font` for self-hosted typography. **Current pairing (picked 2026-11-24): Manrope (body, `font-sans`) + EB Garamond (display, `font-serif`).** See "Theme and styling" below.
- `next-mdx-remote` or built-in MDX for case studies.
- `shiki` for code blocks (matches Vercel/Anthropic aesthetic better than Prism).
- View Transitions API for `/projects` → `/projects/[slug]` navigation. One signature detail.
@@ -114,6 +131,23 @@ Defaults if no samples found:
- Specific over abstract. "Cut p95 from 2.1s to 380ms" beats "improved performance."
- Zero corporate clichés: no "passionate", "results-oriented", "proven track record", "leveraged", "synergies", "cutting-edge."
- No emoji in copy. (Emoji on the page = wrong audience signal for these companies.)
- **No em dashes (—) anywhere** on the site, including page titles. They read as AI-written. Use a plain hyphen with spaces (` - `), or rewrite the sentence with a comma, colon, or period.
## Content conventions (as built)
**Testimonials** (`constants/testimonials.ts`, shown on `/` above Selected Projects):
- Quotes are **excerpts made of whole sentences copied verbatim** from each LinkedIn recommendation. Never reword them. Keep each to roughly 45-60 words so the cards stay a consistent size. The full text lives on LinkedIn.
- Order: manager recommendation first (currently Douglas Wilhelm, Senior Engineering Leader), then Karynn Tran, then Alex Brown.
- Titles are the person's LinkedIn headline. Don't add company or industry suffixes unless Angel asks.
- Avatars are initials in a circle with a thin gold (`border-accent`) border. Add an `avatar` URL only for a real photo of the person. The old picsum placeholders were random stock images.
- The carousel (`components/content/Testimonials.tsx`) stacks every slide in one grid cell, so the height is fixed to the longest quote and nothing shifts. A CSS countdown line (`.animate-testimonial-countdown` in `globals.css`) **is** the rotation timer: its `animationend` advances the slide. Hover, keyboard focus (`:focus-visible` only, so mouse clicks don't freeze it), and the pause button freeze it. Rotation is every 10s.
**Uses page** (`constants/uses.ts` holds the data, `app/uses/page.tsx` the layout):
- Hardware is one flat list (no "for work / for fun" grouping): Daily driver, Minisforum N5 Pro, Custom workstation, then Peripherals and Displays.
- **Daily driver** is the Arch Linux PC (192.168.0.71, Hyprland on Wayland): Ryzen 9 9950X, 64GB DDR5, Radeon Pro W7500, RTX A4500 passed through to a Windows 11 VM viewed with Looking Glass.
- **Custom workstation** is the Proxmox host internally called `pve2` (Proxmox VE 9.2). **Don't use the name "pve2" on the site.** It has a Ryzen 9 5900X, 128GB DDR4, RTX 3090 24GB, and VMs for a GPU server, TrueNAS, a Linux coding-agent worker, and Windows 11.
- The MS-01 was retired and removed. Specs were last gathered 2026-11-24 via `lscpu`, `free`, `lspci`, `pveversion`, and `qm list`. Storage isn't listed, because those commands didn't capture it.
- AI tools: Claude Code, Codex, and OpenCode (coding agents). Claude (chat). Ollama and OpenRouter (models). Paseo and ContextForge (MCP and agents). Paseo replaced Open WebUI, and ContextForge replaced MetaMCP.
## What "done" looks like for v1
@@ -143,3 +177,5 @@ Defaults if no samples found:
- Profile & narrative: `~/Projects/career-ops/config/profile.yml`, `~/Projects/career-ops/modes/_profile.md`
- Proof point details (if exists): `~/Projects/career-ops/article-digest.md`
- Writing samples (if exists): `~/Projects/career-ops/writing-samples/`
- Change history: `docs/changelog.md`
- Hosting, DNS, and the demo stack (Traefik routing, www redirect, DDNS): `~/portfolio-stack/README.md`
+45
View File
@@ -0,0 +1,45 @@
# Changelog
What changed and why, newest first. Durable conventions live in `docs/CLAUDE.md`; this file records the history behind them.
## 2026-11-24
Site commit: `abd5fd4` "feat: refresh uses, testimonials, and theme". Infra changes in `~/portfolio-stack` (not in git, see its README).
### Confirmed prod source
- `angelmankel.com` is served by the `portfolio` container, which is built from this repo by the `portfolio` service in `~/portfolio-stack/docker-compose.yml`. Before today's work, the running image matched `main` (`6b67908`).
### Uses page
- Merged "For work" / "For fun" into a single Hardware list. Removed the Minisforum MS-01 (no longer in use).
- "Gaming rig" became **Daily driver**, the Arch PC (Ryzen 9 9950X, 64GB DDR5, Radeon Pro W7500, RTX A4500 passed through to a Windows 11 VM via Looking Glass; Hyprland on Wayland).
- "Custom workstation" is now the Proxmox host (internally `pve2`, deliberately not named on the site): Ryzen 9 5900X, 128GB DDR4, RTX 3090 24GB, Proxmox VE 9.2, running GPU-server, TrueNAS, Linux agent-worker, and Windows 11 VMs.
- AI tools: MetaMCP → **ContextForge**, Open WebUI → **Paseo**. Added **Codex**, **OpenCode**, **OpenRouter**. Regrouped into Coding agents / Chat clients / Models / MCP & agents.
### Testimonials
- Added **Douglas Wilhelm** (Senior Engineering Leader), shown first. Trimmed Karynn's quote, and all quotes are now ~55-60 words of verbatim sentences. Removed "· Healthcare Tech" from Alex Brown's title.
- Moved the section above Selected Projects and restyled it as a card. The name and avatar now sit below the quote, the avatars are initials with a thin gold border, small inline gold quote marks wrap each quote, the active dot is gold, the name and title are bigger, and a gold countdown line sits under the divider.
- Fixed carousel bugs:
- Hooks ran after an early `return`, breaking the rules of hooks.
- Clicking a dot didn't reset the timer, so the slide could jump away right after you picked it.
- The height changed between quotes, shifting the page and the controls.
- Rotation was 5s, too fast to read. It's now 10s, and hover or keyboard focus pause it.
- The countdown animation now drives rotation itself, so the line and the timer can't drift.
### Theme
- Centralized all colors and fonts into CSS variables in `app/globals.css`. Every `neutral-*` class reads a swappable `--n-*` scale, and the header's hardcoded `#0a0a0a` is gone.
- Added a dev-only theme switcher (`components/dev/`) to A/B combos on the real pages. It's compiled out of production builds.
- Picked and baked in: **Manrope** (body) + **EB Garamond** (display) + **zinc** greys + **gold** `#d4a24a` (unchanged). Previously Inter + Instrument Serif + neutral greys.
- Removed four runtime-built `hover:bg-[${colors.accent}]` classes on the about page's contact icons. They never generated CSS, so the gold hover never showed. Re-adding it properly (`hover:bg-accent`) is an open option.
### Copy
- Replaced every em dash (—) across the site, including page titles and code comments, with a plain hyphen. New rule in `docs/CLAUDE.md`: no em dashes.
### Infra (in `~/portfolio-stack`)
- `www.angelmankel.com`: Angel added a proxied CNAME in Cloudflare, and Traefik labels on the `portfolio` service 301 it to the apex on http and https. The redirect lives in Traefik because AdGuard resolves `*.angelmankel.com` to the server on the LAN.
- Dynamic DNS: added a `cloudflare-ddns` container that keeps the `angelmankel.com` and `demo.angelmankel.com` A records on the current home IP (checked every 5 minutes). The home IP had changed from 71.35.27.10 to 184.4.48.86.
### Open items
- Gold hover on the about page contact icons (never worked, removed). Add it back if wanted.
- Pre-existing lint errors in `components/ui/Modal.tsx`, and warnings in `components/ui/ImageViewer.tsx`.
- Storage specs for the Daily driver and Custom workstation weren't captured.
- Remove the dev theme switcher if it's no longer wanted.
+4
View File
@@ -39,6 +39,10 @@
</style>
</head>
<body>
<!-- Superseded 2026-11-24: the live theme is in app/globals.css (see docs/CLAUDE.md "Theme and styling"). -->
<p style="margin:16px;padding:10px 14px;border:1px solid #d4a24a;border-radius:8px;color:#d4a24a;font-family:system-ui,sans-serif;font-size:14px">
Historical spec. The live theme (Manrope + EB Garamond, zinc greys, gold #d4a24a) lives in <code>app/globals.css</code>; see <code>docs/CLAUDE.md</code>.
</p>
<div class="wrap">
<h1>Palette — Angel Mankel portfolio</h1>