fix: Override inline icon sizes to 1.2em across all sections

Problem: Inline icons embedded in responsibilities, courses, and
projects had explicit width='60' height='60' attributes that made
them too large (60px instead of ~16px).

Solution:
- Added CSS with !important to override inline width/height attributes
- Targeted inline icons in:
  * Course responsibilities and descriptions
  * Project descriptions and technologies
  * Experience responsibilities (within divs)
- Preserved large icons (80px) for main company/course/project logos

Changes:
- static/css/03-components/_courses.css: Override to 1.2em
- static/css/03-components/_projects.css: Override to 1.2em
- static/css/03-components/_cv-section.css: Override to 1.2em

Test Results:
 7 course inline icons: 16px × 16px
 Main company icons: 80px × 80px (preserved)
This commit is contained in:
juanatsap
2025-11-19 16:30:18 +00:00
parent 06ec9b9f20
commit 43414b79ac
19 changed files with 1574 additions and 65 deletions
+12
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"html/template"
"os"
"time"
)
// CV represents the complete curriculum vitae structure
@@ -229,9 +230,20 @@ func LoadCV(lang string) (*CV, error) {
return nil, fmt.Errorf("error parsing JSON: %w", err)
}
// Replace {{YEAR}} placeholder in reference URLs with current year
currentYear := fmt.Sprintf("%d", time.Now().Year())
for i := range cv.References {
cv.References[i].URL = replaceYearPlaceholder(cv.References[i].URL, currentYear)
}
return &cv, nil
}
// replaceYearPlaceholder replaces {{YEAR}} with the current year
func replaceYearPlaceholder(url string, year string) string {
return fmt.Sprintf(url, year)
}
// LoadUI loads UI translations from a JSON file for the specified language
func LoadUI(lang string) (*UI, error) {
if lang != "en" && lang != "es" {