---
import "../styles/base.css";
import "../styles/fonts.css";
import DarkModeScript from "../components/DarkModeScript.astro";
import AgeRestrictedModal from "../components/AgeRestrictedModal.astro";

type Props = {
  pageTitle: string;
  lang?: string;
};

const { pageTitle, lang = "en" } = Astro.props;
---

<html lang={lang}>
  <head>
    <meta charset="UTF-8" />
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
    <link rel="manifest" href="/site.webmanifest" />
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#37b340" />
    <meta name="msapplication-TileColor" content="#37b340" />
    <meta name="theme-color" content="#7DD05A" data-react-helmet="true" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="generator" content={Astro.generator} />
    <title>{pageTitle} | Bad Manners</title>
    <link rel="me" href="https://badmanners.xyz" />
    <link rel="me" href="https://meow.social/@BadManners" />
    <link
      rel="alternate"
      type="application/rss+xml"
      title="Gallery | Bad Manners"
      href={new URL("/feed.xml", Astro.site)}
    />
    <slot name="head" />
  </head>
  <body>
    <slot />
    <DarkModeScript />
    <AgeRestrictedModal />
  </body>
</html>
