@dbosoft/react-product-downloads-page

0.4.4 • Public • Published

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',
})

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

1

Version

0.4.4

License

MPL-2.0

Unpacked Size

48.9 kB

Total Files

13

Last publish

Collaborators

  • dbosoft-package-maintainers
  • fwagner_dbosoft