- What you'll find:
-
- What you will find: Community Calls: General, Security, AQAvit, Website, other technical team, Release dates, and other community online meetings.
-
diff --git a/src/app/[locale]/events/page.tsx b/src/app/[locale]/events/page.tsx
index 638f7e48..b21bacea 100644
--- a/src/app/[locale]/events/page.tsx
+++ b/src/app/[locale]/events/page.tsx
@@ -1,32 +1,33 @@
-import { Metadata } from "next"
-import React from "react"
-import PageHeader from "@/components/Common/PageHeader"
-import Timeline from "@/components/Events/Timeline"
-import Calendar from "@/components/Events/Calendar"
+// Some portions generated by Co-Pilot
+import { Metadata } from "next";
+import React from "react";
+import { useTranslations } from "next-intl";
+import SectionHeading from "@/components/Common/SectionHeading";
+import PageHeader from "@/components/Common/PageHeader";
+import Timeline from "@/components/Events/Timeline";
+import Calendar from "@/components/Events/Calendar";
export const metadata: Metadata = {
- title: "Events",
- description: "Learn about upcoming events and how to participate in the Eclipse Adoptium community.",
-}
+ title: "Events",
+ description:
+ "Learn about upcoming events and how to participate in the Eclipse Adoptium community.",
+};
export default function EventsPage() {
- return (
-
-
-
-
-
- Upcoming Events
-
-
-
-
-
-
- )
-}
\ No newline at end of file
+ const t = useTranslations("ModernPages.events");
+ return (
+
+ Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime binaries that are enterprise-ready and Java SE TCK-tested for general use in the Java ecosystem.
+
+
+
+
-
-
+
+
+
+
+ Get in touch
+
+
+ Tell us about your organisation and how you would like to get involved with Eclipse Adoptium.
+
- Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime binaries that are enterprise-ready and Java SE TCK-tested for general use in the Java ecosystem.
-
-
-
-
-
-
+
+ Contribute to Adoptium
+
+
+
+
+
+
+
+
+
`;
diff --git a/src/app/[locale]/join/__tests__/page.test.tsx b/src/app/[locale]/join/__tests__/page.test.tsx
index 0aac01b4..6ef82059 100644
--- a/src/app/[locale]/join/__tests__/page.test.tsx
+++ b/src/app/[locale]/join/__tests__/page.test.tsx
@@ -1,18 +1,106 @@
-import React from "react"
-import { render } from "@testing-library/react"
-import { describe, expect, it } from "vitest"
-import { axe } from "vitest-axe"
-import Join from "../page"
+// Some portions generated by Co-Pilot
+import React from "react";
+import { fireEvent, render, screen } from "@testing-library/react";
+import { describe, expect, it, vi } from "vitest";
+import { axe } from "vitest-axe";
+import Join from "../page";
+import englishMessages from "../../../../../locales/en.json";
+import chineseMessages from "../../../../../locales/zh-CN.json";
+
+const translationState = vi.hoisted(() => ({ locale: "en" }));
+
+vi.mock("next-intl", async (importOriginal) => {
+ const original = await importOriginal();
+ return {
+ ...original,
+ useTranslations: (
+ namespace: "JoinPage" | "NavBar" | "BusinessBenefits.header",
+ ) =>
+ original.createTranslator({
+ locale: translationState.locale,
+ messages:
+ translationState.locale === "zh-CN"
+ ? chineseMessages
+ : englishMessages,
+ namespace,
+ }),
+ };
+});
describe("Join page", () => {
it("renders correctly", () => {
- const { container } = render()
- expect(container.firstChild).toMatchSnapshot()
- })
+ const { container } = render();
+ expect(container.firstChild).toMatchSnapshot();
+ });
it("has no accessibility violations", async () => {
- const { container } = render()
- const results = await axe(container)
- expect(results).toHaveNoViolations()
- })
-})
+ const { container } = render();
+ const results = await axe(container);
+ expect(results).toHaveNoViolations();
+ });
+
+ it("uses a single primary heading and preserves the hosted form mount", () => {
+ const { container } = render();
+ expect(screen.getAllByRole("heading", { level: 1 })).toHaveLength(1);
+ expect(container.querySelector("#hubspotForm")).toBeInTheDocument();
+ expect(container.querySelector(".joinForm")).toBeInTheDocument();
+ expect(
+ screen.getByRole("heading", { level: 2, name: "Get in touch" }),
+ ).toBeVisible();
+ expect(
+ screen.getByRole("link", { name: "Become a Member" }),
+ ).toHaveAttribute("href", "/members");
+ expect(
+ screen.getByRole("link", { name: "Become a Corporate Sustainer" }),
+ ).toHaveAttribute("href", "/sustainers");
+ expect(
+ screen.getByRole("link", { name: "Contribute to Adoptium" }),
+ ).toHaveAttribute("href", "/contributing");
+ });
+
+ it("renders a translated Chinese header, form introduction and related links", () => {
+ translationState.locale = "zh-CN";
+ try {
+ render();
+ expect(
+ screen.getByRole("heading", {
+ level: 1,
+ name: chineseMessages.JoinPage.title,
+ }),
+ ).toBeVisible();
+ expect(
+ screen.getByText(chineseMessages.JoinPage["form-description"]),
+ ).toBeVisible();
+ expect(
+ screen.getByRole("link", {
+ name: chineseMessages.NavBar["Become a Member"],
+ }),
+ ).toHaveAttribute("href", "/members");
+ } finally {
+ translationState.locale = "en";
+ }
+ });
+
+ it("retains the existing HubSpot portal and form IDs", () => {
+ const previous = window.hbspt;
+ const create = vi.fn();
+ window.hbspt = { forms: { create } };
+ try {
+ render();
+ const script = document.querySelector(
+ 'script[src="https://js.hsforms.net/forms/v2.js"]',
+ );
+ expect(script).toBeInTheDocument();
+ fireEvent.load(script!);
+ expect(create).toHaveBeenCalledWith(
+ expect.objectContaining({
+ portalId: "5413615",
+ formId: "78aa6887-715f-420c-97be-b97860899cec",
+ target: "#hubspotForm",
+ }),
+ );
+ } finally {
+ window.hbspt = previous;
+ }
+ });
+});
diff --git a/src/app/[locale]/join/page.tsx b/src/app/[locale]/join/page.tsx
index 8a0d8136..7f588f17 100644
--- a/src/app/[locale]/join/page.tsx
+++ b/src/app/[locale]/join/page.tsx
@@ -1,26 +1,87 @@
-import { Metadata } from 'next'
-import PageHeader from "@/components/Common/PageHeader"
-import HubspotForm from "@/components/HubspotForm"
+// Some portions generated by Co-Pilot
+import type { Metadata } from "next";
+import { useTranslations } from "next-intl";
+import { FiArrowRight, FiMessageSquare } from "react-icons/fi";
+import { Link } from "@/i18n/navigation";
+import PageHeader from "@/components/Common/PageHeader";
+import HubspotForm from "@/components/HubspotForm";
export const metadata: Metadata = {
- title: 'Join',
- description: 'Join the Eclipse Adoptium Working Group to contribute to the development and maintenance of high-performance, cross-platform, open-source Java runtime binaries.',
-}
+ title: "Join",
+ description:
+ "Join the Eclipse Adoptium Working Group to contribute to the development and maintenance of high-performance, cross-platform, open-source Java runtime binaries.",
+};
+
+const waysToJoin = [
+ { label: "Become a Member", href: "/members" },
+ { label: "Become a Corporate Sustainer", href: "/sustainers" },
+ { label: "Contribute to Adoptium", href: "/contributing" },
+];
export default function JoinWGPage() {
- return (
-
`;
diff --git a/src/app/[locale]/slack/page.tsx b/src/app/[locale]/slack/page.tsx
index f91c68aa..c2d02e6f 100644
--- a/src/app/[locale]/slack/page.tsx
+++ b/src/app/[locale]/slack/page.tsx
@@ -1,33 +1,63 @@
-import { Metadata } from "next"
-import React from "react"
-import PageHeader from "@/components/Common/PageHeader"
+// Some portions generated by Co-Pilot
+import { Metadata } from "next";
+import React from "react";
+import { useTranslations } from "next-intl";
+import { FiArrowUpRight, FiMessageSquare } from "react-icons/fi";
+import PageHeader from "@/components/Common/PageHeader";
+import ContactUs from "@/components/ContactUs";
export const metadata: Metadata = {
- title: "Slack",
- description: "Join our Slack community to connect with other Eclipse Adoptium users and contributors.",
-}
+ title: "Slack",
+ description:
+ "Join our Slack community to connect with other Eclipse Adoptium users and contributors.",
+};
export default function SlackPage() {
- return (
-
-
-
-
- Join our Slack community to connect with other Eclipse Adoptium users and contributors.
- Share your experiences, ask questions, and collaborate on projects.
-
- Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime binaries that are enterprise-ready and Java SE TCK-tested for general use in the Java ecosystem.
+ Text
-
-
+
-
-
- This section lists the operating systems that are supported with the latest release of Eclipse Temurin.
-
-
-
+
-
+
-
- Supported
-
-
-
+
-
- Docker Available
-
-
-
+
-
+
-
- Not Supported
-
-
-
+ Text
+
+
-
- Text
-
-
- JDK
- 8
-
-
- JDK
- 11
-
-
- JDK
- 17
-
-
-
-
-
- Text
-
-
-
-
-
-
-
+
+
-
+
-
-
-
- Connect with the community
-
-
- Join our Slack channel to discuss work and reach out to project maintainers.
-
+
- Contributions from users like you help fund critical operations of the Adoptium working group. All money contributed through the Eclipse Foundation ensures the survivability, continuity, and responsiveness of Adoptium projects.
-
- Want to discuss how Temurin can positively impact your company?
-
-
- Whether you are looking for opportunities for cost-savings, or a selection of choices for commercial support, or if you want to bolster security around your software supply chain, we would love to discuss how using Temurin brings a variety of benefits to your enterprise.
-
diff --git a/src/app/[locale]/temurin/page.tsx b/src/app/[locale]/temurin/page.tsx
index 73011f3d..87c4090c 100644
--- a/src/app/[locale]/temurin/page.tsx
+++ b/src/app/[locale]/temurin/page.tsx
@@ -1,12 +1,13 @@
// Some portions generated by Co-Pilot
import React from "react";
import { Metadata } from "next";
+import { getTranslations } from "next-intl/server";
+import { FiArrowRight } from "react-icons/fi";
import { fetchAvailableReleases } from "@/utils/fetchAvailableReleases";
import HeroSection from "@/components/HeroSection";
import PowerOfTemurin from "@/components/PowerOfTemurin";
import InstallationGuideCard from "@/components/Download/GuideCard";
-import ImageText from "@/components/ImageText";
-import ContactUs from "@/components/ContactUs";
+import { Link } from "@/i18n/navigation";
export const metadata: Metadata = {
title: "Eclipse Temurin",
@@ -15,6 +16,7 @@ export const metadata: Metadata = {
};
export default async function TemurinPage() {
+ const t = await getTranslations("ModernPages.temurin");
const availableReleases = await fetchAvailableReleases();
const latestLTS = availableReleases.most_recent_lts ?? 25;
return (
@@ -22,17 +24,33 @@ export default async function TemurinPage() {
-
-
+
+
+
+
+ {t("contact-title")}
+
+
+ {t("contact-description")}
+
+
+
+
+ {t("contact")}
+
+
+
+ {t("community")}
+
+
+
+
);
}
diff --git a/src/app/[locale]/temurin/release-notes/ReleaseNotesPageClient.tsx b/src/app/[locale]/temurin/release-notes/ReleaseNotesPageClient.tsx
index 0d150f05..2be89bf1 100644
--- a/src/app/[locale]/temurin/release-notes/ReleaseNotesPageClient.tsx
+++ b/src/app/[locale]/temurin/release-notes/ReleaseNotesPageClient.tsx
@@ -1,41 +1,58 @@
-"use client"
+// Some portions generated by Co-Pilot
+"use client";
-import React from "react"
-import { useSearchParams } from "next/navigation"
-import ReleaseNotesRender from "@/components/Content/ReleaseNotes"
-import ReleaseNotesVersionSelector from "@/components/Content/ReleaseNotesVersionSelector"
+import React from "react";
+import { useSearchParams } from "next/navigation";
+import { useTranslations } from "next-intl";
+import { Link } from "@/i18n/navigation";
+import { FiArrowLeft } from "react-icons/fi";
+import ReleaseNotesRender from "@/components/Content/ReleaseNotes";
+import ReleaseNotesVersionSelector from "@/components/Content/ReleaseNotesVersionSelector";
interface AvailableReleases {
- available_lts_releases: number[]
- available_releases: number[]
- most_recent_feature_release: number
- most_recent_feature_version: number
- most_recent_lts: number
- tip_version: number
+ available_lts_releases: number[];
+ available_releases: number[];
+ most_recent_feature_release: number;
+ most_recent_feature_version: number;
+ most_recent_lts: number;
+ tip_version: number;
}
interface ReleaseNotesPageClientProps {
- availableReleases: AvailableReleases
+ availableReleases: AvailableReleases;
}
const ReleaseNotesPageClient: React.FC = ({
- availableReleases
+ availableReleases,
}) => {
- const searchParams = useSearchParams()
- const version = searchParams.get("version")
+ const searchParams = useSearchParams();
+ const t = useTranslations("ModernPages.release-notes");
+ const version = searchParams.get("version");
- // If no version is specified, show the version selector
- if (!version) {
- return (
-
- )
- }
+ // If no version is specified, show the version selector
+ if (!version) {
+ return (
+
+ );
+ }
- // If a version is specified, show the release notes
- return
-}
+ // If a version is specified, show the release notes
+ return (
+ <>
+
+
+ {t("back")}
+
+
+
+ >
+ );
+};
-export default ReleaseNotesPageClient
+export default ReleaseNotesPageClient;
diff --git a/src/app/[locale]/temurin/release-notes/__tests__/__snapshots__/page.test.tsx.snap b/src/app/[locale]/temurin/release-notes/__tests__/__snapshots__/page.test.tsx.snap
index c0dceb59..65926ad0 100644
--- a/src/app/[locale]/temurin/release-notes/__tests__/__snapshots__/page.test.tsx.snap
+++ b/src/app/[locale]/temurin/release-notes/__tests__/__snapshots__/page.test.tsx.snap
@@ -5,80 +5,33 @@ exports[`TemurinPage > renders the release notes page with header and content 1`
-
-
-
-
-
-
-
-
-
-
-
-
- Temurin
-
-
-
- Release Notes
-
+ Eclipse Temurin
+
+ Release Notes
+
- Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime binaries that are enterprise-ready and Java SE TCK-tested for general use in the Java ecosystem.
+ description
Discover how industry leaders leverage Temurin to enhance performance and drive innovation in their development processes.
-
+
+
+
+
+
+
+
+
+ 01
+
+
+
+ Performance & Reliability
+
+
+ Run your enterprise applications with confidence using Eclipse Temurin, a secure, high-performance Java runtime rigorously tested for stability and optimized for seamless operation across diverse environments.
+
+
+
+
+
+
+
+
+
+
+
+ 02
+
+
+
+ Cost-Effective Innovation
+
+
+ Adopt high-quality open source Java with no licensing fees. Reduce costs while benefiting from a robust ecosystem that ensures long-term sustainability and enterprise-ready runtime performance.
+
+
+
+
+
+
+
+
+
+
+
+ 03
+
+
+
+ Empowering Developers
+
+
+ Boost developer productivity with Eclipse Temurin's consistent, cross-platform builds. Focus on innovation while relying on a dependable, high-quality runtime trusted by millions worldwide.
+