diff --git a/src/components/Certifications.astro b/src/components/Certifications.astro index 4123601..d780f02 100755 --- a/src/components/Certifications.astro +++ b/src/components/Certifications.astro @@ -3,6 +3,8 @@ import certificationsData from '../data/certifications.json'; type CertType = 'certification' | 'professional-development' | 'in-progress'; +const certTypes = new Set(certificationsData.map((cert) => cert.type ?? 'certification')); + // Returns the CSS class for the status badge chip (green / amber / blue). function badgeClass(type: CertType) { if (type === 'professional-development') return 'badge-pro-dev'; @@ -31,15 +33,30 @@ function cardModClass(type: CertType) {
Training
{cert.description}
-