diff --git a/src/components/SideBar/SideBar.js b/src/components/SideBar/SideBar.js index d682118a..ffe45aae 100644 --- a/src/components/SideBar/SideBar.js +++ b/src/components/SideBar/SideBar.js @@ -1,20 +1,31 @@ -import React from "react"; +import React, { useState } from "react"; + +import arrow from "../../images/sideBarArrow.svg"; + import "./sidebar.scss"; -export const SideBar = ({ active, setActive }) => { +export const SideBar = () => { + const [active, setActive] = useState(false); + + const toggleBar = () => {}; return ( -
+
-

МЕНЮ

-
- - - +
setActive(true)}> +
+
+
+ +

МЕНЮ

-

2023 © Outstaffing

+

+ + 2023 © Outstaffing +

+
); }; diff --git a/src/components/SideBar/sidebar.scss b/src/components/SideBar/sidebar.scss index aedb24eb..0688fc05 100644 --- a/src/components/SideBar/sidebar.scss +++ b/src/components/SideBar/sidebar.scss @@ -1,4 +1,5 @@ .auth-menu { + z-index: 99; position: absolute; top: 0; left: 0; @@ -7,20 +8,62 @@ background: #e1fccf; } -.auth-menu.active { -} - .auth-title { + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + height: 80%; + .text { + display: flex; + flex-direction: column; + margin: 40px 0 0 0; + + h3 { + transform: rotate(270deg); + font-size: 25px; + line-height: 32px; + text-transform: uppercase; + color: #222222; + } + + .burger { + margin-bottom: 70px; + + &__line { + width: 32px; + border-radius: 33px; + height: 5px; + background-color: #333; + margin: 5px 0 0 27px; + transition: 0.4s; + } + } } - .burger { - &__line { - width: 35px; - height: 5px; - background-color: #333; - margin: 6px 0; - transition: 0.4s; + .outstaffing { + rotate: 270deg; + font-size: 18px; + line-height: 32px; + width: 200px; + + img { + margin-right: 15px; } } } + +.auth-body { + z-index: -1; + position: absolute; + top: 0; + left: 0; + height: 100%; + background: #e1fccf; + width: 0; +} + +.auth-body.active { + width: 565px; +} diff --git a/src/images/sideBarArrow.svg b/src/images/sideBarArrow.svg new file mode 100644 index 00000000..c923cf32 --- /dev/null +++ b/src/images/sideBarArrow.svg @@ -0,0 +1,3 @@ + + +