From f6d70cf9ab622a58739d2dc939b8b1043b4791c5 Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Tue, 14 May 2024 21:45:00 +0530 Subject: feat: added end-to-end encryption --- client/src/components/Modal/Modal.jsx | 25 ++++++++++++ client/src/components/Modal/Modal.module.css | 61 ++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 client/src/components/Modal/Modal.jsx create mode 100644 client/src/components/Modal/Modal.module.css (limited to 'client/src/components/Modal') diff --git a/client/src/components/Modal/Modal.jsx b/client/src/components/Modal/Modal.jsx new file mode 100644 index 0000000..54c816e --- /dev/null +++ b/client/src/components/Modal/Modal.jsx @@ -0,0 +1,25 @@ +import React from "react"; +import styles from "./Modal.module.css"; + +const Modal = ({ openModal, setOpenModal, onSuccessClick, onCancelClick }) => { + return ( +
+
+ +

Encrypt content?

+
+ + +
+
+
+ ); +}; + +export default Modal; + diff --git a/client/src/components/Modal/Modal.module.css b/client/src/components/Modal/Modal.module.css new file mode 100644 index 0000000..9d79c62 --- /dev/null +++ b/client/src/components/Modal/Modal.module.css @@ -0,0 +1,61 @@ +.background { + display: none; + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + background-color: #00000062; + z-index: 10; +} + +.active { + display: flex; + align-items: center; + justify-content: center; +} + +.container { + top: 0; + left: 0; + background-color: var(--color-dark); + padding: 40px; + width: 300px; + border-radius: 10px; + z-index: 11; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} + +.container__close { + cursor: pointer; + background: none; + border: none; + margin-left: auto; +} + +.close__img { + width: 20px; +} + +.container__actions { + margin-top: 20px; + display: flex; + width: 100%; + justify-content: space-around; +} + +.container__actions button { + padding: 10px 20px; + cursor: pointer; + width: 12rem; + text-align: center; + background-color: var(--color-yellow); + color: var(--color-dark); + border-radius: 10px; + font-size: 1rem; + margin: 0 10px; +} + -- cgit