Add new HashiStackMenu

This commit is contained in:
Jimmy Merritello 2020-10-07 09:57:47 -05:00
parent a478bf6f37
commit 7f0a043a63
No known key found for this signature in database
GPG Key ID: 130BCB2496D67349
4 changed files with 26 additions and 3 deletions

View File

@ -3,9 +3,10 @@ const path = require('path')
module.exports = withHashicorp({ module.exports = withHashicorp({
defaultLayout: true, defaultLayout: true,
transpileModules: ['is-absolute-url', '@hashicorp/react-mega-nav'], transpileModules: ['is-absolute-url', '@hashicorp/react-.*'],
mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') }, mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') },
})({ })({
svgo: { plugins: [{ removeViewBox: false }] },
experimental: { experimental: {
modern: true, modern: true,
rewrites: () => [ rewrites: () => [

View File

@ -1666,6 +1666,27 @@
"resolved": "https://registry.npmjs.org/@hashicorp/react-global-styles/-/react-global-styles-4.4.0.tgz", "resolved": "https://registry.npmjs.org/@hashicorp/react-global-styles/-/react-global-styles-4.4.0.tgz",
"integrity": "sha512-lv6XR2plm2m3+qO6VE+RYquTzOODIt3mQ/1fBT1bn7wsR0qxFiuryW4JfsF94oCGk++LkDkRt/8V742HiT+fHw==" "integrity": "sha512-lv6XR2plm2m3+qO6VE+RYquTzOODIt3mQ/1fBT1bn7wsR0qxFiuryW4JfsF94oCGk++LkDkRt/8V742HiT+fHw=="
}, },
"@hashicorp/react-hashi-stack-menu": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@hashicorp/react-hashi-stack-menu/-/react-hashi-stack-menu-1.0.1.tgz",
"integrity": "sha512-sb5MjIDSUVp4d1gbyaEN8CgLrM7i3FWsl9uXv3QZbhV8MOnBY50OhZ7RLpO6VNWKfzcHSBPf4BA2rQ2FRfcS2A==",
"requires": {
"@hashicorp/react-inline-svg": "^1.0.2",
"slugify": "1.3.4"
},
"dependencies": {
"@hashicorp/react-inline-svg": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@hashicorp/react-inline-svg/-/react-inline-svg-1.0.2.tgz",
"integrity": "sha512-AAFnBslSTgnEr++dTbMn3sybAqvn7myIj88ijGigF6u11eSRiV64zqEcyYLQKWTV6dF4AvYoxiYC6GSOgiM0Yw=="
},
"slugify": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/slugify/-/slugify-1.3.4.tgz",
"integrity": "sha512-KP0ZYk5hJNBS8/eIjGkFDCzGQIoZ1mnfQRYS5WM3273z+fxGWXeN0fkwf2ebEweydv9tioZIHGZKoF21U07/nw=="
}
}
},
"@hashicorp/react-head": { "@hashicorp/react-head": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/@hashicorp/react-head/-/react-head-1.1.1.tgz", "resolved": "https://registry.npmjs.org/@hashicorp/react-head/-/react-head-1.1.1.tgz",

View File

@ -10,6 +10,7 @@
"@hashicorp/react-docs-page": "4.0.0", "@hashicorp/react-docs-page": "4.0.0",
"@hashicorp/react-docs-sidenav": "3.2.5", "@hashicorp/react-docs-sidenav": "3.2.5",
"@hashicorp/react-global-styles": "4.4.0", "@hashicorp/react-global-styles": "4.4.0",
"@hashicorp/react-hashi-stack-menu": "^1.0.1",
"@hashicorp/react-head": "1.1.1", "@hashicorp/react-head": "1.1.1",
"@hashicorp/react-mega-nav": "4.0.1-2", "@hashicorp/react-mega-nav": "4.0.1-2",
"@hashicorp/react-product-downloader": "4.0.2", "@hashicorp/react-product-downloader": "4.0.2",

View File

@ -2,7 +2,7 @@ import './style.css'
import '@hashicorp/nextjs-scripts/lib/nprogress/style.css' import '@hashicorp/nextjs-scripts/lib/nprogress/style.css'
import ProductSubnav from 'components/subnav' import ProductSubnav from 'components/subnav'
import MegaNav from '@hashicorp/react-mega-nav' import HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
import Footer from 'components/footer' import Footer from 'components/footer'
import Error from './_error' import Error from './_error'
import Head from 'next/head' import Head from 'next/head'
@ -44,7 +44,7 @@ export default function App({ Component, pageProps }) {
{ href: '/fonts/dejavu/mono.woff2', as: 'font' }, { href: '/fonts/dejavu/mono.woff2', as: 'font' },
]} ]}
/> />
<MegaNav product="Packer" /> <HashiStackMenu />
<ProductSubnav /> <ProductSubnav />
<div className="content"> <div className="content">
<Component {...pageProps} /> <Component {...pageProps} />