---
import Analytics from '@vercel/analytics/astro'
import SpeedInsights from "@vercel/speed-insights/astro"
import { ClientRouter } from 'astro:transitions';
import Header from '../components/Header/Header';
import Footer from '../components/Footer/Footer.astro';
import '../styles/index.scss';
interface Props {
  title: string;
  description?: string;
}

const {
  title,
  description = 'Institute of Electronics Engineers of the Philippines - University of the Philippines Diliman Student Chapter',
} = Astro.props;
---

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="description" content={description} />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="generator" content={Astro.generator} />
    <title>{title}</title>
    <meta name="description" content={description} />
    <meta itemprop="name" content={title} />
    <meta itemprop="description" content={description} />
    <meta property="og:site_name" content="UP IECEP" />
    <meta property="og:title" content={title} />
    <meta property="og:description" content={description} />
    <meta property="og:type" content="website" />
    <meta property="og:url" content="https://www.upiecep.org" />
    <meta property="og:image" content="https://www.upiecep.org/img/meta.jpg" />
    <meta name="theme-color" content="#ffffff" />
    <meta name="author" content="UP IECEP" />
    <meta
      name="keywords"
      content="upiecep, up iecep, electronics engineers, organization, up, university of the philippines, org, ece, electronics engineering"
    />
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
    <link
      href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap"
      rel="preload"
      as="style"
      crossorigin="anonymous"
    />
    <link
      href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap"
      rel="stylesheet"
      crossorigin="anonymous"
    />
    <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
    <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="sitemap" href="/sitemap-index.xml" />
    <ClientRouter />
  </head>
  <body>
    <Header client:load />
    <main>
      <slot />
    </main>
    <Footer />

    <Analytics />
    <SpeedInsights/>
  </body>
</html>
