aboutsummaryrefslogtreecommitdiff
path: root/web/src
diff options
context:
space:
mode:
Diffstat (limited to 'web/src')
-rw-r--r--web/src/components/Base.astro12
-rw-r--r--web/src/components/Head.astro12
-rw-r--r--web/src/components/Hero.astro0
-rw-r--r--web/src/env.d.ts1
-rw-r--r--web/src/pages/index.astro10
5 files changed, 35 insertions, 0 deletions
diff --git a/web/src/components/Base.astro b/web/src/components/Base.astro
new file mode 100644
index 0000000..73ce48c
--- /dev/null
+++ b/web/src/components/Base.astro
@@ -0,0 +1,12 @@
+---
+import Head, {type Props as HeadProps} from "./Head.astro";
+
+type Props = {} & HeadProps;
+---
+
+<html>
+<Head {...Astro.props}></Head>
+<body>
+
+</body>
+</html>
diff --git a/web/src/components/Head.astro b/web/src/components/Head.astro
new file mode 100644
index 0000000..2732105
--- /dev/null
+++ b/web/src/components/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>
diff --git a/web/src/components/Hero.astro b/web/src/components/Hero.astro
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/web/src/components/Hero.astro
diff --git a/web/src/env.d.ts b/web/src/env.d.ts
new file mode 100644
index 0000000..e16c13c
--- /dev/null
+++ b/web/src/env.d.ts
@@ -0,0 +1 @@
+/// <reference path="../.astro/types.d.ts" />
diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro
new file mode 100644
index 0000000..3797b42
--- /dev/null
+++ b/web/src/pages/index.astro
@@ -0,0 +1,10 @@
+---
+import Head from "../components/Head.astro";
+---
+
+<html lang="en">
+<Head title="Firmament"></Head>
+<body>
+<h1>Astro</h1>
+</body>
+</html>