setCurrentChat(c)}>
+ {conversations.map((c, index ) => {
+ return (
+
setCurrentChat(c)}>
@@ -281,7 +294,7 @@ function Chats(){
- ))}
+ )})}
{
diff --git a/containers/react/src/components/Messages/Modal.jsx b/containers/react/src/components/Messages/Modal.jsx
new file mode 100644
index 00000000..02293aa9
--- /dev/null
+++ b/containers/react/src/components/Messages/Modal.jsx
@@ -0,0 +1,107 @@
+import { motion } from "framer-motion";
+import Backdrop from "../Sidebar/Backdrop";
+import { Rank } from "../../DataBase/DataRank"
+import '../../styles/Messages.css'
+import { useState } from "react";
+import { GrAdd } from "react-icons/gr";
+import { Link } from "react-router-dom";
+import AddSelectTag from "./AddSelectTag";
+
+const dropIn = {
+ hidden:{y:"-100vh",
+ opacity: 0,},
+ visible:{y: "0",
+ opacity: 0,
+ transotion:{
+ duration:0.1,
+ type:"spring",
+ damping: 100,
+ stiffness: 500,
+ }},
+ exit:{y: "100vh",
+ opacity: 0,},
+
+};
+
+const Modal = ({handleClose, text}) => {
+ const [multi, setMulti] = useState(false);
+ // const addButton = document.getElementById('addButton');
+ // const selectContainer = document.getElementById('selectContainer');
+ // let selectCount = 0;
+ // function addSelectTag(){
+ // selectCount++;
+ // const select = document.createElement('select');
+ // select.name = `select${selectCount}`;
+
+ // const opt1 = document.createElement('option');
+ // opt1.value = 'opt1';
+ // opt1.text = 'opt1';
+
+ // const opt2 = document.createElement('option');
+ // opt2.value = 'opt2';
+ // opt2.text = 'opt2';
+
+ // select.appendChild(opt1);
+ // select.appendChild(opt2);
+
+ // selectContainer.appendChild(select);
+ // }
+ function try_me()
+ {
+
+ for (let i = 0; i < 2; i++)
+ {
+ AddSelectTag();
+ }
+ }
+ return (
+
+ e.stopPropagation()}
+ className="modal"
+ variant={dropIn}
+ initial="hidden"
+ animate="visible"
+ exit="exit"
+ >
+ New Convewrstion
+
+{/* First selection */}
+
+
+
+{/* Second selection */}
+
+
+ {/* */}
+ {/* addButton.addEventListener('click', addSelectTag); */}
+ (try_me())}>
+ {multi === true ? : " "}
+
+
+ Submit
+
+ Cancel
+
+
+
+
+ )
+}
+
+export default Modal
\ No newline at end of file
diff --git a/containers/react/src/styles/Messages.css b/containers/react/src/styles/Messages.css
index f62c2860..ecc0bd30 100644
--- a/containers/react/src/styles/Messages.css
+++ b/containers/react/src/styles/Messages.css
@@ -1,12 +1,39 @@
.home{
background-color: black;
- height: 10vh;
+ height: 90vh;
display: flex;
align-items: center;
justify-content: center;
}
+select{
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ -ms-appearance: none;
+ background: black;
+ color: white;
+ box-shadow: none;
+ appearance: none;
+ outline: 0;
+ border: 0!important;
+ margin: 5px;
+ font-size: 18px;
+ border-radius: 6px;
+}
+
+.modal{
+ width: clamp(50%, 700px, 90%);
+ height: min(50%, 300px);
+
+ margin: auto;
+ padding: 2rem;
+ border-radius: 12px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
.scroll{
overflow: scroll;
}
@@ -61,9 +88,11 @@
.navbar{
display: flex;
align-items: center;
- background-color: #000c66;
+ /* background-color: yellow; */
+ background-image: linear-gradient(90deg, #5843e4, #5a0760);
color: white;
padding: 3px;
+ border-radius: 10px 10px 0px 0px;
}
.pic{
@@ -143,4 +172,22 @@ input{
flex-direction: row-reverse;
padding: 20px;
color: lightgrey;
+}
+
+.submit{
+ display: inline-block;
+ color: white;
+ background-color: #5843e4;
+ border-radius: 10px;
+ padding: 5px;
+ font-size: 1.2rem;
+ text-decoration: none;
+ font-weight:lighter;
+}
+
+.div_submit {
+ flex-direction: row;
+ align-items: center;
+ /* margin-left: 4px;
+ margin-right: 4px; */
}
\ No newline at end of file