From c62a453e9d0d3564a3df841ffd054a328dc0d9ad Mon Sep 17 00:00:00 2001 From: MaxOvs19 Date: Tue, 7 Mar 2023 18:05:52 +0300 Subject: [PATCH] Create modal in projects --- .../UI/ModalProject/ModalProject.js | 16 ++++++++++++ .../UI/ModalProject/ModalProject.scss | 25 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/components/UI/ModalProject/ModalProject.js create mode 100644 src/components/UI/ModalProject/ModalProject.scss diff --git a/src/components/UI/ModalProject/ModalProject.js b/src/components/UI/ModalProject/ModalProject.js new file mode 100644 index 00000000..97f2e739 --- /dev/null +++ b/src/components/UI/ModalProject/ModalProject.js @@ -0,0 +1,16 @@ +import React from "react"; + +import "./ModalProject.scss"; + +export const ModalProject = ({ active, setActive }) => { + return ( +
+
e.stopPropagation()} + >
+
+ ); +}; + +export default ModalProject; diff --git a/src/components/UI/ModalProject/ModalProject.scss b/src/components/UI/ModalProject/ModalProject.scss new file mode 100644 index 00000000..5af31dff --- /dev/null +++ b/src/components/UI/ModalProject/ModalProject.scss @@ -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; +}