From ec9a3a1e36de80760f7d7c0e2ab0d9e5d7f3db00 Mon Sep 17 00:00:00 2001 From: lucythecat Date: Sun, 10 Dec 2023 02:29:41 +0900 Subject: [PATCH] rework html --- documentation/src/components/Layout.astro | 92 +++++++++++-------- documentation/src/components/NavSection.astro | 46 ++++++++++ .../src/{components/NavMenu.astro => nav.ts} | 54 +---------- 3 files changed, 102 insertions(+), 90 deletions(-) create mode 100644 documentation/src/components/NavSection.astro rename documentation/src/{components/NavMenu.astro => nav.ts} (50%) diff --git a/documentation/src/components/Layout.astro b/documentation/src/components/Layout.astro index 2dad40026..eea3f4f41 100644 --- a/documentation/src/components/Layout.astro +++ b/documentation/src/components/Layout.astro @@ -1,9 +1,10 @@ --- -import NavMenu from "@components/NavMenu.astro"; import MenuIcon from "@components/MenuIcon.astro"; import type { MarkdownLayoutProps } from "astro"; import CloseIcon from "./CloseIcon.astro"; +import { sections } from "src/nav"; +import NavSection from "./NavSection.astro"; type Props = MarkdownLayoutProps<{ title: string; @@ -17,6 +18,10 @@ type Props = MarkdownLayoutProps<{ {Astro.props.frontmatter.title} + @@ -35,41 +40,50 @@ type Props = MarkdownLayoutProps<{ content="Lucia is an open source auth library that abstracts away the complexity of handling sessions." /> - +