add blog posts

This commit is contained in:
fiatcode 2026-01-19 08:49:38 +07:00
parent 16a73319ef
commit 0e397c444d
42 changed files with 2235 additions and 237 deletions

View file

@ -1,22 +1,32 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>Astro Basics</title>
</head>
<body>
<slot />
</body>
</html>
---
import "../styles/global.css";
import Footer from "../components/Footer.astro";
import Header from "../components/Header.astro";
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
}
</style>
interface Props {
title: string;
description: string;
contentClass?: string;
}
const { title, description, contentClass = "" } = Astro.props;
---
<!doctype html>
<html lang="en" class="[scrollbar-gutter:stable]">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>{title}</title>
<meta name="description" content={description} />
<meta name="generator" content={Astro.generator} />
</head>
<body class="h-screen max-w-5xl mx-auto flex flex-col font-sans">
<Header />
<div class={`w-full max-w-3xl mx-auto ${contentClass ?? ""}`}>
<slot />
</div>
<Footer />
</body>
</html>