import NextDocument, { Html, Head, Main, NextScript } from "next/document";

export default class Document extends NextDocument {
  render() {
    return (
      <Html lang="en">
        <title>WhiteStar Dashboard</title>
        <Head>
          <meta charSet="utf-8" />
          <link rel="apple-touch-icon" sizes="180x180" href={`/img/favicon/apple-touch-icon.png`} />
          <link rel="icon" type="image/png" href={`/img/favicon/favicon-32x32.png`} sizes="32x32" />
          <link rel="icon" type="image/png" href={`/img/favicon/favicon-16x16.png`} sizes="16x16" />
          <link
            rel="icon"
            type="image/png"
            href={`/img/favicon/android-chrome-512x512.png`}
            sizes="512x512"
          />
          <link
            rel="icon"
            type="image/png"
            href={`/img/favicon/android-chrome-192x192.png`}
            sizes="192x192"
          />

          <link rel="preconnect" href="https://fonts.googleapis.com" />
          <link rel="preconnect" href="https://fonts.gstatic.com" />
          <link
            href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap"
            rel="stylesheet"
          />
        </Head>
        <body>
          {/* Required for Chakra color mode */}
          <Main />
          <NextScript />
        </body>
      </Html>
    );
  }
}
