aboutsummaryrefslogtreecommitdiff
path: root/web/src/layouts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-17 03:02:24 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-17 04:27:36 +0100
commita1b2a399efd9ff1c8b3b0dfd71b59c7de28728ea (patch)
tree5ab36193b22554346d26d5aca8198ca4402fd5b8 /web/src/layouts
parentd26852105463a51d5b71eb70fdaba787f0914030 (diff)
downloadFirmament-a1b2a399efd9ff1c8b3b0dfd71b59c7de28728ea.tar.gz
Firmament-a1b2a399efd9ff1c8b3b0dfd71b59c7de28728ea.tar.bz2
Firmament-a1b2a399efd9ff1c8b3b0dfd71b59c7de28728ea.zip
feat(web): Add hero image and navbar
Diffstat (limited to 'web/src/layouts')
-rw-r--r--web/src/layouts/Base.astro13
-rw-r--r--web/src/layouts/Head.astro12
2 files changed, 25 insertions, 0 deletions
diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro
new file mode 100644
index 0000000..da71f41
--- /dev/null
+++ b/web/src/layouts/Base.astro
@@ -0,0 +1,13 @@
+---
+import Head, {type Props as HeadProps} from "./Head.astro";
+type Props = {
+} & HeadProps;
+---
+
+<html>
+<Head {...Astro.props}></Head>
+<body class="bg-gray-800 text-white">
+<slot/>
+<footer></footer>
+</body>
+</html>
diff --git a/web/src/layouts/Head.astro b/web/src/layouts/Head.astro
new file mode 100644
index 0000000..2732105
--- /dev/null
+++ b/web/src/layouts/Head.astro
@@ -0,0 +1,12 @@
+---
+export type Props = {
+ title: string
+}
+---
+<head lang="en">
+ <meta charset="utf-8"/>
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
+ <meta name="viewport" content="width=device-width"/>
+ <meta name="generator" content={Astro.generator}/>
+ <title>{Astro.props.title}</title>
+</head>