---
import "$lib/styles/app.css";
import Navigation from "./Navigation.svelte";
import Footer from "./Footer.svelte";

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

const {
  title = "SQLSaber - Open-source agentic SQL assistant",
  description = "Stop fighting your database. SQLSaber lets you talk to your database like a human with natural language queries.",
} = Astro.props;
---

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content={description} />
    <meta name="generator" content={Astro.generator} />
    <title>{title}</title>

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website" />
    <meta property="og:title" content={title} />
    <meta property="og:description" content={description} />

    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image" />
    <meta property="twitter:title" content={title} />
    <meta property="twitter:description" content={description} />
  </head>
  <body class="min-h-screen bg-white text-gray-900 antialiased">
    <Navigation client:load />
    <main>
      <slot />
    </main>
    <Footer />
  </body>
</html>
