Doc changes (#2124)

* refactored Storybook UI

* refactored Storybook UI

* removed extra cards from the doc, added card for ui components

* added hover behavior to doc page & made it look selected

* separate storybook docs and tests

* separating storybook tests and docs

* fixed spelling errors in docs

* Final round of edits for frontend, added backend folder architecture

* Created CODE_OF_CONDUCT.md

* Add code of conduct to contributing.md

* doc changes

* fixed broken links
This commit is contained in:
Nimra Ahmed
2023-10-19 19:32:29 +05:00
committed by GitHub
parent d0df7e4d3b
commit bea9d0835b
26 changed files with 135 additions and 81 deletions

View File

@ -43,6 +43,7 @@
--category-icon-background-color: #ebebeb;
--category-icon-border-color: #d6d6d6;
--level-1-color: #B3B3B3;
}
.markdown > h1 {
@ -162,10 +163,23 @@ li.coming-soon a::after {
color:inherit
}
.menu__list-item--level1 > .menu__link--active > .icon-and-text{
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
color: black;
}
/* Change text color to white for dark mode */
@media (prefers-color-scheme: dark) {
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
color: white;
}
}
/* Reset to the browser's default text color for other cases (light mode) */
.menu__list-item--level1 > .menu__link--active > .icon-and-text {
color: initial;
}
.menu__list-item--level1 > .menu__link--active,
.menu__list-item--level1 > .menu__link:hover {

View File

@ -4,7 +4,7 @@ import {useColorMode} from '@docusaurus/theme-common';
const IconDarkMode = (props) => {
const { colorMode } = useColorMode().colorMode;
const { colorMode } = useColorMode();
return colorMode === 'dark' ? <TbMoon /> : <></>;
}

View File

@ -4,8 +4,8 @@ import {useColorMode} from '@docusaurus/theme-common';
const IconLightMode = (props) => {
const { colorMode } = useColorMode().colorMode;
return colorMode === 'dark' ? <></>: <TbSun /> ;
const { colorMode } = useColorMode();
return colorMode === 'light' ? <TbSun /> : <></>;
}
export default IconLightMode;

View File

@ -32,5 +32,7 @@ export {
TbTopologyStar,
TbVocabulary,
TbZoomQuestion,
TbRocket
TbRocket,
TbAugmentedReality,
TbTerminal,
} from "react-icons/tb";