This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
import { getBlog } from '../../lib/apis/legacy/blog'
|
||||
import BaseLayout from '../../layout/BaseLayout.astro'
|
||||
import FullLayoutV1 from '../../layout/FullLayoutV1.astro'
|
||||
import { MarkdocTreeRender } from '../../components/MarkdocRenderer.tsx'
|
||||
import { toMarkdocTree } from '../../lib/markdoc'
|
||||
|
||||
@ -21,7 +21,24 @@ if (blogData === null) {
|
||||
const tree = await toMarkdocTree(blogData.content)
|
||||
---
|
||||
|
||||
<!-- <BaseLayout set:html={blogRendered} /> -->
|
||||
<BaseLayout title={blogData.title}>
|
||||
<FullLayoutV1 title={blogData.title}>
|
||||
<div class="__dev__caution">
|
||||
<h1>仍在开发中,界面会崩坏</h1>
|
||||
</div>
|
||||
<MarkdocTreeRender tree={tree} client:load />
|
||||
</BaseLayout>
|
||||
</FullLayoutV1>
|
||||
|
||||
<style>
|
||||
.__dev__caution {
|
||||
width: 100dvw;
|
||||
height: 100dvh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
& > h1 {
|
||||
font-size: 72px;
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -69,7 +69,7 @@ try {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="slide" style="background-color: var(--color-bg-1);">
|
||||
<section class="slide">
|
||||
<div class="slide-title-design1" aria-hidden="true">
|
||||
<svg width="800" height="240" viewBox="0 0 800 240">
|
||||
<text x="10" y="220" class="stroke-layer">留言</text>
|
||||
@ -87,6 +87,19 @@ try {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="slide">
|
||||
<div class="slide-title-design1" aria-hidden="true">
|
||||
<svg width="800" height="240" viewBox="0 0 800 240">
|
||||
<text x="10" y="220" class="stroke-layer">联络</text>
|
||||
<text x="0" y="210" class="main-layer">联络</text>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="slide-title-design2" aria-hidden="true">
|
||||
<Icon name="mdi:email" />
|
||||
</div>
|
||||
<h1>当前页面还在开发中......</h1>
|
||||
</section>
|
||||
|
||||
<section class="slide">
|
||||
<div class="slide-title-design1" aria-hidden="true">
|
||||
<svg width="800" height="240" viewBox="0 0 800 240">
|
||||
@ -140,6 +153,10 @@ try {
|
||||
overflow: hidden;
|
||||
isolation: isolate;
|
||||
|
||||
&:nth-child(2n) {
|
||||
background-color: var(--color-bg-1);
|
||||
}
|
||||
|
||||
& > .notation {
|
||||
position: absolute;
|
||||
width: 100dvw;
|
||||
|
||||
Reference in New Issue
Block a user