Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate X social links #112

Merged
merged 1 commit into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions app/[locale]/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,6 @@ export default function Footer() {
</svg>
),
},
{
name: tFooter("socialNav.x"),
href: "https://x.com/rocky_linux",
icon: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => (
<svg
fill="currentColor"
viewBox="0 0 24 24"
className="h-6 w-6"
{...props}
>
<path d="M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" />
</svg>
),
},
{
name: tFooter("socialNav.github"),
href: "https://github.com/rocky-linux",
Expand Down
16 changes: 0 additions & 16 deletions components/shareButtons/ShareButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const ShareButtons = ({ url }: ShareButtonsProps) => {

const blueskyLink = `https://bsky.app/intent/compose?text=${url}`;
const facebookLink = `https://www.facebook.com/sharer/sharer.php?u=${url}`;
const xLink = `https://twitter.com/intent/tweet?text=${url}`;
const linkedInLink = `https://www.linkedin.com/sharing/share-offsite/?url=${url}`;
const threadsLink = `https://threads.net/intent/post?text=${url}`;

Expand Down Expand Up @@ -100,21 +99,6 @@ const ShareButtons = ({ url }: ShareButtonsProps) => {
</g>
</svg>
</Link>
<Link
href={xLink}
className="hover:text-primary"
target="_blank"
>
<span className="sr-only">{t("x")}</span>
<svg
fill="currentColor"
viewBox="0 0 24 24"
className="h-6 w-6"
aria-hidden="true"
>
<path d="M13.6823 10.6218L20.2391 3H18.6854L12.9921 9.61788L8.44486 3H3.2002L10.0765 13.0074L3.2002 21H4.75404L10.7663 14.0113L15.5685 21H20.8131L13.6819 10.6218H13.6823ZM11.5541 13.0956L10.8574 12.0991L5.31391 4.16971H7.70053L12.1742 10.5689L12.8709 11.5655L18.6861 19.8835H16.2995L11.5541 13.096V13.0956Z" />
</svg>
</Link>
</div>
</>
);
Expand Down
2 changes: 0 additions & 2 deletions messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"linkedin": "LinkedIn",
"mastodon": "Mastodon",
"threads": "Threads",
"x": "X",
"youtube": "YouTube"
},
"disclaimer": "Rocky Linux® is the registered trademark of the Rocky Enterprise Software Foundation in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Red Hat Enterprise Linux, RHEL and CentOS are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the US and other countries. We are not affiliated with, endorsed by or sponsored by Red Hat, Inc."
Expand Down Expand Up @@ -118,7 +117,6 @@
},
"facebook": "Facebook",
"linkedin": "LinkedIn",
"x": "X",
"threads": "Threads"
},
"about": {
Expand Down
2 changes: 0 additions & 2 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"linkedin": "LinkedIn",
"mastodon": "Mastodon",
"threads": "Threads",
"x": "X",
"youtube": "YouTube"
},
"disclaimer": "Rocky Linux® is the registered trademark of the Rocky Enterprise Software Foundation in the U.S. and other countries. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. Red Hat Enterprise Linux, RHEL and CentOS are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the US and other countries. We are not affiliated with, endorsed by or sponsored by Red Hat, Inc."
Expand Down Expand Up @@ -118,7 +117,6 @@
},
"facebook": "Facebook",
"linkedin": "LinkedIn",
"x": "X",
"threads": "Threads"
},
"about": {
Expand Down
Loading