mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
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:
1 parent
26af25a39d
commit
0297c18bad
15 files changed
+395
-301
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user