Working in sideBar
This commit is contained in:
@ -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 (
|
||||
<div className={active ? "auth-menu active" : "auth-menu"}>
|
||||
<div className="auth-menu">
|
||||
<div className="auth-title">
|
||||
<div className="text">
|
||||
<h3>МЕНЮ</h3>
|
||||
<div className="burger">
|
||||
<span className="burger__line"></span>
|
||||
<span className="burger__line"></span>
|
||||
<span className="burger__line"></span>
|
||||
<div className="burger" onClick={() => setActive(true)}>
|
||||
<div className="burger__line"></div>
|
||||
<div className="burger__line"></div>
|
||||
<div className="burger__line"></div>
|
||||
</div>
|
||||
|
||||
<h3>МЕНЮ</h3>
|
||||
</div>
|
||||
<p>2023 © Outstaffing</p>
|
||||
<p className="outstaffing">
|
||||
<img src={arrow}></img>
|
||||
2023 © Outstaffing
|
||||
</p>
|
||||
</div>
|
||||
<div className={active ? "auth-body active" : "auth-body"}></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user