From 96bf02e6e2afc6f0371b0b9582fb9764f3a5dc06 Mon Sep 17 00:00:00 2001 From: George Adams Date: Wed, 5 Feb 2025 02:40:20 +0000 Subject: [PATCH] fixup join page form (#756) * fixup join page form * add tests --- .../__snapshots__/CommonCard.test.tsx.snap | 12 +- src/components/Common/CommonCard/index.tsx | 9 +- src/components/Layout/layout.scss | 2 +- src/components/NavBar/index.tsx | 2 +- .../Support/WaysToSupport/index.tsx | 3 + .../__snapshots__/join.test.tsx.snap | 87 ++- .../__snapshots__/members.test.tsx.snap | 707 ++++++++++++++++++ .../__snapshots__/support-us.test.tsx.snap | 48 +- src/pages/join.tsx | 23 +- src/pages/{supporters.tsx => members.tsx} | 17 +- 10 files changed, 851 insertions(+), 59 deletions(-) create mode 100644 src/pages/__tests__/__snapshots__/members.test.tsx.snap rename src/pages/{supporters.tsx => members.tsx} (87%) diff --git a/src/components/Common/CommonCard/__tests__/__snapshots__/CommonCard.test.tsx.snap b/src/components/Common/CommonCard/__tests__/__snapshots__/CommonCard.test.tsx.snap index 82f07fac..e3314b05 100644 --- a/src/components/Common/CommonCard/__tests__/__snapshots__/CommonCard.test.tsx.snap +++ b/src/components/Common/CommonCard/__tests__/__snapshots__/CommonCard.test.tsx.snap @@ -19,11 +19,13 @@ exports[`CommonButton component > should render correctly 1`] = ` test

- + + + `; diff --git a/src/components/Common/CommonCard/index.tsx b/src/components/Common/CommonCard/index.tsx index 5f9893ba..aad518a6 100644 --- a/src/components/Common/CommonCard/index.tsx +++ b/src/components/Common/CommonCard/index.tsx @@ -1,4 +1,5 @@ import React from "react" +import { Link } from "gatsby-plugin-react-i18next" const CommonCard = ({ data }) => { return ( @@ -9,9 +10,11 @@ const CommonCard = ({ data }) => {

{data.description}

- + + + ) } diff --git a/src/components/Layout/layout.scss b/src/components/Layout/layout.scss index 55a539ad..5246ce0a 100644 --- a/src/components/Layout/layout.scss +++ b/src/components/Layout/layout.scss @@ -190,4 +190,4 @@ pre code::after, pre tt::before, pre tt::after { content: none; -} \ No newline at end of file +} diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 98f0e850..9affce05 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -27,7 +27,7 @@ const navigation: NavItem[] = [ children: [ { name: "What We do", href: "/what-we-do" }, { name: "Business Benefits", href: "/business-benefits" }, - { name: "Our Supporters", href: "/supporters" }, + { name: "Our Members", href: "/members" }, { name: "Our Adopters", href: "#" }, { name: "Support Us", href: "/support-us" }, ], diff --git a/src/components/Support/WaysToSupport/index.tsx b/src/components/Support/WaysToSupport/index.tsx index 1c060c79..86a4cf93 100644 --- a/src/components/Support/WaysToSupport/index.tsx +++ b/src/components/Support/WaysToSupport/index.tsx @@ -9,18 +9,21 @@ const WaysToSupport = () => { description: "Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime", button: "Learn More", + href: "#", }, { title: "Become a sponsor", description: "Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime", button: "Become a sponsor", + href: "#", }, { title: "Become a member", description: "Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime", button: "Learn More", + href: "/join", }, ] return ( diff --git a/src/pages/__tests__/__snapshots__/join.test.tsx.snap b/src/pages/__tests__/__snapshots__/join.test.tsx.snap index 44a335a9..320f725c 100644 --- a/src/pages/__tests__/__snapshots__/join.test.tsx.snap +++ b/src/pages/__tests__/__snapshots__/join.test.tsx.snap @@ -2,28 +2,89 @@ exports[`Join page > renders correctly 1`] = `
-
+
+
+
+
+
-

- Join the Eclipse Adoptium® Working Group -

-
-
+
+ + + + +
+ Join the Eclipse Adoptium® Working Group +
+
+
+ Joining the Working Group +
+
+
+
+
+
`; diff --git a/src/pages/__tests__/__snapshots__/members.test.tsx.snap b/src/pages/__tests__/__snapshots__/members.test.tsx.snap new file mode 100644 index 00000000..c3295124 --- /dev/null +++ b/src/pages/__tests__/__snapshots__/members.test.tsx.snap @@ -0,0 +1,707 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`Members page > renders correctly 1`] = ` +
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ Our Members +
+
+
+ Who we work with +
+
+
+ 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. +
+
+
+
+ +
+
+

+ Strategic Members +

+

+ Companies that use Eclipse Temurin in production. +

+
+ +
+
+
+

+ Enterprise Members +

+

+ Companies that use Eclipse Temurin in production. +

+
+
+
+
+
+
+
+
+

+ Participant Members +

+

+ Companies that use Eclipse Temurin in production. +

+
+
+
+
+
+
+
+

+ Are you interested in becoming a member? +

+ + + +
+
+
+

+ The Power of Eclipse Temurin™ +

+

+ 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 + scrol divider +
+

+ OpenJDK-Based +

+

+ 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 + scrol divider +
+

+ OpenJDK-Based +

+

+ 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 + scrol divider +
+

+ OpenJDK-Based +

+

+ 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. +

+
+
+
+`; diff --git a/src/pages/__tests__/__snapshots__/support-us.test.tsx.snap b/src/pages/__tests__/__snapshots__/support-us.test.tsx.snap index 82189d4b..d318817c 100644 --- a/src/pages/__tests__/__snapshots__/support-us.test.tsx.snap +++ b/src/pages/__tests__/__snapshots__/support-us.test.tsx.snap @@ -385,11 +385,15 @@ exports[`Support Us page > renders correctly 1`] = ` Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime

- + +
renders correctly 1`] = ` Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime

- + +
renders correctly 1`] = ` Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime

- + + @@ -499,11 +511,13 @@ exports[`Support Us page > renders correctly 1`] = ` Eclipse Temurin offers high-performance, cross-platform, open-source Java runtime

- + + + diff --git a/src/pages/join.tsx b/src/pages/join.tsx index 38d463df..42684035 100644 --- a/src/pages/join.tsx +++ b/src/pages/join.tsx @@ -4,21 +4,20 @@ import { graphql } from "gatsby" import Layout from "../components/Layout" import Seo from "../components/Seo" +import PageHeader from "../components/PageHeader" const JoinPage = () => ( -
-
-
-

- Join the Eclipse Adoptium® Working Group -

-
- -
+ +
+
) diff --git a/src/pages/supporters.tsx b/src/pages/members.tsx similarity index 87% rename from src/pages/supporters.tsx rename to src/pages/members.tsx index 3e66552d..f8f8be8e 100644 --- a/src/pages/supporters.tsx +++ b/src/pages/members.tsx @@ -1,5 +1,6 @@ import React from "react" import { graphql } from "gatsby" +import { Link } from "gatsby-plugin-react-i18next" import Layout from "../components/Layout" import Seo from "../components/Seo" @@ -9,12 +10,12 @@ import PowerOfTemurin from "../components/Temurin/PowerOfTemurin" import ContactUs from "../components/ContactUs" import Logos, { LogoType } from "../components/Logos" -const Supporters = () => { +const Members = () => { return (
@@ -70,18 +71,20 @@ const Supporters = () => {

Are you interested in becoming a member?

- + + +
) } -export default Supporters +export default Members -export const Head = () => +export const Head = () => export const query = graphql` query ($language: String!) {