0.4.4 • Published 10 months ago

@dbosoft/react-product-downloads-page v0.4.4

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
10 months ago

Product Downloads Page

The <ProductDownloadsPage> is a page component that is intended to drop in and represent the /downloads route for HashiCorp product documentation websites

Installation

npm install @dbosoft/react-product-downloads-page

Usage

Below is a full example of how the component can be implemented, including all props. Check out props.js for more detail on specific props.

import ProductDownloadsPage from '@dbosoft/react-product-downloads-page'
import { generateStaticProps } from '@dbosoft/react-product-download-page/server'

export default function DownloadsPage(staticProps) {
  return (
    <ProductDownloadsPage
      logo={<img alt="Vault" src={require('./img/logo.svg')} />}
      merchandisingSlot={<p>...</p>}
      tutorialLink={{
        label: 'Example',
        href: '<url>',
      }}
      getStartedDescription="Follow step-by-step tutorials on the essentials of Vault."
      getStartedLinks={[
        {
          label: 'Example',
          href: '<url>',
        },
      ]}
      containers={[
        {
          label: 'Example',
          href: '<url>',
        },
      ]}
      tutorials={[
        {
          label: 'Example',
          href: '<url>',
        },
      ]}
      changelog="<url>"
      {...staticProps}
    />
  )
}

export const getStaticProps = generateStaticProps({
  product: 'vault',
  latestVersion: '1.0.0',
})
0.4.4

10 months ago

0.4.1

10 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.3.2

1 year ago

0.4.0

1 year ago

0.3.3

1 year ago

0.3.0

2 years ago

0.2.1

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.1.0

3 years ago