Files
notebook/src/layouts/BaseLayout.astro
T
secret-deus 15cdabb647
notebook-ci / build-push-deploy (push) Successful in 36s
style(notebook): flatten cards and add side physics doodles
Remove panel/card borders and shadows for a flatter reading layout.
Add SideDoodles with physics formulas/curves, random angles on load.
2026-07-16 20:01:52 +08:00

40 lines
805 B
Plaintext

---
import BaseHead from '../components/BaseHead.astro';
import Footer from '../components/Footer.astro';
import Header from '../components/Header.astro';
import SideDoodles from '../components/SideDoodles.astro';
interface Props {
title: string;
description?: string;
/** 宽内容区(列表/看板页) */
wide?: boolean;
}
const { title, description = '', wide = false } = Astro.props;
---
<!doctype html>
<html lang="zh-CN">
<head>
<BaseHead title={title} description={description} />
</head>
<body>
<SideDoodles />
<Header />
<main class:list={[{ wide, boarded: wide }]}>
<slot />
</main>
<Footer />
</body>
</html>
<style>
main.boarded {
width: min(1180px, 100%);
max-width: 100%;
padding-left: var(--page-pad-x);
padding-right: var(--page-pad-x);
}
</style>