主页框架
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-31 22:54:14 +08:00
parent 36a6ff369d
commit a87c6faa1e
11 changed files with 1267 additions and 20 deletions

View File

@ -1,7 +1,7 @@
---
/* 在博客翻新时期使用的占位 Layout讲究的就是极简 */
import BaseLayout from '../layout/BaseLayout.astro'
import FullLayoutV1 from './FullLayoutV1.astro'
interface Props {
title?: string
@ -10,11 +10,11 @@ interface Props {
const { title = '小帕的小窝' } = Astro.props
---
<BaseLayout title={title}>
<FullLayoutV1 title={title}>
<div class="main">
<slot />
</div>
</BaseLayout>
</FullLayoutV1>
<style>
.main {
@ -29,6 +29,12 @@ const { title = '小帕的小窝' } = Astro.props
text-align: center;
box-sizing: border-box;
& :global(h1) {
font-size: 2rem;
font-weight: 700;
margin-block: 1rem;
}
& :global(a) {
color: var(--color-link);
text-decoration: none;