aboutsummaryrefslogtreecommitdiff
path: root/web/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-17 00:58:02 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-17 00:58:02 +0100
commit5cfe3b72609a361abad791cb95ade2d8e7af0181 (patch)
tree940233a020b7c1cf43fc52d507d284da95a77efd /web/src
parentf0848ab60c33e9a4dc301ebf94d26897011ae261 (diff)
downloadFirmament-5cfe3b72609a361abad791cb95ade2d8e7af0181.tar.gz
Firmament-5cfe3b72609a361abad791cb95ade2d8e7af0181.tar.bz2
Firmament-5cfe3b72609a361abad791cb95ade2d8e7af0181.zip
feat(web): Initial web branch
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>