mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
resume: rename EN output to resume-en.pdf, show bare filenames in the dialog (spec-v3 follow-up 24)
This commit is contained in:
1 parent
61a01e25ca
commit
33fa6ebefd
6 files changed
+11
-10
No files matched your search
@@ -126,4 +126,5 @@ Modern, elegant, brand-consistent A4 resume: correct print geometry, timeline ex
|
||||
- [x] Owner follow-up 21 (2026-10-20): **bar resume glyph always carries the theme colour** — the trigger inherited `.nav-control`'s rest `color: var(--text-primary)`, which is identical across the red and blue palettes, so switching palette left the CV glyph unchanged: the entry did not read as themed. `.nav-resume-trigger` now declares `color: var(--accent)` at rest (`App.css`), joining the `border-color: transparent` rule; hover and open already resolve to `--accent` through `.nav-control:hover / .open` (specificity 0,2,0), so the glyph is the active theme/palette's signal colour in every state — rest, hover, open — with no colour step between them, and it follows both theme axes because `--accent` is re-declared in all five blocks of `index.css`. Contrast is the same accent already used by `.nav-link.active` and every control's hover. Cascade verified by rule order (`.nav-resume-trigger` 0,1,0 after `.nav-control` 0,1,0) and a full-file grep: no other rule touches the trigger's colour. `AGENTS.md` bar-controls paragraph updated.
|
||||
- [x] Owner follow-up 22 (2026-10-20): **bar resume icon at 24×24** — `ResumeNavButton` now renders `<ResumeIcon size={24} />` instead of the component's 20px default. The glyph is built on the 24 grid (follow-up 19), so at 24px it renders 1:1: strokes land at exactly 2px like every other bar icon and the 6-unit letters become 6px — the size the follow-up 17 notes had already named as the alternative when 20px was the constraint. The 44px target is untouched: `.nav-control`'s 8px padding + 1px border leave a 26px content box, 2px wider than the icon, and the icon now matches the 24px home glyph beside it. Proof: the shipped path strings rasterized at 24px on `#151914` and `#f6f5f2` — dash open at both gaps, both letters clear; `pnpm lint` + `tsc -b` clean.
|
||||
- [x] Owner follow-up 23 (2026-10-20): **tighter brand-group spacing — the left icons carry no borders** — `.nav-brand`'s 12px gap was sized for bordered boxes, but the group's three controls (hamburger, home, resume) are borderless, so the spacing that reads is glyph-to-glyph: 10px of target padding + 12px gap + 10px = 32px between the 24px glyphs. The gap drops to 4px at every width: 24px between glyphs, hover fills stay 4px apart, and two 2px-offset focus rings (2+2px) meet without overlapping. The `@media (max-width: 420px)` rule now only drops the bordered action controls 16px→8px; the brand group needs no narrow-width override because 4px is already below 8px. Width budgets improve at every breakpoint: at 390px, 260px controls + 8px brand gaps + 16px action gaps = 284px inside 358px; at 320px, 284px inside 296px — 12px of slack where the old layout had 4px. All 44px targets unchanged.
|
||||
- [ ] Owner visual check of `dist/resume.pdf` / `dist/resume-vi.pdf` in a real browser/PDF viewer
|
||||
- [x] Owner follow-up 24 (2026-10-27): **EN resume renamed `resume.pdf` → `resume-en.pdf`; the dialog shows bare filenames** — the EN output now follows the `resume-<lang>.pdf` pattern the VI file already used. `resumeFileNameFor(lang)` in `src/data/resume.ts` is the single source of both names; `resumeUrlFor` is `/` + filename, so the leading slash is a URL concern, not a filename. `scripts/generate-resume.ts` writes `dist/resume-${lang}.pdf` for every language (the `lang === 'en' ? ''` suffix special case is gone); the `resume-pdf-en` artifact path is renamed in both deploy workflows, and `rsync --delete` drops the stale `/resume.pdf` from the server on the first deploy after the change. `ResumeDialog`'s option line renders `resumeFileNameFor` — `resume-en.pdf` / `resume-vi.pdf` — under each language label, while the `href` keeps the absolute path. Proof: `tsc -b` + `pnpm lint` clean; `pnpm build:resume-all` writes `dist/resume-en.pdf` + `dist/resume-vi.pdf`
|
||||
- [ ] Owner visual check of `dist/resume-en.pdf` / `dist/resume-vi.pdf` in a real browser/PDF viewer
|
||||
Reference in new issue
Block a user