summaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/Layout.astro')
-rw-r--r--src/layouts/Layout.astro19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 5c9eaae..4ecbd8b 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,4 +1,8 @@
---
+import '../../src/styles/globals.css';
+import Header from "../components/Header.astro";
+import Footer from "../components/Footer.astro";
+
interface Props {
title: string;
}
@@ -10,13 +14,18 @@ const { title } = Astro.props;
<html lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="description" content="Astro description" />
+ <title>{title}</title>
<meta name="viewport" content="width=device-width" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
- <title>{title}</title>
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
- <body>
- <slot />
+ <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> \ No newline at end of file