2021-04-14 14:51:29 -04:00
|
|
|
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'
|
2020-03-18 18:46:47 -04:00
|
|
|
|
2021-04-14 14:51:29 -04:00
|
|
|
export default function DownloadsPage(staticProps) {
|
2020-03-18 18:46:47 -04:00
|
|
|
return (
|
2021-04-14 14:51:29 -04:00
|
|
|
<ProductDownloadsPage
|
|
|
|
getStartedDescription="Follow step-by-step tutorials on the essentials of Nomad."
|
|
|
|
getStartedLinks={[
|
|
|
|
{
|
|
|
|
label: 'Getting Started',
|
|
|
|
href:
|
|
|
|
'https://learn.hashicorp.com/collections/packer/getting-started',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Build an Image with Packer',
|
|
|
|
href:
|
|
|
|
'https://learn.hashicorp.com/tutorials/packer/getting-started-build-image',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Provisioning',
|
|
|
|
href:
|
|
|
|
'https://learn.hashicorp.com/tutorials/packer/getting-started-provision',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'View all Packer tutorials',
|
|
|
|
href: 'https://learn.hashicorp.com/packer',
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
logo={
|
|
|
|
<img
|
|
|
|
className={s.logo}
|
|
|
|
alt="Packer"
|
|
|
|
src={require('./img/packer-logo.svg')}
|
|
|
|
/>
|
|
|
|
}
|
|
|
|
tutorialLink={{
|
|
|
|
href: 'https://learn.hashicorp.com/packer',
|
|
|
|
label: 'View Tutorials at HashiCorp Learn',
|
|
|
|
}}
|
|
|
|
{...staticProps}
|
|
|
|
/>
|
2020-03-18 18:46:47 -04:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export async function getStaticProps() {
|
2021-04-14 14:51:29 -04:00
|
|
|
return generateStaticProps({
|
|
|
|
product: productSlug,
|
|
|
|
latestVersion: VERSION,
|
|
|
|
})
|
2020-03-18 18:46:47 -04:00
|
|
|
}
|