diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-17 00:58:02 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-17 04:27:36 +0100 |
commit | d26852105463a51d5b71eb70fdaba787f0914030 (patch) | |
tree | 3e6be2d35c6a7916d5f6cb49806e9900c40797b8 /web/src | |
parent | 92034c8501aaf9426fd86cccd9a5c51bcf364afd (diff) | |
download | Firmament-d26852105463a51d5b71eb70fdaba787f0914030.tar.gz Firmament-d26852105463a51d5b71eb70fdaba787f0914030.tar.bz2 Firmament-d26852105463a51d5b71eb70fdaba787f0914030.zip |
feat(web): Initial web branch
Diffstat (limited to 'web/src')
-rw-r--r-- | web/src/components/Base.astro | 12 | ||||
-rw-r--r-- | web/src/components/Head.astro | 12 | ||||
-rw-r--r-- | web/src/components/Hero.astro | 0 | ||||
-rw-r--r-- | web/src/env.d.ts | 1 | ||||
-rw-r--r-- | web/src/pages/index.astro | 10 |
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> |