setOpen(!open)}>
-
+const Logo = () => (
+
+
דאטאבוס
)
-const Logo = () =>
דאטאבוס
-
export default function SideBar() {
- const [open, setOpen] = useState(false)
+ const { drawerOpen, setDrawerOpen } = useContext
(LayoutCtx)
+
return (
-
+ <>
+ setDrawerOpen(false)}
+ open={drawerOpen}
+ className="hideOnDesktop">
+
+
+
+ >
)
}
diff --git a/src/pages/components/header/sidebar/sidebar.scss b/src/pages/components/header/sidebar/sidebar.scss
index 7d8fd8d4..a72c187e 100644
--- a/src/pages/components/header/sidebar/sidebar.scss
+++ b/src/pages/components/header/sidebar/sidebar.scss
@@ -37,3 +37,62 @@
}
}
+.hideOnMobile {
+ display: none;
+ }
+ @media only screen and (min-width: 768px) {
+ .hideOnMobile {
+ display: block;
+ }
+ }
+
+ .hideOnDesktop {
+ display: block;
+ }
+ @media only screen and (min-width: 768px) {
+ .hideOnDesktop {
+ display: none;
+ }
+ }
+
+.sidebar-logo {
+ position: relative;
+ margin: 20px auto;
+ width: 119px;
+ font-size: 30px;
+ border-top: 6px solid gray;
+ border-bottom: 8px solid gray;
+ padding-bottom: 0;
+ line-height: 25px;
+ &::before {
+ height: 10px;
+ width: 10px;
+ border-radius: 5px;
+ position: absolute;
+ background: gray;
+ top: 28px;
+ right: 24px;
+ content: ' '
+ }
+ &::after {
+ height: 10px;
+ width: 10px;
+ border-radius: 5px;
+ position: absolute;
+ background: gray;
+ top: 28px;
+ left: 17px;
+ content: ' '
+ }
+}
+
+.sidebar-logo-collapsed {
+ position: relative;
+ margin: 20px auto;
+ text-align: center;
+ font-size: 30px;
+ border-top: 6px solid gray;
+ border-bottom: 8px solid gray;
+ padding-bottom: 0;
+ line-height: 25px;
+}
\ No newline at end of file