Skip to content

Commit

Permalink
Merge pull request #185 from HaudinFlorence/add_social_media
Browse files Browse the repository at this point in the history
Add logics and icons for Bluesky and Mastodon social media.
  • Loading branch information
SylvainCorlay authored Nov 28, 2024
2 parents 98aa37d + 72b74c8 commit 21b7d2a
Show file tree
Hide file tree
Showing 10 changed files with 247 additions and 160 deletions.
16 changes: 16 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ const config: Config = {
target: "_blank",
className: "x-icon",
},

{
to: "https://bsky.app/profile/quantstack.bsky.social",
title: "Bluesky",
position: "right",
target: "_blank",
className: "bluesky-icon",
},

{
to: "https://mastodon.social/@QuantStack",
title: "Mastodon",
position: "right",
target: "_blank",
className: "mastodon-icon",
},
],
},

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
]
},
"engines": {
"node": ">=18.0"
"node": "18.x"
}
}
24 changes: 18 additions & 6 deletions src/components/about/SocialMediaContacts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,44 @@ import Link from "@docusaurus/Link";
import GHPicture from "@site/static/img/socialmedias/GH.svg";
import LinkedInPicture from "@site/static/img/socialmedias/LinkedIn.svg";
import XPicture from "@site/static/img/socialmedias/X.svg";
import BlueskyPicture from "@site/static/img/socialmedias/Bluesky.svg";
import MastodonPicture from "@site/static/img/socialmedias/Mastodon.svg";

export default function SocialMediaContacts({ person }) {
return (
<>
<div className="flex-full-centered">
<div>
{person.onGithub === "true" ? (
<Link href={person.githubLink}>{<GHPicture />}</Link>
{person.GitHubLink ? (
<Link href={person.GitHubLink}>{<GHPicture />}</Link>
) : (
null
)}
</div>
{person.onLinkedIn === "true" ? (
{person.LinkedInLink ? (
<Link href={person.LinkedInLink}>{<LinkedInPicture />}</Link>
) : (
null
)}
{person.onX === "true" ? (
{person.XLink ? (
<Link href={person.XLink}>{<XPicture />}</Link>
) : (
null
)}
{person.BlueskyLink ? (
<Link href={person.BlueskyLink}>{<BlueskyPicture />}</Link>
) : (
null
)}
{person.MastodonLink ? (
<Link href={person.MastodonLink}>{<MastodonPicture />}</Link>
) : (
null
)}
</div>
<div className="flex-full-centered">
<Link href={person.githubLink} className={styles.githubname}>
{person.githubName}
<Link href={person.GitHubLink} className={styles.GitHubName}>
{person.GitHubName}
</Link>
</div>
</>
Expand Down
Loading

0 comments on commit 21b7d2a

Please sign in to comment.