Skip to content

Commit 8a56cae

Browse files
authored
update social icons (#55)
1 parent b64fd16 commit 8a56cae

File tree

13 files changed

+57
-21
lines changed

13 files changed

+57
-21
lines changed

messages/en.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@
4141
"socials.instagram.cta": "Instagram",
4242
"socials.instagram.href": "https://www.instagram.com/seattlecommnet/",
4343

44-
"socials.twitter.cta": "Twitter",
45-
"socials.twitter.href": "https://twitter.com/SeattleCommNet",
44+
"socials.x.cta": "X",
45+
"socials.x.href": "https://x.com/SeattleCommNet",
4646

4747
"socials.facebook.cta": "Facebook",
4848
"socials.facebook.href": "https://www.facebook.com/SeattleCommNet",
4949

50+
"socials.bluesky.cta": "Bluesky",
51+
"socials.bluesky.href": "https://bsky.app/profile/seattlecommunitynetwork.org",
52+
53+
5054
"cookieBanner.message": "We use cookies to improve your experience.<br /> By clicking \"Accept\", you consent to the use of analytics cookies.",
5155
"cookieBanner.accept": "Accept",
5256
"cookieBanner.deny": "Deny",

src/lib/components/Socials.svelte

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<script lang="ts">
22
import { m } from "$lib/paraglide/messages.js";
33
4-
// type can be "light" or "dark"
5-
6-
let { type = "light" as "light" | "dark", size = undefined } = $props();
4+
let { size = undefined } = $props();
75
86
let cssClass = $state("socials");
97
@@ -15,34 +13,30 @@
1513
{
1614
href: m["socials.instagram.href"](),
1715
cta: m["socials.instagram.cta"](),
18-
src: {
19-
light: "/layout/socials/instagram-icon.png",
20-
dark: "/layout/socials/instagram-icon-dark.png",
21-
},
16+
src: "/layout/socials/instagram.svg"
2217
},
2318
{
24-
href: m["socials.twitter.href"](),
25-
cta: m["socials.twitter.cta"](),
26-
src: {
27-
light: "/layout/socials/twitter-icon.png",
28-
dark: "/layout/socials/twitter-icon-dark.png",
29-
},
19+
href: m["socials.x.href"](),
20+
cta: m["socials.x.cta"](),
21+
src: "/layout/socials/x.svg"
3022
},
3123
{
3224
href: m["socials.facebook.href"](),
3325
cta: m["socials.facebook.cta"](),
34-
src: {
35-
light: "/layout/socials/facebook-icon.png",
36-
dark: "/layout/socials/facebook-icon-dark.png",
37-
},
26+
src: "/layout/socials/facebook.svg"
3827
},
28+
{
29+
href: m["socials.bluesky.href"](),
30+
cta: m["socials.bluesky.cta"](),
31+
src: "/layout/socials/bluesky.svg"
32+
}
3933
];
4034
</script>
4135

4236
<div class={cssClass}>
4337
{#each socials as { href, cta, src }}
4438
<a {href} data-test={`social-${cta.toLowerCase()}`}>
45-
<img src={src[type]} alt={cta} />
39+
<img src={src} alt={cta} />
4640
</a>
4741
{/each}
4842
</div>

src/routes/about-us/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<h2>{m["pages.about.sm.header"]()}</h2>
9090

9191
<div class="center">
92-
<Socials type="dark" size="medium" />
92+
<Socials size="medium" />
9393

9494
<Button href={m["pages.about.sm.donate.href"]()} arrow={true} dataTest="about-us-donate-cta">
9595
{m["pages.about.sm.donate.cta"]()}

static/layout/socials/bluesky.svg

Lines changed: 8 additions & 0 deletions
Loading
-2.78 KB
Binary file not shown.
-1.27 KB
Binary file not shown.

static/layout/socials/facebook.svg

Lines changed: 12 additions & 0 deletions
Loading
-4.88 KB
Binary file not shown.
-2.08 KB
Binary file not shown.

static/layout/socials/instagram.svg

Lines changed: 10 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)