e33ed2356e
* style: update gray brand colors * style: update brand colors * chore: upgrades base platform deps * style: updates learn callouts label color * style: icons to flat consul primary color * style: errand link styles * refactor(home): use react-learn-callout * chore; adds ts config, upgrades components * chore: upgrade deps chore: upgrade to latest component styles chore: upgrades nextjs-scripts * chore: fix-router * update deps, add new downloads page * chore: upgrade to stable deps chore: use npm 7 * style: home callouts body copy to gray-2 * chore: upgrade hashi-stack-menu * style: home feature icons update * chore: upgrade deps body copy colors * chore: upgrades alert banner * feat: updates favicon * style(downloads): adds pre-release and release candidate styles * fix(home): adds right padding to quote * content(home): swap assets * content(uses-cases): updates assets * chore: removes use cases icon override * content(use-cases): swap out svgs for pngs * content: copies asset * trying again with this asset * try putting asset in public * content(use-cases): updates mercedes case study aseset * chore: upgrades product download page prerelease * chore: updates product download page to stable * chore: updates favicon path Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com>
54 lines
1.9 KiB
JavaScript
54 lines
1.9 KiB
JavaScript
import './style.css'
|
|
import '@hashicorp/nextjs-scripts/lib/nprogress/style.css'
|
|
|
|
import Router from 'next/router'
|
|
import Head from 'next/head'
|
|
import NProgress from '@hashicorp/nextjs-scripts/lib/nprogress'
|
|
import { ErrorBoundary } from '@hashicorp/nextjs-scripts/lib/bugsnag'
|
|
import createConsentManager from '@hashicorp/nextjs-scripts/lib/consent-manager'
|
|
import useAnchorLinkAnalytics from '@hashicorp/nextjs-scripts/lib/anchor-link-analytics'
|
|
import HashiHead from '@hashicorp/react-head'
|
|
import HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
|
|
import AlertBanner from '@hashicorp/react-alert-banner'
|
|
import Footer from '../components/footer'
|
|
import ProductSubnav from '../components/subnav'
|
|
import alertBannerData, { ALERT_BANNER_ACTIVE } from '../data/alert-banner'
|
|
import Error from './_error'
|
|
|
|
NProgress({ Router })
|
|
const { ConsentManager, openConsentManager } = createConsentManager({
|
|
preset: 'oss',
|
|
})
|
|
|
|
export default function App({ Component, pageProps }) {
|
|
useAnchorLinkAnalytics()
|
|
return (
|
|
<ErrorBoundary FallbackComponent={Error}>
|
|
<HashiHead
|
|
is={Head}
|
|
title="Consul by HashiCorp"
|
|
siteName="Consul by HashiCorp"
|
|
description="Consul is a service networking solution to automate network configurations, discover services, and enable secure connectivity across any cloud or runtime."
|
|
image="https://www.consul.io/img/og-image.png"
|
|
icon={[{ href: '/favicon.ico' }]}
|
|
>
|
|
<meta
|
|
name="og:title"
|
|
property="og:title"
|
|
content="Consul by HashiCorp"
|
|
/>
|
|
</HashiHead>
|
|
{ALERT_BANNER_ACTIVE && (
|
|
<AlertBanner {...alertBannerData} product="consul" />
|
|
)}
|
|
<HashiStackMenu />
|
|
<ProductSubnav />
|
|
<div className="content">
|
|
<Component {...pageProps} />
|
|
</div>
|
|
<Footer openConsentManager={openConsentManager} />
|
|
<ConsentManager />
|
|
</ErrorBoundary>
|
|
)
|
|
}
|