Compare commits

..

2 Commits

Author SHA1 Message Date
fc7cd5a60a add a header and some styling 2026-01-14 23:04:02 +13:00
e71acd2ce1 start frontend, adding layouts for things 2026-01-14 11:03:44 +13:00
5 changed files with 44 additions and 13 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,21 @@
---
import Head from "./head.astro";
import Navbar from "./navbar.astro"
const {
title = "Memento"
} = Astro.props
---
<html>
<Head
title={title}
/>
<body>
<Navbar />
<slot />
</body>
</html>

View File

@@ -0,0 +1,3 @@
<div class="flex w-full h-14 px-2 rounded-xl mb-4 bg-blue-400/40 place-items-center">
<p class="font-bold">Memento</p>
</div>

View File

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

View File

@@ -4,7 +4,8 @@
@import 'quill/dist/quill.snow.css';
html {
@apply p-6;
@apply p-3;
@apply bg-black/90 text-white
}
button {