Skip to content

Commit

Permalink
Fix staled Twitter icon (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Galvão <[email protected]>
  • Loading branch information
tiagogalvao authored Jan 23, 2024
1 parent 1c18d54 commit 99ade66
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ const config: Config = {
},
{
type: "custom-social-icon-link-navbar-item",
href: "https://twitter.com/opentofuorg",
href: "https://x.com/opentofuorg",
position: "right",
name: "twitter",
label: "Follow us on Twitter",
name: "x",
label: "Follow us on X",
},
{
type: "custom-social-icon-link-navbar-item",
Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export default function Footer({ links }: FooterProps) {
hiddenLabel
/>
<SocialIconLink
name="twitter"
href="https://twitter.com/opentofuorg"
label="Follow us on Twitter"
name="x"
href="https://x.com/opentofuorg"
label="Follow us on X"
hiddenLabel
/>
<SocialIconLink
Expand Down
4 changes: 2 additions & 2 deletions src/components/HowToSupport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,11 @@ export default function HowToSupport() {
</Link>{" "}
&amp;{" "}
<Link
href="https://twitter.com/opentofuorg"
href="https://x.com/opentofuorg"
className="underline"
target="_blank"
>
following us on Twitter.
following us on X.
</Link>
</Step>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/SocialIconLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import clsx from "clsx";
const iconMap = {
youtube:
"M23.8 7.429s-.2-1.62-1-2.286c-.9-.953-1.9-.953-2.4-.953C17 4 12 4 12 4s-5 0-8.4.19c-.5.096-1.5.096-2.4.953-.7.667-1 2.286-1 2.286S0 9.239 0 11.143v1.714c0 1.81.2 3.714.2 3.714s.2 1.62 1 2.286c.9.953 2.1.857 2.6.953C5.7 20 12 20 12 20s5 0 8.4-.286c.5-.095 1.5-.095 2.4-.952.7-.667 1-2.286 1-2.286s.2-1.81.2-3.714v-1.714c0-1.81-.2-3.62-.2-3.62ZM9.5 14.952v-6.38L16 11.81l-6.5 3.142Z",
twitter:
"M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z",
x:
"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",
github:
"M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z",
slack:
Expand Down
6 changes: 3 additions & 3 deletions src/theme/BlogPostItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import useBaseUrl from "@docusaurus/useBaseUrl";

const platforms = [
{
name: "Twitter",
name: "X",
href: ({ title, url }) =>
`https://twitter.com/intent/tweet/?text=${title}&amp;url=${url}`,
`https://x.com/intent/tweet/?text=${title}&amp;url=${url}`,
iconPath:
"M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z",
"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",
},
{
name: "LinkedIn",
Expand Down
2 changes: 1 addition & 1 deletion supporters.json
Original file line number Diff line number Diff line change
Expand Up @@ -3337,7 +3337,7 @@
},
{
"name": "Prateek Jain",
"url": "https://twitter.com/PrateekJainDev",
"url": "https://x.com/PrateekJainDev",
"type": "Individual",
"pledge": "DevSecOps Lead; open-source community efforts"
},
Expand Down

0 comments on commit 99ade66

Please sign in to comment.