adduser готов
This commit is contained in:
parent
2ac1d34f1b
commit
bffd070793
@ -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 (
|
||||
<>
|
||||
<Header></Header>
|
||||
@ -20,7 +39,7 @@ const AddUsers = () => {
|
||||
<div className={styles.addUser__container}>
|
||||
<div className={styles.addUser__cards_container}>
|
||||
<div className={styles.addUser__card_container}>
|
||||
<div className={styles.round}>+</div>
|
||||
<div onClick={handleOpen} className={styles.round}>+</div>
|
||||
<div className={styles.addUser__card_text}>Добавить пользователя</div>
|
||||
</div>
|
||||
<div className={styles.profile__user_container}>
|
||||
@ -85,6 +104,46 @@ const AddUsers = () => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Modal
|
||||
open={open}
|
||||
onClose={handleClose}
|
||||
aria-labelledby="modal-modal-title"
|
||||
aria-describedby="modal-modal-description"
|
||||
>
|
||||
<Box sx={style}>
|
||||
<div className={styles.addModal__title_container}>
|
||||
<div className={styles.addModal__title}>Добавление пользователя</div>
|
||||
<div onClick={handleClose} className={styles.addModal__close}><div className={styles.addModal__close_img}>+</div></div>
|
||||
</div>
|
||||
<div className={styles.addModal_user_container}>
|
||||
<div className={styles.addModal_user_img_container}>
|
||||
<form className={styles.addModal_form} method="post" encType="multipart/form-data">
|
||||
<div className={styles.input_file_row}>
|
||||
<label className={styles.input_file}>
|
||||
<input type="file" name="file[]" multiple accept="image/*"/>
|
||||
<span><img src={newAvatar}></img></span>
|
||||
</label>
|
||||
<div className={styles.input_file_list}></div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div className={styles.addModal_user_input_container}>
|
||||
<input placeholder='ФИО специалиста' className={styles.addModal_user}></input>
|
||||
<input placeholder='Должность' className={styles.addModal_user}></input>
|
||||
<select className={styles.addModal_user_select}>
|
||||
<option>Пользователь</option>
|
||||
<option>Администратор</option>
|
||||
</select>
|
||||
<input placeholder='Почта' className={styles.addModal_user}></input>
|
||||
<input placeholder='TG' className={styles.addModal_user}></input>
|
||||
<div className={styles.modal__question_button_container}>
|
||||
<button className={styles.modal__question_button + ' ' + styles.yellow}>Добавить</button>
|
||||
<button className={styles.modal__question_button + ' ' + styles.gray}>Отменить</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Box>
|
||||
</Modal>
|
||||
</section>
|
||||
|
||||
</>
|
||||
|
@ -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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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 = () => {
|
||||
>
|
||||
<Box sx={style}>
|
||||
<div className={styles.modal__title}>Вопросы</div>
|
||||
<div className={styles.modal__close}><div className={styles.modal__close_img}>+</div></div>
|
||||
<div onClick={handleClose} className={styles.modal__close}><div className={styles.modal__close_img}>+</div></div>
|
||||
<div className={styles.modal__line}></div>
|
||||
<div className={styles.modal__question_number}>Всего <span>1</span></div>
|
||||
<div className={styles.modal__question_container}>
|
||||
|
@ -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';
|
||||
|
||||
|
BIN
src/img/AddUsers/newAvatar.png
Normal file
BIN
src/img/AddUsers/newAvatar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Loading…
x
Reference in New Issue
Block a user