Download ({fetchExtension(release.binary.package.name)})
diff --git a/src/components/PageHeader/index.tsx b/src/components/PageHeader/index.tsx
index 703a0833..3ed7a2fb 100644
--- a/src/components/PageHeader/index.tsx
+++ b/src/components/PageHeader/index.tsx
@@ -4,7 +4,7 @@ import { RedIcon } from "../Common/Icon"
interface Props {
title: string
subtitle: string
- description?: string
+ description?: string | React.ReactNode
className?: string
}
diff --git a/src/components/Temurin/Features/Features.scss b/src/components/Temurin/Features/Features.scss
index 25eeb2b5..0668e2ee 100644
--- a/src/components/Temurin/Features/Features.scss
+++ b/src/components/Temurin/Features/Features.scss
@@ -1,4 +1,4 @@
-@import "../../../styles/variables.scss";
+@use "../../../styles/variables.scss" as *;
.temurin-features {
position: relative;
diff --git a/src/components/Testimonials/Testimonials.scss b/src/components/Testimonials/Testimonials.scss
index 10a3f393..c5007178 100644
--- a/src/components/Testimonials/Testimonials.scss
+++ b/src/components/Testimonials/Testimonials.scss
@@ -1,4 +1,4 @@
-@import "../../styles/variables.scss";
+@use "../../styles/variables.scss" as *;
.arrow-button {
border-radius: 50%;
diff --git a/src/components/UiVirtualScroll/UiVirtualScroll.scss b/src/components/UiVirtualScroll/UiVirtualScroll.scss
index 39f8c72f..5d8c422c 100644
--- a/src/components/UiVirtualScroll/UiVirtualScroll.scss
+++ b/src/components/UiVirtualScroll/UiVirtualScroll.scss
@@ -1,4 +1,4 @@
-@import "../../styles/variables.scss";
+@use "../../styles/variables.scss" as *;
.scroll-container {
position: relative;
diff --git a/src/components/WorkingGroup/Support/__tests__/Support.test.tsx b/src/components/WorkingGroup/Support/__tests__/Support.test.tsx
new file mode 100644
index 00000000..f501824c
--- /dev/null
+++ b/src/components/WorkingGroup/Support/__tests__/Support.test.tsx
@@ -0,0 +1,12 @@
+import React from "react"
+import { render } from "@testing-library/react"
+import { describe, expect, it } from "vitest"
+import Support from "../index"
+
+describe("Working Group Support component", () => {
+ it("should render correctly", () => {
+ const { container } = render()
+
+ expect(container).toMatchSnapshot()
+ })
+})
diff --git a/src/components/WorkingGroup/Support/__tests__/__snapshots__/Support.test.tsx.snap b/src/components/WorkingGroup/Support/__tests__/__snapshots__/Support.test.tsx.snap
new file mode 100644
index 00000000..f744fda2
--- /dev/null
+++ b/src/components/WorkingGroup/Support/__tests__/__snapshots__/Support.test.tsx.snap
@@ -0,0 +1,67 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[`Working Group Support component > should render correctly 1`] = `
+
+
+
+
+
+
+ Support the Elcipse Adoptium Working Group
+
+
+ Lorem ipsum dolor sit amet consectetur. Ante cursus adipiscing feugiat aliquam. Adipiscing nulla arcu turpis tortor leo integer justo. Ut turpis adipiscing aliquam phasellus aliquam. Lectus etiam dictum nunc magna gravida bibendum nibh aliquam. Eget arcu neque cursus mattis sollicitudin malesuada urna ridiculus metus. Pharetra volutpat neque fames gravida tellus.
+
+
+
+
+ Nibh arcu consequat aliquet in eget non. Turpis id posuere quam sit magnis. Aliquam imperdiet odio odio vulputate. Vel molestie porttitor tellus accumsan. Dui ipsum fringilla sit sit elementum.
+
- If the download doesn't start in a few seconds, please
+ , a member of the Eclipse Adoptium Working Group. If the download doesn't start in a few seconds, please
-
- click here
-
- to start the download.
-
-
- Donate to the Eclipse Adoptium Working Group
-
-
- You can help power the Adoptium Community with a donation
-
+ Feugiat ullamcorper justo dolor arcu ut porttitor ultrices rutrum. Eget molestie sit tellus viverra. Bibendum at ut eu feugiat tellus diam turpis. Massa posuere ornare dignissim orci consequat.
+
- If the download doesn't start in a few seconds, please
+
+ You are downloading an Eclipse Temurin build, the open-source community build from the Eclipse Adoptium Working Group. If the download doesn't start in a few seconds, please
-
- click here
-
- to start the download.
-
-
- Eclipse Temurin binaries are 100% free and open source and used by millions of developers every day. Here are three easy ways you can contribute toward the future development of Eclipse Adoptium projects and technologies.
-
-
- Donate to the Eclipse Adoptium Working Group
-
-
- You can help power the Adoptium Community with a donation
-
+ Feugiat ullamcorper justo dolor arcu ut porttitor ultrices rutrum. Eget molestie sit tellus viverra. Bibendum at ut eu feugiat tellus diam turpis. Massa posuere ornare dignissim orci consequat.
+
diff --git a/src/pages/download.tsx b/src/pages/download.tsx
index 35d2d5d8..7d1209af 100644
--- a/src/pages/download.tsx
+++ b/src/pages/download.tsx
@@ -1,13 +1,20 @@
import React, { useEffect } from "react"
-import { Link, graphql, navigate } from "gatsby"
-import { BiDonateHeart } from "react-icons/bi"
-import { SiGithubsponsors } from "react-icons/si"
+
+// Extend the Window interface to include gtag
+declare global {
+ interface Window {
+ gtag?: (...args: any[]) => void;
+ }
+}
+
+import { graphql } from "gatsby"
import vendors from "../json/marketplace.json"
import Layout from "../components/Layout"
+import PageHeader from "../components/PageHeader"
+import ImageText from "../components/ImageText"
import Seo from "../components/Seo"
-import { BsShieldCheck } from "react-icons/bs"
-import { Trans } from "gatsby-plugin-react-i18next"
-import ChecksumModal from "../components/ChecksumModal"
+import { capitalize } from "../util/capitalize";
+import Support from "../components/WorkingGroup/Support";
const DownloadPage = ({ location }) => {
let link, checksum, os, arch, type, version, vendor, postDownload
@@ -41,9 +48,9 @@ const DownloadPage = ({ location }) => {
const shouldRedirect = !link
useEffect(() => {
- if (shouldRedirect) {
- navigate("/temurin/releases")
- }
+ // if (shouldRedirect) {
+ // navigate("/temurin/releases")
+ // }
}, [])
if (shouldRedirect) {
@@ -52,125 +59,44 @@ const DownloadPage = ({ location }) => {
return (
-
-
-
-
Thank you for your download!
+
+
{link &&
(vendor === "Adoptium" ? (
-
+ <>
You are downloading an Eclipse Temurin build, the open-source
- community build from the Eclipse Adoptium Working Group.
-
+ community build from the Eclipse Adoptium Working Group. If the
+ download doesn't start in a few seconds, please{" "}
+
+ click here
+ {" "}
+ to start the download.
+ >
) : (
<>
-
- You are downloading a build from {vendor},
- a member of the Eclipse Adoptium Working Group.
-
- )}
+ You are downloading a build from {capitalize(vendor)},
+ a member of the Eclipse Adoptium Working Group. If the download
+ doesn't start in a few seconds, please{" "}
+
+ click here
+ {" "}
+ to start the download.
>
))}
-
- {checksum && (
- <>
-
- If the download doesn't start in a few seconds, please{" "}
- click here to start the download.
-
- >
- )}
-
- {vendor === "Adoptium" && (
-
- Eclipse Temurin binaries are 100% free and open source and used
- by millions of developers every day. Here are three easy ways
- you can contribute toward the future development of Eclipse
- Adoptium projects and technologies.
-
- )}
-
- Donate to the Eclipse Adoptium Working Group
-
-
You can help power the Adoptium Community with a donation
- Whether you choose to{" "}
-
- report bugs
-
- , request features, or{" "}
- become a committer,
- you can help improve the technology for yourself and the rest of
- the community.
-
-
Join the Working Group
-
- Join the Working group
-
-
- View our Members
-
-