Moving components out of a folder UI

This commit is contained in:
MaxOvs19
2023-05-29 09:37:18 +03:00
parent 85accc3111
commit 3b605280b2
10 changed files with 292 additions and 369 deletions

View File

@ -0,0 +1,23 @@
import React from "react";
import "./modalLayout.scss";
export const ModalLayout = ({ active, setActive, children, styles }) => {
return (
<div
className={active ? `modal-layout active` : "modal-layout"}
onClick={() => setActive(false)}
>
<div
className={
styles ? `modal-layout__content ${styles}` : "modal-layout__content"
}
onClick={(e) => e.stopPropagation()}
>
{children}
</div>
</div>
);
};
export default ModalLayout;

View File

@ -0,0 +1,28 @@
.modal-layout {
z-index: 9;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.11);
position: fixed;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
transform: scale(0);
&__content {
position: relative;
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
border-radius: 24px;
padding: 60px 60px 30px 60px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
.modal-layout.active {
transform: scale(1);
}