diff --git a/src/components/SistentNavigation/index.js b/src/components/SistentNavigation/index.js index 9ee2c4df1b69..450cacca3638 100644 --- a/src/components/SistentNavigation/index.js +++ b/src/components/SistentNavigation/index.js @@ -4,12 +4,53 @@ import { Link } from "gatsby"; import { IoMdClose } from "@react-icons/all-files/io/IoMdClose"; import { IoIosArrowDropdownCircle } from "@react-icons/all-files/io/IoIosArrowDropdownCircle"; -import { content } from "./content"; +// import { content } from "./content"; -import TOCWrapper from "../handbook-navigation/toc.style"; +const content = [ + { id: 0, link: "/projects/sistent/about", text: "About Sistent" }, + { + id: 1, + link: "/projects/sistent/identity", + text: "Identity", + children: [ + { + id: 1.1, + text: "Colors", + link: "/projects/sistent/identity/colors", + }, + { + id: 1.2, + text: "Typography", + link: "/projects/sistent/identity/typography", + }, + { + id: 1.3, + text: "Spacing", + link: "/projects/sistent/identity/spacing", + }, + ], + }, + { id: 2, link: "/projects/sistent/components", text: "Components" }, +]; + +import TOCWrapper from "./toc.style"; +import { + Accordion, + AccordionBody, + AccordionItem, + AccordionTitle, + CloseIcon, + IconWrapper, + OpenIcon, +} from "../../reusecore/Accordion"; +import { IoIosArrowUp } from "@react-icons/all-files/io/IoIosArrowUp"; +import { IoIosArrowDown } from "@react-icons/all-files/io/IoIosArrowDown"; const TOC = () => { const [expand, setExpand] = useState(false); + + const [expandIdenity, setExpandIdentity] = useState(false); + return (
@@ -37,18 +78,59 @@ const TOC = () => {
diff --git a/src/components/SistentNavigation/toc.style.js b/src/components/SistentNavigation/toc.style.js index b2a235faa256..206435f4af43 100644 --- a/src/components/SistentNavigation/toc.style.js +++ b/src/components/SistentNavigation/toc.style.js @@ -120,6 +120,10 @@ const TOCWrapper = styled.div` visibility: visible; } } + + .toc-acc-item { + background-color: transparent; + } `; export default TOCWrapper; diff --git a/src/pages/projects/sistent/identity.js b/src/pages/projects/sistent/identity.js deleted file mode 100644 index ec72306e8663..000000000000 --- a/src/pages/projects/sistent/identity.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from "react"; -import SistentIdentity from "../../../sections/Projects/Sistent/identity"; - -const SistentIdentityPage = () => { - return ; -}; - -export default SistentIdentityPage; diff --git a/src/pages/projects/sistent/identity/color.js b/src/pages/projects/sistent/identity/color.js new file mode 100644 index 000000000000..13ce94f80746 --- /dev/null +++ b/src/pages/projects/sistent/identity/color.js @@ -0,0 +1,8 @@ +import React from "react"; +import SistentIdentityColor from "../../../../sections/Projects/Sistent/identity/color"; + +const SistentIdentityColorPage = () => { + return ; +}; + +export default SistentIdentityColorPage; diff --git a/src/sections/Projects/Sistent/identity.js b/src/sections/Projects/Sistent/identity/color.js similarity index 59% rename from src/sections/Projects/Sistent/identity.js rename to src/sections/Projects/Sistent/identity/color.js index 4ac453f451c6..da8e105b70f7 100644 --- a/src/sections/Projects/Sistent/identity.js +++ b/src/sections/Projects/Sistent/identity/color.js @@ -1,16 +1,16 @@ import React from "react"; -import { Container } from "../../../reusecore/Layout"; -import SistentWrapper from "./sistent.style"; -import TOC from "../../../components/SistentNavigation"; -import IntraPage from "../../../components/handbook-navigation/intra-page"; +import { Container } from "../../../../reusecore/Layout"; +import SistentWrapper from "../sistent.style"; +import TOC from "../../../../components/SistentNavigation"; +import IntraPage from "../../../../components/handbook-navigation/intra-page"; const contents = [{ id: 0, link: "#About Sistent", text: "About Sistent" }]; -const SistentIdentity = () => { +const SistentIdentityColor = () => { return (
-

Identity

+

Color

@@ -27,4 +27,4 @@ const SistentIdentity = () => { ); }; -export default SistentIdentity; +export default SistentIdentityColor;