start frontend, adding layouts for things

This commit is contained in:
2026-01-14 11:03:44 +13:00
parent 1fdf07cdf7
commit e71acd2ce1
3 changed files with 37 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
---
const {
title
} = Astro.props
---
<head>
<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>{title}</title>
</head>

View File

@@ -0,0 +1,18 @@
---
import Head from "./head.astro";
const {
title = "Memento"
} = Astro.props
---
<html>
<Head
title={title}
/>
<body>
<slot />
</body>
</html>

View File

@@ -1,5 +1,6 @@
---
import "../styles/global.css"
import Layout from "../component/core/layout.astro"
---
<script>
@@ -43,16 +44,8 @@ import "../styles/global.css"
</script>
<html lang="en">
<head>
<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</title>
</head>
<body>
<h1>Astro</h1>
<Layout>
<h1>Astro</h1>
<div id="editor">
<p>Hello World!</p>
<p>Some initial <strong>bold</strong> text</p>
@@ -69,5 +62,4 @@ import "../styles/global.css"
<div id="result">
</div>
</body>
</html>
</Layout>