Skip to content

Commit aa9e711

Browse files
Add logics and icons for Bluesky and Mastodon social media.
1 parent 98aa37d commit aa9e711

File tree

8 files changed

+245
-158
lines changed

8 files changed

+245
-158
lines changed

docusaurus.config.ts

+16
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,22 @@ const config: Config = {
129129
target: "_blank",
130130
className: "x-icon",
131131
},
132+
133+
{
134+
to: "https://bsky.app/profile/quantstack.bsky.social",
135+
title: "Bluesky",
136+
position: "right",
137+
target: "_blank",
138+
className: "bluesky-icon",
139+
},
140+
141+
{
142+
to: "https://mastodon.social/@QuantStack",
143+
title: "Mastodon",
144+
position: "right",
145+
target: "_blank",
146+
className: "mastodon-icon",
147+
},
132148
],
133149
},
134150

src/components/about/SocialMediaContacts.tsx

+18-6
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,44 @@ import Link from "@docusaurus/Link";
33
import GHPicture from "@site/static/img/socialmedias/GH.svg";
44
import LinkedInPicture from "@site/static/img/socialmedias/LinkedIn.svg";
55
import XPicture from "@site/static/img/socialmedias/X.svg";
6+
import BlueskyPicture from "@site/static/img/socialmedias/Bluesky.svg";
7+
import MastodonPicture from "@site/static/img/socialmedias/Mastodon.svg";
68

79
export default function SocialMediaContacts({ person }) {
810
return (
911
<>
1012
<div className="flex-full-centered">
1113
<div>
12-
{person.onGithub === "true" ? (
13-
<Link href={person.githubLink}>{<GHPicture />}</Link>
14+
{person.GitHubLink ? (
15+
<Link href={person.GitHubLink}>{<GHPicture />}</Link>
1416
) : (
1517
null
1618
)}
1719
</div>
18-
{person.onLinkedIn === "true" ? (
20+
{person.LinkedInLink ? (
1921
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
2022
) : (
2123
null
2224
)}
23-
{person.onX === "true" ? (
25+
{person.XLink ? (
2426
<Link href={person.XLink}>{<XPicture />}</Link>
2527
) : (
2628
null
2729
)}
30+
{person.BlueskyLink ? (
31+
<Link href={person.BlueskyLink}>{<BlueskyPicture />}</Link>
32+
) : (
33+
null
34+
)}
35+
{person.MastodonLink ? (
36+
<Link href={person.MastodonLink}>{<MastodonPicture />}</Link>
37+
) : (
38+
null
39+
)}
2840
</div>
2941
<div className="flex-full-centered">
30-
<Link href={person.githubLink} className={styles.githubname}>
31-
{person.githubName}
42+
<Link href={person.GitHubLink} className={styles.GitHubName}>
43+
{person.GitHubName}
3244
</Link>
3345
</div>
3446
</>

0 commit comments

Comments
 (0)