summaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
blob: 4ecbd8b9e0f266e96b46b4c8f1be9992fe2085ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
import '../../src/styles/globals.css';
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";

interface Props {
	title: string;
}

const { title } = Astro.props;
---

<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>{title}</title>
		<meta name="viewport" content="width=device-width" />
		<meta name="generator" content={Astro.generator} />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
	</head>
	<body class="antialiased text-white bg-blue-900">
		<div class="flex flex-col min-h-screen px-6 bg-grid-pattern sm:px-12">
			<div class="flex flex-col w-full max-w-5xl mx-auto grow">
				<Header />
				<div class="grow"><slot /></div>
				<Footer />
			</div>
		</div>
	</body>
</html>