Icon handling was gross before. Fixing
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m22s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m22s
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user