diff --git a/data/cv-en.json b/data/cv-en.json index 15cff90..9d1c4b8 100644 --- a/data/cv-en.json +++ b/data/cv-en.json @@ -706,6 +706,7 @@ { "title": "Somos Una Ola - Beach Cleaning Initiative", "url": "https://somosunaola.org", + "projectLogo": "somosunaola.png", "location": "La Palma, Canary Islands", "startDate": "2023-07", "current": true, @@ -720,6 +721,7 @@ { "title": "Herrumbre Vivo Arte - Artist Portfolio Website", "url": "https://herrumbrevivoarte.com", + "projectLogo": "herrumbre-vivo.png", "location": "Fuencaliente, La Palma", "startDate": "2024", "current": true, diff --git a/data/cv-es.json b/data/cv-es.json index 97db8f3..8928ec2 100644 --- a/data/cv-es.json +++ b/data/cv-es.json @@ -738,6 +738,7 @@ { "title": "Somos Una Ola - Iniciativa de Limpieza de Playas", "url": "https://somosunaola.org", + "projectLogo": "somosunaola.png", "location": "La Palma, Islas Canarias", "startDate": "2023-07", "current": true, @@ -752,6 +753,7 @@ { "title": "Herrumbre Vivo Arte - Sitio Web Portfolio de Artista", "url": "https://herrumbrevivoarte.com", + "projectLogo": "herrumbre-vivo.png", "location": "Fuencaliente, La Palma", "startDate": "2024", "current": true, diff --git a/internal/models/cv.go b/internal/models/cv.go index c4d52dc..6a961b5 100644 --- a/internal/models/cv.go +++ b/internal/models/cv.go @@ -101,6 +101,7 @@ type Language struct { type Project struct { Title string `json:"title"` URL string `json:"url"` + ProjectLogo string `json:"projectLogo,omitempty"` // Optional logo filename Location string `json:"location"` StartDate string `json:"startDate"` Current bool `json:"current"` diff --git a/static/css/main.css b/static/css/main.css index 45a1bf4..034ca77 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -954,6 +954,16 @@ iconify-icon { justify-content: center; } +.project-icon img { + width: 80px; + height: 80px; + object-fit: contain; + border-radius: 4px; + border: 1px solid #ddd; + background: #f5f5f5; + padding: 4px; +} + .default-project-icon { width: 80px; height: 80px; diff --git a/static/images/companies/aena-long.png b/static/images/companies/aena-long.png new file mode 100644 index 0000000..7e5ee41 Binary files /dev/null and b/static/images/companies/aena-long.png differ diff --git a/static/images/companies/aena.png b/static/images/companies/aena.png index 7e5ee41..2eb4ef5 100644 Binary files a/static/images/companies/aena.png and b/static/images/companies/aena.png differ diff --git a/static/images/companies/pentamsi-long.png b/static/images/companies/pentamsi-long.png new file mode 100644 index 0000000..95b24eb Binary files /dev/null and b/static/images/companies/pentamsi-long.png differ diff --git a/static/images/companies/pentamsi.png b/static/images/companies/pentamsi.png index 95b24eb..205b669 100644 Binary files a/static/images/companies/pentamsi.png and b/static/images/companies/pentamsi.png differ diff --git a/templates/cv-content.html b/templates/cv-content.html index db07dac..8f31e1f 100644 --- a/templates/cv-content.html +++ b/templates/cv-content.html @@ -206,13 +206,19 @@

- {{if eq .Lang "es"}}Proyectos{{else}}Projects{{end}} + {{if eq .Lang "es"}}Proyectos Personales{{else}}Personal Projects{{end}}

{{range .CV.Projects}}
+ {{if .ProjectLogo}} +
+ {{.Title}} logo +
+ {{else}}
+ {{end}}