diff --git a/card.html b/card.html index 3579f45..c0ff20a 100644 --- a/card.html +++ b/card.html @@ -282,7 +282,8 @@

Phone

icon.classList.add("icon"); if (contact.icon) { // Fetch the SVG icon and insert it inline - const svgContent = await fetchSVG(contact.icon); + const svgURL = "cardAssets/icons/" + contact.contactType + ".svg"; + const svgContent = await fetchSVG(svgURL); icon.innerHTML = svgContent; // Insert the SVG content icon.src = contact.icon; icon.alt = `${contact.contactType} icon`; diff --git a/cardAssets/contacts.json b/cardAssets/contacts.json index 3f789c5..9c40ef4 100644 --- a/cardAssets/contacts.json +++ b/cardAssets/contacts.json @@ -57,7 +57,7 @@ "shape": "square" }, { - "contactType": "Substacked", + "contactType": "Substack", "display": true, "value": "@Username", "link": "https://Username.substack.com", diff --git a/cardAssets/icons/mail.svg b/cardAssets/icons/Email.svg similarity index 100% rename from cardAssets/icons/mail.svg rename to cardAssets/icons/Email.svg diff --git a/cardAssets/icons/Substack.svg b/cardAssets/icons/Substack.svg new file mode 100644 index 0000000..70e957b --- /dev/null +++ b/cardAssets/icons/Substack.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cardAssets/icons/X.svg b/cardAssets/icons/X.svg new file mode 100644 index 0000000..5b3f5f5 --- /dev/null +++ b/cardAssets/icons/X.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file