Skip to content

Commit

Permalink
Merge pull request #111 from rocky-linux/develop
Browse files Browse the repository at this point in the history
Add Bluesky links and share buttons, 9.5 release announcment grammar
  • Loading branch information
brianclemens authored Nov 22, 2024
2 parents 785a603 + 6e16e1b commit 55af2e9
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
17 changes: 17 additions & 0 deletions app/[locale]/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ export default function Footer() {
{ name: tFooter("nav.TrademarksName"), href: "/legal/trademarks" },
],
social: [
{
name: tFooter("socialNav.bluesky"),
href: "https://bsky.app/profile/rockylinux.org",
icon: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => (
<svg
fill="currentColor"
viewBox="0 0 600 530"
className="h-5 w-5"
{...props}
>
<path
fill="currentColor"
d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z"
/>
</svg>
),
},
{
name: tFooter("socialNav.mastodon"),
href: "https://fosstodon.org/@rockylinux",
Expand Down
15 changes: 15 additions & 0 deletions components/shareButtons/ShareButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface ShareButtonsProps {
const ShareButtons = ({ url }: ShareButtonsProps) => {
const t = useTranslations("share");

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}`;
Expand All @@ -19,6 +20,20 @@ const ShareButtons = ({ url }: ShareButtonsProps) => {
<>
<h3 className="text-sm text-center mb-2">{t("shareName")}</h3>
<div className="flex space-x-6 justify-center items-center mb-12">
<Link
href={blueskyLink}
className="hover:text-primary"
target="_blank"
>
<span className="sr-only">{t("bluesky")}</span>
<svg
fill="currentColor"
viewBox="0 0 600 530"
className="h-5 w-5"
>
<path d="m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z" />
</svg>
</Link>
<MastodonDialog
invalidUrlMsg={t("mastodon.url-valid")}
urlMsg={t("mastodon.url")}
Expand Down
2 changes: 2 additions & 0 deletions messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"TrademarksName": "Trademarks"
},
"socialNav": {
"bluesky": "Bluesky",
"facebook": "Facebook",
"github": "GitHub",
"instagram": "Instagram",
Expand Down Expand Up @@ -109,6 +110,7 @@
},
"share": {
"shareName": "Share",
"bluesky": "Bluesky",
"mastodon": {
"name": "Mastodon",
"url-valid": "Please enter a valid Mastodon instance URL (without https://).",
Expand Down
2 changes: 2 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"TrademarksName": "Trademarks"
},
"socialNav": {
"bluesky": "Bluesky",
"facebook": "Facebook",
"github": "GitHub",
"instagram": "Instagram",
Expand Down Expand Up @@ -109,6 +110,7 @@
},
"share": {
"shareName": "Share",
"bluesky": "Bluesky",
"mastodon": {
"name": "Mastodon",
"url-valid": "Please enter a valid Mastodon instance URL (without https://).",
Expand Down
2 changes: 1 addition & 1 deletion news/rocky-linux-9-5-ga-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ We are pleased to announce the general availability of Rocky Linux 9.5. Updated

- **Podman** - Rocky Linux 9.5 ships with the latest and greatest [Podman version 5.0](https://blog.podman.io/2024/03/podman-5-0-has-been-released/). Podman 5.0 introduces exciting new features like fast Podman machine boot times, Podman Farm for multi-platform image building, greater compatibility for volumes in `podman kube play`, Quadlet enhancements, and a more performant default networking stack.
- **Cockpit** - Cockpit, the web console for easy remote server management, now provides file management capabilities via the Cockpit Files plugin. This feature requires installing the `cockpit-files` package.
- **Dynamic programming lanuages, web, and database servers**
- **Dynamic programming languages, web, and database servers**
- Apache HTTP Server 2.4.62
- Node.js 22
- **System toolchain**
Expand Down

0 comments on commit 55af2e9

Please sign in to comment.