---

import icon from '../images/logo.png';
import {getImage} from "astro:assets";
import {astroI18n} from "astro-i18n";
const { title, description } = Astro.props.frontmatter || Astro.props;

const iconImage = await getImage({src: icon, height: 32, width: 32, format: 'png', quality: 100});
---

<html lang={astroI18n.locale} class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="description" content={description}/>
    <link rel="icon" type="imgage/png" href={iconImage.src} />
    <link rel="stylesheet" href="/fonts/barlow-condensed/barlow-condensed.css" />
    <title>{title}</title>
    <slot name="head" />

</head>
<body class="dark:bg-zinc-800">
    <slot />
</body>
</html>
