Skip to content

Commit

Permalink
update Nomad v1.6.0 download box (#2091)
Browse files Browse the repository at this point in the history
update Nomad v1.6.0 download box

We previously used this file to style the Nomad beta/RC download box,
but, moving forward, we're not going to update this component anymore.
  • Loading branch information
jrasell committed Jul 19, 2023
1 parent 50e2694 commit 043f3a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
26 changes: 1 addition & 25 deletions src/pages/nomad/downloads/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,9 @@ import nomadData from 'data/nomad.json'
import { ProductData } from 'types/products'
import ProductDownloadsView from 'views/product-downloads-view'
import { generateGetStaticProps } from 'views/product-downloads-view/server'
import InlineAlert from 'components/inline-alert'
import ButtonLink from 'components/button-link'
import s from './style.module.css'

const NomadDownloadsPage = (props) => {
return (
<ProductDownloadsView
{...props}
merchandisingSlot={
<InlineAlert
title="New release candidate!"
description="A release candidate for Nomad v1.6.0 is available."
ctaSlot={
<ButtonLink
aria-label="Download release candidate for Nomad v.1.6.0"
className={s.downloadLink}
size="small"
color="tertiary"
text="Download"
icon={<IconDownload16 />}
href="https://releases.hashicorp.com/nomad/1.6.0-rc.1/"
/>
}
/>
}
/>
)
return <ProductDownloadsView {...props} />
}

const getStaticProps = generateGetStaticProps(nomadData as ProductData)
Expand Down
9 changes: 0 additions & 9 deletions src/pages/nomad/downloads/style.module.css

This file was deleted.

1 comment on commit 043f3a7

@vercel
Copy link

@vercel vercel bot commented on 043f3a7 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.