From df9b181a9069a31cf894bf44c0ef911fc6459956 Mon Sep 17 00:00:00 2001 From: mahdiarghyani Date: Wed, 3 Dec 2025 12:53:16 +0330 Subject: [PATCH] feat(resume): enhance print styling and refactor component structure - Add print media queries to main.css for proper PDF export formatting - Ensure white background and light color scheme when printing - Refactor ResumeAdditionalInfo component to display skills in categorized format - Remove languages and certifications from additional info section - Add ResumeLanguages component for dedicated language display - Optimize spacing with print-specific margin utilities across all resume sections - Improve text wrapping and hyphenation in ResumeExperience component - Enhance ResumeHeader layout with print-optimized image sizing - Update resume data structure to support new component organization - Add research documentation on mentioning AI skills in resume - Update PDF export endpoint to work with refactored component structure - Remove outdated chat history file --- app/assets/css/main.css | 22 + .../resume/ResumeAdditionalInfo.vue | 49 +- app/components/resume/ResumeEducation.vue | 2 +- app/components/resume/ResumeExperience.vue | 31 +- app/components/resume/ResumeHeader.vue | 58 +- app/components/resume/ResumeLanguages.vue | 38 + app/components/resume/ResumePreview.vue | 55 +- app/components/resume/ResumeSummary.vue | 6 +- app/data/resume.en.ts | 115 +- app/pages/resume.vue | 4 +- chathistory-resume-chatgpt.txt | 1042 ----------------- .../mension-ai-skills-in-resume-report.md | 293 +++++ server/api/resume/pdf.get.ts | 65 +- 13 files changed, 598 insertions(+), 1182 deletions(-) create mode 100644 app/components/resume/ResumeLanguages.vue delete mode 100644 chathistory-resume-chatgpt.txt create mode 100644 docs/research/mension-ai-skills-in-resume-report.md diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 67c6bb5..d147ba6 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -89,6 +89,16 @@ color-scheme: light; } + @media print { + html, + body, + #__nuxt, + #__layout { + background: white !important; + min-height: auto !important; + } + } + .dark html, .dark body, .dark #__nuxt, @@ -106,6 +116,18 @@ color-scheme: dark; } + @media print { + :root.dark #__nuxt, + :root.dark #__layout, + html.dark, + html.dark body, + html.dark #__nuxt, + html.dark #__layout { + background: white !important; + color-scheme: light !important; + } + } + div, span, input, diff --git a/app/components/resume/ResumeAdditionalInfo.vue b/app/components/resume/ResumeAdditionalInfo.vue index af84b56..3a4cfd6 100644 --- a/app/components/resume/ResumeAdditionalInfo.vue +++ b/app/components/resume/ResumeAdditionalInfo.vue @@ -1,54 +1,27 @@ diff --git a/app/components/resume/ResumeEducation.vue b/app/components/resume/ResumeEducation.vue index 0afd5a4..0b270b2 100644 --- a/app/components/resume/ResumeEducation.vue +++ b/app/components/resume/ResumeEducation.vue @@ -16,7 +16,7 @@ function formatDateRange(start: string, end?: string): string {