Skip to content

Commit 270a799

Browse files
BDFL669unknownthescientist13
authored
enhancement/issue 176 add bluesky icon to social media tray (#186)
Co-authored-by: unknown <[email protected]> Co-authored-by: Owen Buckley <[email protected]>
1 parent 6bd4a8b commit 270a799

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

src/assets/bluesky.svg

Lines changed: 4 additions & 0 deletions
Loading

src/components/footer/footer.module.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.footer {
22
background-color: var(--color-tertiary);
3-
padding: var(--size-fluid-1) var(--size-fluid-3);
3+
padding: var(--size-fluid-1);
44
display: flex;
55
flex-direction: row;
66
flex-wrap: wrap;
@@ -17,10 +17,7 @@
1717

1818
.logo svg {
1919
width: 150px;
20-
}
21-
22-
.logo svg g.letters {
23-
fill: var(--color-white);
20+
fill: var(--color-gray);
2421
}
2522

2623
.footer app-social-tray {

src/components/social-tray/social-tray.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styles from "./social-tray.module.css";
22
import discordIcon from "../../assets/discord.svg?type=raw";
33
import githubIcon from "../../assets/github.svg?type=raw";
44
import twitterIcon from "../../assets/twitter-logo.svg?type=raw";
5+
import blueskyIcon from "../../assets/bluesky.svg?type=raw";
56

67
export default class SocialTray extends HTMLElement {
78
connectedCallback() {
@@ -18,6 +19,12 @@ export default class SocialTray extends HTMLElement {
1819
${discordIcon}
1920
</a>
2021
</li>
22+
23+
<li class="${styles.socialIcon}">
24+
<a href="https://bsky.app/profile/projectevergreen.bsky.social" title="BlueSky">
25+
${blueskyIcon}
26+
</a>
27+
</li>
2128
2229
<li class="${styles.socialIcon}">
2330
<a href="https://twitter.com/PrjEvergreen" title="Twitter">

src/components/social-tray/social-tray.spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const ICONS = [
1010
link: "/discord/",
1111
title: "Discord",
1212
},
13+
{
14+
link: "https://bsky.app/profile/projectevergreen.bsky.social",
15+
title: "BlueSky",
16+
},
1317
{
1418
link: "https://twitter.com/PrjEvergreen",
1519
title: "Twitter",
@@ -37,8 +41,8 @@ describe("Components/Social Tray", () => {
3741
const links = tray.querySelectorAll("ul li a");
3842
const icons = tray.querySelectorAll("ul li a svg");
3943

40-
expect(links.length).to.equal(3);
41-
expect(icons.length).to.equal(3);
44+
expect(links.length).to.equal(4);
45+
expect(icons.length).to.equal(4);
4246

4347
Array.from(links).forEach((link) => {
4448
const iconItem = ICONS.find((icon) => icon.title === link.getAttribute("title"));

0 commit comments

Comments
 (0)