Create modal in projects
This commit is contained in:
parent
773786cca1
commit
c62a453e9d
16
src/components/UI/ModalProject/ModalProject.js
Normal file
16
src/components/UI/ModalProject/ModalProject.js
Normal 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;
|
25
src/components/UI/ModalProject/ModalProject.scss
Normal file
25
src/components/UI/ModalProject/ModalProject.scss
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user