/[sudobot]/trunk/docs/components/Layouts/DocsLayout.tsx
ViewVC logotype

Contents of /trunk/docs/components/Layouts/DocsLayout.tsx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (show annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 1684 byte(s)
chore: add trunk
1 import "prism-themes/themes/prism-coldark-dark.css";
2 import { Fragment, PropsWithChildren } from "react";
3 import EditButton from "../MDX/EditButton";
4 import PageInfo from "../MDX/PageInfo";
5 import TableOfContents from "../MDX/TableOfContents";
6 import DocsLinkList from "../Navbar/Sidebar";
7 import Navigator from "../Navigation/Navigator";
8 import { Box } from "@mui/material";
9
10 export default function DocsLayout({ children }: PropsWithChildren) {
11 return (
12 <div
13 className="grid lg:grid-cols-[3fr_10fr_2.5fr] md:gap-[50px] mb-10 relative"
14 id="docs_layout_root"
15 >
16 <DocsLinkList desktopOnly fragment />
17
18 <div className="lg:px-[50px] xl:px-[100px] lg:max-w-[60vw]">
19 <article
20 id="article"
21 className="prose prose-neutral prose-invert prose-code:before:hidden prose-code:after:hidden mt-8 p-3 text-wrap max-w-[100vw] relative"
22 >
23 <EditButton />
24 {children}
25 </article>
26 <br />
27 <div className="mx-3">
28 <Navigator />
29 <hr className="[border-top:1px_solid_#333] mb-5" />
30 <PageInfo />
31 </div>
32 </div>
33
34 <Box className="hidden lg:block mr-5 fixed right-0 min-w-[16rem] max-w-[20vw] max-h-[calc(100vh-4rem)] overflow-y-scroll pb-8" sx={{
35 'scrollbarWidth': 0,
36 '::-webkit-scrollbar': {
37 display: 'none'
38 }
39 }}>
40 <TableOfContents as={Fragment} />
41 </Box>
42 </div>
43 );
44 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26