feat(resume): add version stamping and bilingual EN/VN PDF support

- Add version stamp footer 'Last updated: YYYY-MM-DD' to PDF
- Implement bilingual support (English + Vietnamese) for resume PDF
  - Add Language type and *En optional fields to types
  - Add Vietnamese translations to profile, experience, projects data
  - resolveField utility for language-aware field resolution
  - Language-specific section labels (Experience/Kinh nghiệm, etc.)
  - --lang CLI arg: 'en' (default) or 'vi'
  - Output: resume.pdf (EN), resume-vi.pdf (VI)
- Update CI workflow to generate and deploy both PDF versions
- Add build:resume-all npm script
- Update UI components (Hero, DownloadResume) for language selection
- Add spec-v2-resume-future.md for deferred enhancements
- Refactor spec-v2-resume-playwright.md (condense implementation notes)
This commit is contained in:
dong.nguyen committed 2026-10-12 14:50:17 +07:00
1 parent 26af25a39d
commit 0297c18bad
15 files changed
+395 -301

No files matched your search

+8 -4
View File
@@ -1,6 +1,6 @@
import { motion, useScroll, useTransform } from "motion/react"
import { InView } from "@/components/ui/InView"
import { resumeAvailable } from "@/data/resume"
import { resumeAvailable, resumeLanguages, resumeUrlFor } from "@/data/resume"
import { Button } from "@/components/ui/Button"
import { SocialLinks } from "@/components/ui/SocialLinks"
import { profile } from "@/data/profile"
@@ -94,9 +94,13 @@ export function Hero() {
View Projects
</Button>
{resumeAvailable && (
<Button href="/resume.pdf" variant="secondary" target="_blank">
Download Resume
</Button>
<>
{resumeLanguages.map(lang => (
<Button key={lang} href={resumeUrlFor(lang)} variant="secondary" target="_blank">
Download Resume ({lang === 'en' ? 'EN' : 'VI'})
</Button>
))}
</>
)}
<Button href="/contact" variant="secondary">
Contact Me