refactor: reorganize skills sidebar layout (7 left, 6 right)

- Update splitSkills logic to put 7 categories on left sidebar, 6 on right
- Reorder skills: Frontend Technologies now at position 5, Legacy Enterprise Technologies at position 6 (last on left)
- Apply changes to both English and Spanish CV data
- Clean up unused enhanced template and CSS files

Left sidebar (Page 1):
1. AI-Assisted Development
2. SAP Technologies
3. Programming Languages
4. Go Ecosystem
5. JavaScript Ecosystem
6. Frontend Technologies
7. Legacy Enterprise Technologies

Right sidebar (Page 2):
8. Backend Technologies
9. Databases
10. Infrastructure & Servers
11. DevOps & CI/CD
12. Team Management
13. Design Tools
This commit is contained in:
juanatsap
2025-11-08 14:33:55 +00:00
parent 435ab7ae70
commit 4761145ad8
5 changed files with 243 additions and 1256 deletions
+8 -6
View File
@@ -199,18 +199,20 @@ func (h *CVHandler) ExportPDF(w http.ResponseWriter, r *http.Request) {
}
// splitSkills splits skill categories between left (page 1) and right (page 2) sidebars
// The split is done at the midpoint to evenly distribute skills
// Left sidebar shows first 7 categories, right sidebar shows remaining categories
func splitSkills(skills []models.SkillCategory) (left, right []models.SkillCategory) {
if len(skills) == 0 {
return nil, nil
}
// Calculate midpoint
mid := len(skills) / 2
// Split at index 7 (first 7 items on left)
splitIndex := 7
if len(skills) < splitIndex {
return skills, nil
}
// Split at midpoint
left = skills[:mid]
right = skills[mid:]
left = skills[:splitIndex]
right = skills[splitIndex:]
return left, right
}