style content, add arrow indicating more content
All checks were successful
/ build (pull_request) Successful in 1m4s
/ cleanup-staging (pull_request) Successful in 4s

This commit is contained in:
kritzl 2026-07-10 13:02:40 +02:00
commit 11120bb0c8
Signed by: kritzl
SSH key fingerprint: SHA256:5BmINP9VjZWaUk5Z+2CTut1KFhwLtd0ZynMekKbtViM
8 changed files with 94 additions and 26 deletions

15
src/layouts/Content.astro Normal file
View file

@ -0,0 +1,15 @@
---
import "../styles/global.css"
import Footer from "../components/Footer.astro"
import Layout from "./Layout.astro"
const {frontmatter} = Astro.props
---
<Layout title={frontmatter.title}>
<main class="prose max-w-3xl mx-auto p-4 mt-10 mb-40">
<h1>{frontmatter.title}</h1>
<slot/>
</main>
<Footer />
</Layout>

View file

@ -1,5 +1,7 @@
---
import "../styles/global.css";
const props = Astro.props;
---
<!doctype html>
@ -10,7 +12,7 @@ import "../styles/global.css";
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" href="/favicon.ico" />
<meta name="generator" content={Astro.generator} />
<title>DIDAYS 2026</title>
<title>DIDAYS 2026{props.title ? ` | ${props.title}` : ''}</title>
</head>
<body>
<slot />