Icon handling was gross before. Fixing
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m22s

This commit is contained in:
2025-06-12 16:24:55 -06:00
parent df33b94e38
commit 9577cd8bc6

View File

@ -193,26 +193,9 @@ if (!data) {
<div class="flex flex-wrap gap-3 sm:gap-4">
{data.sections.profiles.items.map(
(profile) => {
let iconName = "mdi:web";
const networkLower =
profile.network.toLowerCase();
if (networkLower === "github") {
iconName = "simple-icons:github";
} else if (
networkLower === "linkedin"
) {
iconName =
"simple-icons:linkedin";
} else if (
networkLower === "twitter"
) {
iconName = "simple-icons:x";
} else if (
networkLower === "youtube"
) {
iconName =
"simple-icons:youtube";
}
// Use Simple Icons directly based on network name
// Convert network name to lowercase and use simple-icons format
const iconName = `simple-icons:${profile.network.toLowerCase()}`;
return (
<a