From 11c0f79b88c3fc886ad111f7688a47be827d375f Mon Sep 17 00:00:00 2001 From: Yehoshua Sandler Date: Fri, 9 May 2025 15:58:57 -0500 Subject: [PATCH] feat: add icon on skill badge --- src/components/project-card.tsx | 43 +++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/project-card.tsx b/src/components/project-card.tsx index 89e53f9..0198d6b 100644 --- a/src/components/project-card.tsx +++ b/src/components/project-card.tsx @@ -90,21 +90,34 @@ export function ProjectCard({ {tags?.badges && tags.badges.length > 0 && (
- {tags.badges.map((b, i) => ( - - {b.value} - - ))} + {tags.badges.map((b, i) => { + const icon = b.icon as Media | undefined + return ( + + {!!icon && icon.url && ( + {icon.alt + )} + + {b.value} + + ) + })}
)}