---
import "@/styles/global.css";
import Footer from "@/components/Footer.astro";
import Header from "@/components/Header.astro";
import Sidebar from "@/components/Sidebar.astro";

interface Props {
  title: string;
  description: string;
}

const { title, description } = Astro.props;
---

<!doctype html>
<html lang="en" class="[scrollbar-gutter:stable]">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="icon" href="/favicon.ico" sizes="any" />
    <link rel="icon" href="/favicon.svg" type="image/svg+xml" />
    <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
    <link rel="manifest" href="/site.webmanifest" />
    <link rel="me" href="https://mastodon.social/@fiatcode" />
    <meta name="fediverse:creator" content="@fiatcode@mastodon.social" />
    <title>{title}</title>
    <meta name="description" content={description} />
    <meta name="generator" content={Astro.generator} />
  </head>
  <body class="max-w-5xl mx-auto flex flex-col font-default">
    <Header />
    <main class="grid grid-cols-1 md:grid-cols-4 gap-0 items-start">
      <section class="md:col-span-3 p-4 bg-neutral-800">
        <slot />
      </section>
      <aside class="p-4">
        <Sidebar />
      </aside>
    </main>
    <Footer />
  </body>
</html>
