From 042e8b9f315a54d3f5df532a487a25b7b3144b6d Mon Sep 17 00:00:00 2001 From: GovanifY Date: Mon, 24 Jun 2024 21:19:53 +0200 Subject: [PATCH] socials: add mastodon (#328) (and keep the nazi hellhole for now apparently) --- docusaurus.config.js | 16 ++++++++++++++-- src/css/custom.css | 16 ++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index ef80bc8e..14073d3b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -197,7 +197,15 @@ const config = { target: "_blank", }, { - href: "https://twitter.com/PCSX2", + href: "https://mastodon.social/@PCSX2", + position: "right", + rel: "me", + className: "header-mastodon-link", + "aria-label": "Mastodon", + target: "_blank", + }, + { + href: "https://x.com/PCSX2", position: "right", className: "header-twitter-link", "aria-label": "Twitter", @@ -274,9 +282,13 @@ const config = { label: "Forums", href: "https://forums.pcsx2.net/", }, + { + label: "Mastodon", + href: "https://mastodon.social/@PCSX2", + }, { label: "Twitter", - href: "https://twitter.com/PCSX2", + href: "https://x.com/PCSX2", }, { label: "YouTube", diff --git a/src/css/custom.css b/src/css/custom.css index 694c990f..52a68138 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -173,6 +173,22 @@ aside > div > nav.menu { brightness(103%) contrast(104%); } +.header-mastodon-link::before { + content: ""; + width: 24px; + height: 24px; + display: flex; + background-size: 100% !important; + background: url('data:image/svg+xml,') + no-repeat; + filter: var(--navbar-svg-icons-filter); +} + +.header-mastodon-link:hover { + filter: invert(42%) sepia(24%) saturate(3714%) hue-rotate(175deg) + brightness(103%) contrast(104%); +} + .header-twitter-link::before { content: ""; width: 24px;