feat(web): Add hero image and navbar
This commit is contained in:
13
web/src/layouts/Base.astro
Normal file
13
web/src/layouts/Base.astro
Normal file
@@ -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>
|
||||
12
web/src/layouts/Head.astro
Normal file
12
web/src/layouts/Head.astro
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user