From bffd070793692557732d37c1eb7d553c91a00c85 Mon Sep 17 00:00:00 2001
From: "Vsevo;od" <96574851+vsevolod22@users.noreply.github.com>
Date: Sun, 24 Dec 2023 01:49:42 +0300
Subject: [PATCH] =?UTF-8?q?adduser=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/Components/AddUsersPage/index.jsx | 61 +++-
src/Components/AddUsersPage/style.module.scss | 310 +++++++++++++++++-
src/Components/Calendar/index.jsx | 4 +-
src/Components/MeetAuthPage/index.jsx | 5 +-
src/Components/modal/index.jsx | 3 +-
src/img/AddUsers/newAvatar.png | Bin 0 -> 5346 bytes
6 files changed, 373 insertions(+), 10 deletions(-)
create mode 100644 src/img/AddUsers/newAvatar.png
diff --git a/src/Components/AddUsersPage/index.jsx b/src/Components/AddUsersPage/index.jsx
index 7bad770..e55707e 100644
--- a/src/Components/AddUsersPage/index.jsx
+++ b/src/Components/AddUsersPage/index.jsx
@@ -1,9 +1,28 @@
import styles from './style.module.scss';
+import { useState } from 'react';
import avatar from '../../img/profilePage/avatar.png';
import Header from '../Header';
+import Modal from '@mui/material/Modal';
+import Box from '@mui/material/Box';
import del from '../../img/AddUsers/delete.png';
import perm from '../../img/AddUsers/permission.png';
+import newAvatar from '../../img/AddUsers/newAvatar.png';
+const style = {
+ position: 'absolute',
+ top: '50%',
+ left: '50%',
+ transform: 'translate(-50%, -50%)',
+ width: "46%",
+ height: "60vh",
+ bgcolor: 'background.paper',
+ borderRadius: '25px',
+ boxShadow: 24,
+ p: 4,
+ };
const AddUsers = () => {
+ const [open, setOpen] = useState(false);
+ const handleOpen = () => setOpen(true);
+ const handleClose = () => setOpen(false);
return (
<>
@@ -20,7 +39,7 @@ const AddUsers = () => {
-
+
+
+
Добавить пользователя
@@ -85,6 +104,46 @@ const AddUsers = () => {
+
+
+
+
Добавление пользователя
+
+
+
+
+
>
diff --git a/src/Components/AddUsersPage/style.module.scss b/src/Components/AddUsersPage/style.module.scss
index 39b42fc..2b2b1b7 100644
--- a/src/Components/AddUsersPage/style.module.scss
+++ b/src/Components/AddUsersPage/style.module.scss
@@ -164,6 +164,7 @@
}
}
.round {
+ cursor: pointer;
border-radius: 80%;
height: 50px;
border: 1px solid var(--yellow, #FD0);
@@ -227,4 +228,311 @@
height: 100%;
width: 100%;
}
- }
\ No newline at end of file
+ }
+.addModal {
+
+
+ &__close {
+ cursor: pointer;
+ transform: rotate(-45deg);
+ position: absolute;
+ height: 96px;
+ height: 45px;
+ color: #000;
+ font-family: Montserrat;
+ font-size: 78.625px;
+ font-style: normal;
+ font-weight: 200;
+ line-height: normal;
+ top: 13px;
+ right: 50px;
+ }
+ &__title {
+ color: #000;
+ font-family: Montserrat;
+ font-size: 36px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ }
+ &_form {
+ margin-top: 100px;
+ height: 100%;
+ width: 30%;
+ }
+ &_user {
+ border-radius: 7.794px;
+ border: 0.779px solid var(--gray_stroke, #D0D2D8);
+ height: 35px;
+ width: 200px;
+ margin-bottom: 12px;
+ text-align: center;
+ &_select {
+ border-radius: 7.794px;
+ border: 0.779px solid var(--gray_stroke, #D0D2D8);
+ height: 40px;
+ width: 210px;
+ margin-bottom: 12px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ }
+ &_input_container {
+ justify-content: center;
+ align-items: center;
+ display: flex;
+ flex-direction: column;
+ margin-top: 100px;
+ margin-left: 10%;
+ }
+ &_container {
+ height: 100%;
+
+ display: flex;
+ align-items: start;
+ }
+ }
+
+}
+.input_file_row {
+ display: inline-block;
+ height: 100%;
+
+}
+.input_file {
+ position: relative;
+ display: inline-block;
+}
+.input_file span {
+ margin-top: 159px;
+ padding-top: 200px;
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+ outline: none;
+ text-decoration: none;
+ font-size: 14px;
+ vertical-align: middle;
+ color: rgb(255 255 255);
+ text-align: center;
+ border-radius: 4px;
+ line-height: 22px;
+ height: 40px;
+ padding: 10px 20px;
+ box-sizing: border-box;
+ border: none;
+ margin: 0;
+ transition: background-color 0.2s;
+}
+.input_file input[type=file] {
+ position: absolute;
+ z-index: -1;
+ opacity: 0;
+ display: block;
+ width: 0;
+ height: 0;
+}
+
+/* Focus */
+// .input_file input[type=file]:focus + span {
+// box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
+// }
+
+/* Hover/active */
+
+
+/* Disabled */
+
+
+/* Список c превью */
+.input_file_list {
+ padding: 10px 0;
+}
+.input_file_list_item {
+ display: inline-block;
+ margin: 0 15px 15px;
+ width: 150px;
+ vertical-align: top;
+ position: relative;
+}
+.input_file_list_item img {
+ width: 150px;
+}
+.input_file_list_name {
+ text-align: center;
+ display: block;
+ font-size: 12px;
+ text-overflow: ellipsis;
+ overflow: hidden;
+}
+.input_file_list_remove {
+ color: #fff;
+ text-decoration: none;
+ display: inline-block;
+ position: absolute;
+ padding: 0;
+ margin: 0;
+ top: 5px;
+ right: 5px;
+ background: #ff0202;
+ width: 16px;
+ height: 16px;
+ text-align: center;
+ line-height: 16px;
+ border-radius: 50%;
+}
+.modal {
+ background-color: #fff;
+ position: absolute;
+ height: 400px;
+ width: 300px;
+ &__container {
+ position: absolute;
+ top: 0px;
+ height: 5000px;
+ width: 100%;
+ background-color: rgba(0, 0, 0, 0.40);
+ }
+ &__title {
+ color: #000;
+ font-family: Montserrat;
+ font-size: 48px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ }
+ &__line {
+ height: 1px;
+ width: 100%;
+ stroke-width: 1px;
+ background-color: #D0D2D8;
+ width: 100%;
+ margin-top: 40px;
+ }
+ &__close {
+ cursor: pointer;
+ transform: rotate(-45deg);
+ position: absolute;
+ height: 96px;
+ height: 45px;
+ color: #000;
+ font-family: Montserrat;
+ font-size: 58.625px;
+ font-style: normal;
+ font-weight: 200;
+ line-height: normal;
+ top: 0px;
+ right: 50px;
+ }
+ &__question {
+ &_number {
+ margin-top: 50px;
+ color: #000;
+ font-family: Montserrat;
+ font-size: 32px;
+ font-style: normal;
+ font-weight: 600;
+ line-height: normal;
+ span {
+ color: #000;
+ font-family: Montserrat;
+ font-size: 32px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ }
+ }
+ &_container {
+ margin-top: 60px;
+ display: flex;
+ justify-content: space-between;
+ }
+ &_containerSecond {
+ width: 48%;
+ height: 250px;
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ }
+ &_user {
+ &_img {
+ margin-right: 25px;
+ &_container {
+ display: flex;
+ align-items:center;
+ color: #000;
+ font-family: Montserrat;
+ font-size: 24px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ }
+ }
+ &_descr {
+ color: #000;
+ font-family: Montserrat;
+ font-size: 18px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ margin-top: 25px;
+ }
+ }
+ &_time {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ &_container {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top: 20px;
+ }
+ }
+ &_like {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ margin: 5px 0 0 10px;
+ &_container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ }
+ }
+ &_input {
+ margin-top: 40px;
+ border-radius: 10px;
+ border: 1px solid var(--gray_stroke, #D0D2D8);
+ width: 100%;
+ height: 235px;
+ padding-top: 20px;
+ padding-left: 10px;
+ }
+ &_containerThird {
+ margin-right: 3%;
+ }
+ &_button {
+ &_container {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+ }
+ }
+}
+.yellow {
+ border-radius: 10px;
+ background-color: #60AD1E;
+ width: 190px;
+ height: 50px;
+ margin-right: 30px;
+}
+.gray {
+ border-radius: 10px;
+ background: var(--gray_stroke, #D0D2D8);
+ width: 140px;
+ height: 40px;
+}
diff --git a/src/Components/Calendar/index.jsx b/src/Components/Calendar/index.jsx
index 9b8521f..b14bb4f 100644
--- a/src/Components/Calendar/index.jsx
+++ b/src/Components/Calendar/index.jsx
@@ -1,6 +1,6 @@
-import * as React from 'react';
+
import dayjs from 'dayjs';
-import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo';
+import { DemoContainer } from '@mui/x-date-pickers/internals/demo';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { DateCalendar } from '@mui/x-date-pickers/DateCalendar';
diff --git a/src/Components/MeetAuthPage/index.jsx b/src/Components/MeetAuthPage/index.jsx
index 1046961..09f329a 100644
--- a/src/Components/MeetAuthPage/index.jsx
+++ b/src/Components/MeetAuthPage/index.jsx
@@ -12,10 +12,7 @@ import newAvatar from '../../img/MeetPage/newAvatar.png';
import vk from '../../img/MeetPage/Vk.png';
import tg from '../../img/MeetPage/Telegram.png';
import book from '../../img/MeetPage/Book.png';
-import { useState } from "react";
import * as React from 'react';
-import Button from '@mui/material/Button';
-import Typography from '@mui/material/Typography';
import Modal from '@mui/material/Modal';
const style = {
@@ -230,7 +227,7 @@ const MeetPage = () => {
>
Вопросы
-
+
Всего 1
diff --git a/src/Components/modal/index.jsx b/src/Components/modal/index.jsx
index 3f32a46..cdc5d74 100644
--- a/src/Components/modal/index.jsx
+++ b/src/Components/modal/index.jsx
@@ -1,6 +1,5 @@
-import * as React from 'react';
+
import Box from '@mui/material/Box';
-import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import Modal from '@mui/material/Modal';
diff --git a/src/img/AddUsers/newAvatar.png b/src/img/AddUsers/newAvatar.png
new file mode 100644
index 0000000000000000000000000000000000000000..b155bf6edb117d389b5e8f6073a8761ed60010c8
GIT binary patch
literal 5346
zcmV<86dmh{P)T$3OfO85z
zd(U~FnJa)GB@q-}edm1V;9g58RrPwkq;3wWV_Y4$zt8`|Lq(i`y{(RU6|jm>C=66UDnw;*!t-6}-_R{>
zUiF&e5HT1A%11+pUKD+*P_HWLm{-R+hO09Ms)Z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