Vizzuality/landgriffon

View on GitHub
client/src/pages/_document.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import Document, { Html, Head, Main, NextScript } from 'next/document';

class MyDocument extends Document {
  render(): JSX.Element {
    return (
      <Html className="h-full bg-gray-100">
        <Head>
          <meta
            name="description"
            content="Manage food and agriculture supply chain deforestation, climate, water risk and sustainability"
          />
          <link rel="shortcut icon" href="/favicon.ico" />
          <link href="https://unpkg.com/maplibre-gl@3.6.2/dist/maplibre-gl.css" rel="stylesheet" />
          <link
            href="https://unpkg.com/@maplibre/maplibre-gl-compare@0.5.0/dist/maplibre-gl-compare.css"
            rel="stylesheet"
          />
          {/* Fonts */}
          <link rel="preconnect" href="https://fonts.googleapis.com" />
          <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
          <link
            href="https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600&display=swap"
            rel="stylesheet"
          />
        </Head>
        <body>
          <Main />
          <NextScript />
        </body>
      </Html>
    );
  }
}

export default MyDocument;