Skip to content

Commit d9f42ad

Browse files
committed
feat: add icon to bluesky connection
1 parent a5fe43b commit d9f42ad

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/components/elements/ConnectionElement.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ function ConnectionElement(Icon, Link, Username, Defined) {
1313
"
1414
>
1515
<p class="text-truncate my-1 text-body">
16-
<i class="bi bi-${Icon} pe-1"></i>
16+
${!Icon.startsWith("custom:") ? `
17+
<i class="bi bi-${Icon} pe-1"></i>
18+
` : `
19+
<span class="pe-1">
20+
${Icon == "custom:bluesky" ? `
21+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" width="16" class="mt-0">
22+
<path fill="currentColor" d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.14.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.79.624-6.478 0-.69-.139-1.861-.902-2.206-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"/>
23+
</svg>
24+
` : ``}
25+
</span>
26+
`}
1727
<span class="opacity-50">
1828
${Username}
1929
</span>

src/components/sections/RootSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function RootSection() {
1818
Boolean(window.Configuration.Connections.YouTube || false)
1919
)}
2020
${ConnectionElement(
21-
"dot",
21+
"custom:bluesky",
2222
`bsky.app/profile/${window.Configuration.Connections.Bluesky}`,
2323
window.Configuration.Connections.Bluesky,
2424
Boolean(window.Configuration.Connections.Bluesky || false)

0 commit comments

Comments
 (0)