diff options
Diffstat (limited to 'web/src/layouts')
-rw-r--r-- | web/src/layouts/Base.astro | 13 | ||||
-rw-r--r-- | web/src/layouts/Head.astro | 12 |
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> |