Skip to content

Commit

Permalink
fix: update twitter to X
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiKryshnev committed Dec 26, 2024
1 parent b3c01ff commit 2c753ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down Expand Up @@ -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',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function HomepageFeatures(): JSX.Element {
<div style={{ display: 'flex', gap: '20px' }}>
<Link
className='tutorial-button'
to={"https://twitter.com/FhenixIO"}>
to={"https://x.com/FhenixIO"}>
<div style={{ display: 'flex', justifyContent: 'center', alignItems: "center", gap: '10px' }}>
X / Twitter <img src="img/x.svg" style={{ width: '15px'}}/>
</div>
Expand Down
8 changes: 2 additions & 6 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2c753ae

Please sign in to comment.