mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10: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,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{LANG}}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Resume - Dong Nguyen</title>
|
||||
@@ -244,6 +244,17 @@
|
||||
|
||||
/* Page break helpers */
|
||||
.avoid-break { page-break-inside: avoid; }
|
||||
|
||||
/* Version stamp footer */
|
||||
.pdf-footer {
|
||||
page-break-inside: avoid;
|
||||
text-align: center;
|
||||
font-size: 8pt;
|
||||
color: #999;
|
||||
margin-top: 16px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -263,13 +274,13 @@
|
||||
|
||||
<!-- Experience -->
|
||||
<div class="section">
|
||||
<div class="section-title">Experience</div>
|
||||
<div class="section-title">{{EXPERIENCE_LABEL}}</div>
|
||||
{{EXPERIENCE}}
|
||||
</div>
|
||||
|
||||
<!-- Skills -->
|
||||
<div class="section">
|
||||
<div class="section-title">Skills</div>
|
||||
<div class="section-title">{{SKILLS_LABEL}}</div>
|
||||
<div class="skills-grid">
|
||||
{{SKILLS}}
|
||||
</div>
|
||||
@@ -277,8 +288,13 @@
|
||||
|
||||
<!-- Projects -->
|
||||
<div class="section">
|
||||
<div class="section-title">Projects</div>
|
||||
<div class="section-title">{{PROJECTS_LABEL}}</div>
|
||||
{{PROJECTS}}
|
||||
</div>
|
||||
|
||||
<!-- Version stamp footer -->
|
||||
<div class="pdf-footer">
|
||||
Last updated: {{UPDATED_DATE}}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user