Create modal in projects

This commit is contained in:
MaxOvs19 2023-03-07 18:05:52 +03:00
parent 773786cca1
commit c62a453e9d
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import React from "react";
import "./ModalProject.scss";
export const ModalProject = ({ active, setActive }) => {
return (
<div className={active ? "modal-project active" : "modal-project"}>
<div
className="modal-project__content"
onClick={(e) => e.stopPropagation()}
></div>
</div>
);
};
export default ModalProject;

View File

@ -0,0 +1,25 @@
.modal-project {
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);
}
.modal-project.active {
transform: scale(1);
}
.modal-project__content {
background: #ffffff;
border: 1px solid #dde2e4;
border-radius: 8px;
display: flex;
flex-direction: row;
}