diff --git a/docs/src/components/Banner.astro b/docs/src/components/Banner.astro new file mode 100644 index 00000000..aef78487 --- /dev/null +++ b/docs/src/components/Banner.astro @@ -0,0 +1,35 @@ +--- +--- +
+ + diff --git a/docs/src/layouts/MainLayout.astro b/docs/src/layouts/MainLayout.astro index 0d8a2ef3..fc0e5b69 100644 --- a/docs/src/layouts/MainLayout.astro +++ b/docs/src/layouts/MainLayout.astro @@ -1,5 +1,6 @@ --- import type { MarkdownHeading } from "astro"; +import Banner from "../components/Banner.astro"; import Footer from "../components/Footer/Footer.astro"; import HeadCommon from "../components/HeadCommon.astro"; import HeadSEO from "../components/HeadSEO.astro"; @@ -36,7 +37,7 @@ const githubEditUrl = `${CONSTS.GITHUB_EDIT_URL}/${currentFile}`; body { width: 100%; display: grid; - grid-template-rows: var(--theme-navbar-height) 1fr; + grid-template-rows: auto (--theme-navbar-height) 1fr; --gutter: 0.5rem; --doc-padding: 2rem; } @@ -140,6 +141,7 @@ const githubEditUrl = `${CONSTS.GITHUB_EDIT_URL}/${currentFile}`; +