From 76d9649ec2427b51d9651dc45f59e911e30fdf39 Mon Sep 17 00:00:00 2001 From: juanatsap Date: Mon, 4 May 2026 13:47:05 +0100 Subject: [PATCH] feat: custom gold stars badge matching other badges, live count via GitHub API --- static/css/03-components/_cv-section.css | 21 +++++++++++++++++---- templates/partials/sections/projects.html | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/static/css/03-components/_cv-section.css b/static/css/03-components/_cv-section.css index f1f69a9..d458d5a 100644 --- a/static/css/03-components/_cv-section.css +++ b/static/css/03-components/_cv-section.css @@ -197,14 +197,27 @@ .stars-badge { display: inline-flex; align-items: center; - margin-left: 0.3em; + gap: 0.3em; + background: #d4a017; + color: white; + font-weight: 700; + font-size: 0.7em; + padding: 0.2em 0.5em; + border-radius: 3px; + margin-left: 0.5em; vertical-align: middle; + letter-spacing: 0.5px; text-decoration: none; } -.stars-badge img { - height: 18px; - vertical-align: middle; +.stars-badge:hover { + background: #b8860b; + color: white; + text-decoration: none; +} + +.stars-badge iconify-icon { + font-size: 1.2em; } .maintained-badge { diff --git a/templates/partials/sections/projects.html b/templates/partials/sections/projects.html index ac75d64..11c2144 100644 --- a/templates/partials/sections/projects.html +++ b/templates/partials/sections/projects.html @@ -32,7 +32,7 @@ {{if .Current}}LIVE{{end}} {{if .GitRepoUrl}}GitHub{{end}} - {{if and .OpenSource .GitRepoUrl}}GitHub stars{{end}} + {{if and .OpenSource .GitRepoUrl}}stars {{end}} {{if .MaintainedBy}}{{$.UI.Sections.MaintainedBy}} {{.MaintainedBy}}{{end}}
{{if .StartDate}}{{.StartDate}}{{if .Current}}{{if .DynamicDate}} / {{.DynamicDate}}{{else}} / {{$.UI.Sections.Present}}{{end}}{{end}}{{end}} - ({{.Location}}) @@ -102,4 +102,21 @@ {{end}} + {{end}}