From 5cfe3b72609a361abad791cb95ade2d8e7af0181 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 17 Nov 2024 00:58:02 +0100 Subject: feat(web): Initial web branch --- web/src/components/Base.astro | 12 ++++++++++++ web/src/components/Head.astro | 12 ++++++++++++ web/src/components/Hero.astro | 0 web/src/env.d.ts | 1 + web/src/pages/index.astro | 10 ++++++++++ 5 files changed, 35 insertions(+) create mode 100644 web/src/components/Base.astro create mode 100644 web/src/components/Head.astro create mode 100644 web/src/components/Hero.astro create mode 100644 web/src/env.d.ts create mode 100644 web/src/pages/index.astro (limited to 'web/src') 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; +--- + + + + + + + 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 +} +--- + + + + + + {Astro.props.title} + diff --git a/web/src/components/Hero.astro b/web/src/components/Hero.astro new file mode 100644 index 0000000..e69de29 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 @@ +/// 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"; +--- + + + + +

Astro

+ + -- cgit