feat: add project logo support and rename to Personal Projects
Changes: - Created /static/images/projects/ folder for project logos - Added ProjectLogo field to Project struct - Updated cv-en.json and cv-es.json with projectLogo fields: - somosunaola.png for Somos Una Ola - herrumbre-vivo.png for Herrumbre Vivo Arte - Updated template to display project logos with fallback to web icon - Added CSS styling for project logo images (80×80px) - Renamed section from "Projects" to "Personal Projects" Logo images will display when PNG files are added to /static/images/projects/
This commit is contained in:
@@ -206,13 +206,19 @@
|
||||
<section id="projects" class="cv-section">
|
||||
<h3 class="section-title">
|
||||
<iconify-icon icon="mdi:web" width="24" height="24" class="section-icon"></iconify-icon>
|
||||
{{if eq .Lang "es"}}Proyectos{{else}}Projects{{end}}
|
||||
{{if eq .Lang "es"}}Proyectos Personales{{else}}Personal Projects{{end}}
|
||||
</h3>
|
||||
{{range .CV.Projects}}
|
||||
<div class="project-item">
|
||||
{{if .ProjectLogo}}
|
||||
<div class="project-icon">
|
||||
<img src="/static/images/projects/{{.ProjectLogo}}" alt="{{.Title}} logo" onerror="this.parentElement.innerHTML='<iconify-icon icon=\'mdi:web\' width=\'80\' height=\'80\' class=\'default-project-icon\'></iconify-icon>'">
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="project-icon">
|
||||
<iconify-icon icon="mdi:web" width="80" height="80" class="default-project-icon"></iconify-icon>
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="project-content">
|
||||
<div class="project-header">
|
||||
<h4 class="project-title">
|
||||
|
||||
Reference in New Issue
Block a user