diff --git a/src/components/Sidebar/index.js b/src/components/Sidebar/index.js index 9542e22..792aefd 100644 --- a/src/components/Sidebar/index.js +++ b/src/components/Sidebar/index.js @@ -1,6 +1,53 @@ +import { NavLink } from 'react-router-dom'; import XIcon from '../../assets/icons/X-close-icon'; import styles from './sidebar.module.css'; +const items = { + title: { + icon: '', + text: 'Main link', + link: '/', + }, + subs: [ + { + text: 'Sub links', + link: '/', + }, + { + text: 'Sub links', + link: '/', + }, + { + text: 'Sub links', + link: '/', + }, + { + text: 'Sub links', + link: '/', + }, + { + text: 'Sub links', + link: '/', + }, + ], +}; + +const NavGroupItems = ({ list }) => ( +
+ +
+ + {list.title.text} +
+
+ {list.subs.map((subLink) => ( + +
{subLink.text}
+
+ ))} +
+); + export default function Sidebar({ isMobileScreen, isOpen, setOpen }) { if (!isMobileScreen && isOpen) { return ( @@ -15,7 +62,10 @@ export default function Sidebar({ isMobileScreen, isOpen, setOpen }) { -
+
+ + +
); } diff --git a/src/components/Sidebar/sidebar.module.css b/src/components/Sidebar/sidebar.module.css index 8ee47cc..d027277 100644 --- a/src/components/Sidebar/sidebar.module.css +++ b/src/components/Sidebar/sidebar.module.css @@ -3,7 +3,6 @@ background: #2d373c; min-height: 100vh; min-width: 350px; - padding: 40px; } /* @media only screen and (max-width: 800px) { @@ -14,6 +13,7 @@ display: flex; justify-content: space-between; align-items: baseline; + padding: 40px 40px 30px 40px; } .closeIcon { @@ -28,3 +28,12 @@ color: #ffffff; } + +.sidebarList { +} + +.sidebarMainItem { +} + +.sidebarSubItem { +} diff --git a/src/components/topbar/index.js b/src/components/topbar/index.js index db802d2..571f32c 100644 --- a/src/components/topbar/index.js +++ b/src/components/topbar/index.js @@ -12,7 +12,7 @@ export default function TopBar({ isMobileScreen, isSidebarOpen, setSidebarOpen } > {isSidebarOpen ? null : } -
Other icons here
+
Right side icons here
); }