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">
|
<div class="flex flex-wrap gap-3 sm:gap-4">
|
||||||
{data.sections.profiles.items.map(
|
{data.sections.profiles.items.map(
|
||||||
(profile) => {
|
(profile) => {
|
||||||
let iconName = "mdi:web";
|
// Use Simple Icons directly based on network name
|
||||||
const networkLower =
|
// Convert network name to lowercase and use simple-icons format
|
||||||
profile.network.toLowerCase();
|
const iconName = `simple-icons:${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";
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
|
Reference in New Issue
Block a user