diff --git a/.vscode/settings.json b/.vscode/settings.json index e6ca1e7..492f59f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "typescript.tsdk": "node_modules\\typescript\\lib", "typescript.enablePromptUseWorkspaceTsdk": true, "cSpell.words": [ + "atrule", "BCDR", "configparser", "DDTHH", diff --git a/src/app/components/NavBar.module.css b/src/app/components/NavBar.module.css index 7c79e0b..fe814d2 100644 --- a/src/app/components/NavBar.module.css +++ b/src/app/components/NavBar.module.css @@ -76,7 +76,7 @@ .dropdownSelect { color: #64adac; - background-color: #05254a; + background-color: inherit; border: none; border-radius: 5px; cursor: pointer; @@ -90,7 +90,6 @@ } .selectItem { - background-color: #05254a; color: #64adac; cursor: pointer; font-weight: bold; diff --git a/src/app/page.module.css b/src/app/components/Page.module.css similarity index 76% rename from src/app/page.module.css rename to src/app/components/Page.module.css index ceb333a..4a153fd 100644 --- a/src/app/page.module.css +++ b/src/app/components/Page.module.css @@ -1,3 +1,8 @@ +.wrapper { + display: flex; + width: 100%; +} + .container { display: flex; width: 100%; @@ -6,10 +11,4 @@ align-items: center; margin: 0 auto; overflow-y: auto; -} - -.divider { - width: 100%; - height: 1px; - background-color: #848586; } \ No newline at end of file diff --git a/src/app/components/Page.tsx b/src/app/components/Page.tsx new file mode 100644 index 0000000..bd5c5b4 --- /dev/null +++ b/src/app/components/Page.tsx @@ -0,0 +1,29 @@ +'use client'; + +import { themes, useThemeContext } from '../theme'; +import { DocSection, DocsStructure } from '../types/types'; +import Main from './Main'; +import NavBar from './NavBar'; +import styles from './Page.module.css'; +import SideBar from './SideBar'; + +export default function Page({ + version, + versionSections, +}: { + version: DocsStructure; + versionSections: DocSection[]; +}) { + const { theme } = useThemeContext(); + const themeStyles = themes[theme]; + + return ( +