astro-payload-test/astro/src/layouts/BaseLayout.astro
tobias 7d2f0822fa
All checks were successful
continuous-integration/drone/push Build is passing
Create nice layout for post list
2024-05-19 17:08:00 +02:00

38 lines
918 B
Plaintext

---
export interface Props {
title: string;
}
const { title } = Astro.props;
import "@/global.css"
---
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>{title}</title>
<style>
@font-face {
font-family: "Plex";
src: url("/fonts/Plex-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Plex";
src: url("/fonts/Plex-Bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
font-display: swap;
}
</style>
</head>
<body class="autonomic min-h-screen flex flex-col mx-auto max-w-7xl px-4 text-primary bg-background">
<slot />
</body>
</html>