From 60e7a186e70492b8f686e900bf83eecbc371d43e Mon Sep 17 00:00:00 2001
From: Jeff Escalante
Date: Sat, 25 Dec 2021 14:42:12 -0500
Subject: [PATCH] add enterprise downloads page (#11750)
---
website/components/downloads-props/index.jsx | 38 ++++++++++++++++++++
website/pages/downloads/enterprise.jsx | 38 ++++++++++++++++++++
website/pages/downloads/index.jsx | 38 ++------------------
3 files changed, 78 insertions(+), 36 deletions(-)
create mode 100644 website/components/downloads-props/index.jsx
create mode 100644 website/pages/downloads/enterprise.jsx
diff --git a/website/components/downloads-props/index.jsx b/website/components/downloads-props/index.jsx
new file mode 100644
index 000000000..7a2d1a677
--- /dev/null
+++ b/website/components/downloads-props/index.jsx
@@ -0,0 +1,38 @@
+import s from '../../pages/downloads/style.module.css'
+
+export default function DownloadsProps(preMerchandisingSlot) {
+ return {
+ getStartedDescription:
+ 'Follow step-by-step tutorials on the essentials of Nomad.',
+ getStartedLinks: [
+ {
+ label: 'Getting Started',
+ href: 'https://learn.hashicorp.com/collections/nomad/get-started',
+ },
+ {
+ label: 'Deploy and Manage Nomad Jobs',
+ href: 'https://learn.hashicorp.com/collections/nomad/manage-jobs',
+ },
+ {
+ label: 'Explore the Nomad Web UI',
+ href: 'https://learn.hashicorp.com/collections/nomad/web-ui',
+ },
+ {
+ label: 'View all Nomad tutorials',
+ href: 'https://learn.hashicorp.com/nomad',
+ },
+ ],
+ logo: (
+
+ ),
+ tutorialLink: {
+ href: 'https://learn.hashicorp.com/nomad',
+ label: 'View Tutorials at HashiCorp Learn',
+ },
+ merchandisingSlot: preMerchandisingSlot && preMerchandisingSlot,
+ }
+}
diff --git a/website/pages/downloads/enterprise.jsx b/website/pages/downloads/enterprise.jsx
new file mode 100644
index 000000000..9c1ad826e
--- /dev/null
+++ b/website/pages/downloads/enterprise.jsx
@@ -0,0 +1,38 @@
+import VERSION from 'data/version'
+import { productSlug } from 'data/metadata'
+import ProductDownloadsPage from '@hashicorp/react-product-downloads-page'
+import { generateStaticProps } from '@hashicorp/react-product-downloads-page/server'
+import baseProps from 'components/downloads-props'
+import s from './style.module.css'
+
+export default function DownloadsPage(staticProps) {
+ return (
+ <>
+
+
+ The following shall apply unless your organization has a
+ separately signed Enterprise License Agreement or Evaluation
+ Agreement governing your use of the package: Enterprise packages
+ in this repository are subject to the license terms located in the
+ package. Please read the license terms prior to using the package.
+ Your installation and use of the package constitutes your
+ acceptance of these terms. If you do not accept the terms, do not
+ use the package.
+
+
+ )}
+ {...staticProps}
+ />
+ >
+ )
+}
+
+export async function getStaticProps() {
+ return generateStaticProps({
+ product: productSlug,
+ latestVersion: VERSION,
+ })
+}
diff --git a/website/pages/downloads/index.jsx b/website/pages/downloads/index.jsx
index ce8ce9fda..35d81825c 100644
--- a/website/pages/downloads/index.jsx
+++ b/website/pages/downloads/index.jsx
@@ -2,44 +2,10 @@ import VERSION from 'data/version'
import { productSlug } from 'data/metadata'
import ProductDownloadsPage from '@hashicorp/react-product-downloads-page'
import { generateStaticProps } from '@hashicorp/react-product-downloads-page/server'
-import s from './style.module.css'
+import baseProps from 'components/downloads-props'
export default function DownloadsPage(staticProps) {
- return (
-
- }
- tutorialLink={{
- href: 'https://learn.hashicorp.com/nomad',
- label: 'View Tutorials at HashiCorp Learn',
- }}
- {...staticProps}
- />
- )
+ return
}
export async function getStaticProps() {