feat(web): Initial web branch
This commit is contained in:
12
web/src/components/Base.astro
Normal file
12
web/src/components/Base.astro
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
import Head, {type Props as HeadProps} from "./Head.astro";
|
||||
|
||||
type Props = {} & HeadProps;
|
||||
---
|
||||
|
||||
<html>
|
||||
<Head {...Astro.props}></Head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
12
web/src/components/Head.astro
Normal file
12
web/src/components/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>
|
||||
0
web/src/components/Hero.astro
Normal file
0
web/src/components/Hero.astro
Normal file
1
web/src/env.d.ts
vendored
Normal file
1
web/src/env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
10
web/src/pages/index.astro
Normal file
10
web/src/pages/index.astro
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import Head from "../components/Head.astro";
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<Head title="Firmament"></Head>
|
||||
<body>
|
||||
<h1>Astro</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user