diff --git a/README.md b/README.md index e215bc4..fd7efbc 100644 --- a/README.md +++ b/README.md @@ -1,36 +1,37 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). +# angelmankel.com -## Getting Started +Angel Mankel's portfolio site. Next.js 16 (App Router), TypeScript, Tailwind v4. Self-hosted in Docker behind Traefik. -First, run the development server: +- **Project brief, design rules, and conventions:** [`docs/CLAUDE.md`](docs/CLAUDE.md). Read this before changing copy or design. +- **Change history:** [`docs/changelog.md`](docs/changelog.md) +- **Hosting, DNS, and the demo stack:** `~/portfolio-stack/README.md` (on the server, not in this repo) + +## Where things live + +| What | Where | +|---|---| +| Page content (projects, testimonials, uses, about, timeline) | `constants/*.ts` | +| Pages | `app/` (`/`, `/about`, `/projects`, `/projects/[slug]`, `/uses`) | +| Theme: colors, grey scale, font roles | `:root` in `app/globals.css` | +| Fonts (Manrope, EB Garamond) | `app/layout.tsx` via `next/font` | +| Dev-only theme switcher | `components/dev/` (never in production builds) | +| Resume PDF | `public/Angel_Mankel_Resume_2026.pdf` | + +## Develop ```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev +npm install +npx next dev -H 192.168.0.10 -p 3100 # reachable from other LAN machines +# or: npm run dev # localhost:3000 only ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +If a CSS change doesn't show up, the dev server is probably serving a stale `globals.css`. Stop it, run `rm -rf .next/dev`, and start it again. -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. +## Deploy -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. +There's no CI. Commit to `main`, push, then rebuild the container on the server: -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. +```bash +git push origin main +cd ~/portfolio-stack && docker compose up -d --build --no-deps portfolio +``` diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md index e3bce59..417cf00 100644 --- a/docs/CLAUDE.md +++ b/docs/CLAUDE.md @@ -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` diff --git a/docs/changelog.md b/docs/changelog.md new file mode 100644 index 0000000..946a012 --- /dev/null +++ b/docs/changelog.md @@ -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. diff --git a/docs/palette.html b/docs/palette.html index 3cc4be6..758c0de 100644 --- a/docs/palette.html +++ b/docs/palette.html @@ -39,6 +39,10 @@
+ +
+ Historical spec. The live theme (Manrope + EB Garamond, zinc greys, gold #d4a24a) lives in app/globals.css; see docs/CLAUDE.md.
+