From 2c753ae5d7a0c00b9117776b01bf7d07b23a0e6d Mon Sep 17 00:00:00 2001 From: Nikolai Kryshnev Date: Thu, 26 Dec 2024 16:50:02 +0300 Subject: [PATCH] fix: update twitter to X --- docusaurus.config.ts | 6 +++--- src/components/HomepageFeatures/index.tsx | 2 +- src/css/custom.css | 8 ++------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index f2ad0943..ca06020e 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -128,7 +128,7 @@ const config: Config = { position: 'right', }, { - href: 'https://twitter.com/FhenixIO', + href: 'https://x.com/FhenixIO', className: 'header-twitter-link', position: 'right', }, @@ -169,8 +169,8 @@ const config: Config = { href: 'https://discord.gg/FuVgxrvJMY', }, { - label: 'Twitter', - href: 'https://twitter.com/FhenixIO', + label: 'X', + href: 'https://x.com/FhenixIO', }, ], }, diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 0e01b7c9..b77f4961 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -146,7 +146,7 @@ export default function HomepageFeatures(): JSX.Element {
+ to={"https://x.com/FhenixIO"}>
X / Twitter
diff --git a/src/css/custom.css b/src/css/custom.css index 3dd32888..316b79b5 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -455,16 +455,12 @@ html[data-theme='dark'] .header-discord-link:before { width: 28px; height: 28px; display: flex; - background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z'/%3E%3C/svg%3E") + background: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20512%20512%22%3E%3Cpath%20d=%22M389.2%2048h70.6L305.6%20224.2%20487%20464H345L233.7%20318.6%20106.5%20464H35.8L200.7%20275.5%2026.8%2048H172.4L272.9%20180.9%20389.2%2048zM364.4%20421.8h39.1L151.1%2088h-42L364.4%20421.8z%22/%3E%3C/svg%3E") no-repeat; } html[data-theme='dark'] .header-twitter-link:before { - width: 28px; - height: 28px; - display: flex; - background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z'/%3E%3C/svg%3E") - no-repeat; + filter: invert(100%); } /* github */