ccee88180b
* adds lang attribute * fixes: empty anchor tag * adds alt attributes * alt tag logo grid updates * fix footer contrast color * only render header if it exists * adds `main` element to page * testing pre-releases * fix: button aria-label updates * chore: update deps * fix: adds `main` element to all pages * chore: formatting * fix: adds alts to use-cases page * chore: update headline element * chore: adds alt text * fix: adds alt tags * style: fix height issue * fix: use h1 at top of page * fix: remove main to avoid duplicate tag * chore: fix deps * main is already defined in docs page component * Update website/components/footer/style.css Co-authored-by: Jimmy Merritello <7191639+jmfury@users.noreply.github.com> Co-authored-by: Jimmy Merritello <7191639+jmfury@users.noreply.github.com>
30 lines
768 B
JavaScript
30 lines
768 B
JavaScript
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
|
import HashiHead from '@hashicorp/react-head'
|
|
|
|
export default class MyDocument extends Document {
|
|
static async getInitialProps(ctx) {
|
|
const initialProps = await Document.getInitialProps(ctx)
|
|
return { ...initialProps }
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
<HashiHead />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
<script
|
|
noModule
|
|
dangerouslySetInnerHTML={{
|
|
__html: `window.MSInputMethodContext && document.documentMode && document.write('<script src="/ie-custom-properties.js"><\\x2fscript>');`,
|
|
}}
|
|
/>
|
|
</body>
|
|
</Html>
|
|
)
|
|
}
|
|
}
|