log101-dot-dev/src/layouts/Layout.astro

33 lines
804 B
Plaintext

---
interface Props {
title: string;
}
const { title } = Astro.props;
import "../styles/main.css";
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="generator" content={Astro.generator} />
<meta name="htmx-config" content='{"code": 204, "swap": false}' />
<title>{title}</title>
</head>
<body class="flex justify-center font-sans">
<div
class="md:max-w-[750px] w-full flex flex-col gap-8 md:gap-6 my-6 md:mx-0 mx-4 overflow-hidden">
<slot />
</div>
</body>
<script>
import htmx from "htmx.org";
window.htmx = htmx;
</script>
</html>