Moving components out of a folder UI
This commit is contained in:
parent
85accc3111
commit
3b605280b2
@ -12,7 +12,7 @@ import Home from "./pages/Home/Home";
|
|||||||
import Candidate from "./components/Candidate/Candidate";
|
import Candidate from "./components/Candidate/Candidate";
|
||||||
import Calendar from "./components/Calendar/Calendar";
|
import Calendar from "./components/Calendar/Calendar";
|
||||||
import ReportForm from "./components/ReportForm/ReportForm";
|
import ReportForm from "./components/ReportForm/ReportForm";
|
||||||
import FreeDevelopers from "./components/UI/FreeDevelopers/FreeDevelopers";
|
import FreeDevelopers from "./components/FreeDevelopers/FreeDevelopers";
|
||||||
import { TicketFullScreen } from "./components/UI/TicketFullScreen/TicketFullScreen";
|
import { TicketFullScreen } from "./components/UI/TicketFullScreen/TicketFullScreen";
|
||||||
import { ProfileCalendar } from "./components/ProfileCalendar/ProfileCalendar";
|
import { ProfileCalendar } from "./components/ProfileCalendar/ProfileCalendar";
|
||||||
import Article from "./pages/Article/Article";
|
import Article from "./pages/Article/Article";
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
|
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
|
||||||
border-radius: 24px;
|
border-radius: 24px;
|
||||||
|
|
||||||
padding: 60px 60px 30px 60px;
|
padding: 60px 60px 30px 60px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
@ -1,15 +1,15 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import AuthHeader from "../../AuthHeader/AuthHeader";
|
import AuthHeader from "../AuthHeader/AuthHeader";
|
||||||
import SideBar from "../../SideBar/SideBar";
|
import SideBar from "../SideBar/SideBar";
|
||||||
import { Footer } from "../../Footer/Footer";
|
import { Footer } from "../Footer/Footer";
|
||||||
import { scrollToForm } from "../../../helper";
|
import { scrollToForm } from "../../helper";
|
||||||
import { ProfileBreadcrumbs } from "../../ProfileBreadcrumbs/ProfileBreadcrumbs";
|
import { ProfileBreadcrumbs } from "../ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||||
import Button from "../../Common/Button/Button";
|
import Button from "../Common/Button/Button";
|
||||||
|
|
||||||
import mockWorker from "../../../assets/images/mock/mokPerson.png";
|
import mockWorker from "../../assets/images/mock/mokPerson.png";
|
||||||
import arrow from "../../../assets/icons/arrows/arrow_left.png";
|
import arrow from "../../assets/icons/arrows/arrow_left.png";
|
||||||
|
|
||||||
import "./freeDevelopers.scss";
|
import "./freeDevelopers.scss";
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
|
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import ModalLayout from "../ModalLayout/ModalLayout";
|
import ModalLayout from "../../Common/ModalLayout/ModalLayout";
|
||||||
|
import Button from "../../Common/Button/Button";
|
||||||
|
|
||||||
import avatar from "../../../assets/images/mock/mokPerson.png";
|
import avatar from "../../../assets/images/mock/mokPerson.png";
|
||||||
import logoTg from "../../../assets/icons/tgLogo.svg";
|
import logoTg from "../../../assets/icons/tgLogo.svg";
|
||||||
@ -26,23 +27,18 @@ export const ModalAspirant = ({ active, setActive, level }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Исправить стили тут, и заменить в модалках
|
|
||||||
return (
|
return (
|
||||||
<ModalLayout
|
<ModalLayout active={active} setActive={setActive} styles={"aspirant"}>
|
||||||
active={active}
|
<div className="aspirant-decs">
|
||||||
setActive={setActive}
|
|
||||||
styles={"modal-aspt__content"}
|
|
||||||
>
|
|
||||||
<div className="aspt-decs">
|
|
||||||
<h1>Выбранный кандидат</h1>
|
<h1>Выбранный кандидат</h1>
|
||||||
<div className="aspt-decs__avatar">
|
<div className="aspirant-decs__avatar">
|
||||||
<div className="aspt-decs__avatar_title">
|
<div className="aspirant-decs__avatar_title">
|
||||||
<img src={avatar}></img>
|
<img src={avatar}></img>
|
||||||
<p>
|
<p>
|
||||||
{level.spec} {level.skils}, {level.level}{" "}
|
{level.spec} {level.skils}, {level.level}{" "}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="aspt-decs__avatar_back">
|
<div className="aspirant-decs__avatar_back">
|
||||||
<Link to={"/profile/catalog"}>
|
<Link to={"/profile/catalog"}>
|
||||||
<div>
|
<div>
|
||||||
<img src={arrow}></img>
|
<img src={arrow}></img>
|
||||||
@ -52,9 +48,9 @@ export const ModalAspirant = ({ active, setActive, level }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="aspt-decs__telega">
|
<div className="aspirant-decs__telega">
|
||||||
<h4>Есть вопросы?</h4>
|
<h4>Есть вопросы?</h4>
|
||||||
<div className="aspt-decs__telega-logo">
|
<div className="aspirant-decs__telega-logo">
|
||||||
<img src={logoTg}></img>
|
<img src={logoTg}></img>
|
||||||
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
|
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
|
||||||
</div>
|
</div>
|
||||||
@ -78,11 +74,11 @@ export const ModalAspirant = ({ active, setActive, level }) => {
|
|||||||
onChange={(e) => setTime(e.target.value)}
|
onChange={(e) => setTime(e.target.value)}
|
||||||
></input>
|
></input>
|
||||||
</div>
|
</div>
|
||||||
|
<Button onClick={send} styles="form-interview__submit">
|
||||||
<button onClick={send}>Отправить</button>
|
Отправить
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<span className="exit" onClick={() => setActive(false)}></span>
|
<span className="exit" onClick={() => setActive(false)}></span>
|
||||||
|
|
||||||
<ModalLayout active={modalSend} setActive={setModalSend} styles={"send"}>
|
<ModalLayout active={modalSend} setActive={setModalSend} styles={"send"}>
|
||||||
<div className="send">
|
<div className="send">
|
||||||
<img src={interview}></img>
|
<img src={interview}></img>
|
||||||
|
@ -1,27 +1,12 @@
|
|||||||
.modal-aspt {
|
.aspirant {
|
||||||
z-index: 99;
|
|
||||||
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);
|
|
||||||
|
|
||||||
&__content {
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid #dde2e4;
|
border: 1px solid #dde2e4;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
.aspt-decs {
|
&-decs {
|
||||||
padding: 54px 25px 51px 61px;
|
padding: 54px 25px 51px 61px;
|
||||||
border-right: 1px solid #f1f1f1;
|
border-right: 1px solid #f1f1f1;
|
||||||
|
|
||||||
@ -134,15 +119,10 @@
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
&__submit {
|
||||||
width: 174px;
|
width: 174px;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
color: white;
|
|
||||||
border: none;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 32px;
|
|
||||||
background: #52b709;
|
|
||||||
border-radius: 44px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
@ -164,11 +144,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.modal-aspt.active {
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.send {
|
.send {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
import ModalLayout from "../../Common/ModalLayout/ModalLayout";
|
||||||
|
import Button from "../../Common/Button/Button";
|
||||||
|
|
||||||
import telegramLogo from "../../../assets/icons/tgLogo.svg";
|
import telegramLogo from "../../../assets/icons/tgLogo.svg";
|
||||||
import doc from "../../../assets/icons/doc.svg";
|
import doc from "../../../assets/icons/doc.svg";
|
||||||
import anyMoment from "../../../assets/icons/anyMoment.svg";
|
import anyMoment from "../../../assets/icons/anyMoment.svg";
|
||||||
@ -8,19 +11,12 @@ import "./modalRegistration.scss";
|
|||||||
|
|
||||||
export const ModalRegistration = ({ active, setActive }) => {
|
export const ModalRegistration = ({ active, setActive }) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<ModalLayout active={active} setActive={setActive} styles={"registration"}>
|
||||||
className={active ? "modal-registration active" : "modal-registration"}
|
<div className="registration-body__left">
|
||||||
onClick={() => setActive(false)}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="modal-registration__content"
|
|
||||||
onClick={(e) => e.stopPropagation()}
|
|
||||||
>
|
|
||||||
<div className="body-reg__left">
|
|
||||||
<h2>
|
<h2>
|
||||||
Подключайтесь к <p>itguild.</p>
|
Подключайтесь к <p>itguild.</p>
|
||||||
</h2>
|
</h2>
|
||||||
<p className="body-reg__left-desc">
|
<p className="registration-body__left-desc">
|
||||||
Зарегистрируйтесь и назначайте собеседования любым специалистам без
|
Зарегистрируйтесь и назначайте собеседования любым специалистам без
|
||||||
задержек
|
задержек
|
||||||
</p>
|
</p>
|
||||||
@ -41,15 +37,20 @@ export const ModalRegistration = ({ active, setActive }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="button-box">
|
<div className="button-box">
|
||||||
<button onClick={(e) => e.preventDefault()}>Отправить</button>
|
<Button
|
||||||
|
onClick={(e) => e.preventDefault()}
|
||||||
|
styles={"button-box__submit"}
|
||||||
|
>
|
||||||
|
Отправить
|
||||||
|
</Button>
|
||||||
<h5>
|
<h5>
|
||||||
У вас уже есть аккаунт? <p>Войти</p>
|
У вас уже есть аккаунт? <p>Войти</p>
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="body-reg__right">
|
<div className="registration-body__right">
|
||||||
<h4>Отказ от специалиста в любой момент</h4>
|
<h4>Отказ от специалиста в любой момент</h4>
|
||||||
<div className="body-reg__right-text">
|
<div className="registration-body__right-text">
|
||||||
<img src={anyMoment}></img>
|
<img src={anyMoment}></img>
|
||||||
<p>
|
<p>
|
||||||
Поменяйте, откажитесь или возьмите еще специалиста в любой момент
|
Поменяйте, откажитесь или возьмите еще специалиста в любой момент
|
||||||
@ -57,7 +58,7 @@ export const ModalRegistration = ({ active, setActive }) => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<h4>100% постоплата</h4>
|
<h4>100% постоплата</h4>
|
||||||
<div className="body-reg__right-text">
|
<div className="registration-body__right-text">
|
||||||
<img src={doc}></img>
|
<img src={doc}></img>
|
||||||
<p>
|
<p>
|
||||||
Договор не подразумевает какую‑либо оплату до того, как вы
|
Договор не подразумевает какую‑либо оплату до того, как вы
|
||||||
@ -65,14 +66,13 @@ export const ModalRegistration = ({ active, setActive }) => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<h4>Есть вопросы?</h4>
|
<h4>Есть вопросы?</h4>
|
||||||
<div className="body-reg__right-text">
|
<div className="registration-body__right-text">
|
||||||
<img src={telegramLogo}></img>
|
<img src={telegramLogo}></img>
|
||||||
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
|
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span onClick={() => setActive(false)}></span>
|
<span onClick={() => setActive(false)} className="exit"></span>
|
||||||
</div>
|
</ModalLayout>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,29 +1,15 @@
|
|||||||
.modal-registration {
|
.registration {
|
||||||
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);
|
|
||||||
|
|
||||||
&__content {
|
|
||||||
position: relative;
|
|
||||||
background: white;
|
background: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
padding: 0;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border: 1px solid #dde2e4;
|
border: 1px solid #dde2e4;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
width: 1088px;
|
width: 1088px;
|
||||||
height: 529px;
|
height: 529px;
|
||||||
|
|
||||||
.body-reg {
|
&-body {
|
||||||
&__left {
|
&__left {
|
||||||
padding: 60px 0 30px 77px;
|
padding: 60px 0 30px 77px;
|
||||||
|
|
||||||
@ -84,15 +70,10 @@
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
button {
|
&__submit {
|
||||||
width: 174px;
|
width: 174px;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
background: #52b709;
|
|
||||||
border-radius: 44px;
|
|
||||||
border: none;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 32px;
|
|
||||||
color: white;
|
|
||||||
margin-right: 55px;
|
margin-right: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,31 +125,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
span {
|
|
||||||
cursor: pointer;
|
|
||||||
position: absolute;
|
|
||||||
top: 30px;
|
|
||||||
right: 36px;
|
|
||||||
|
|
||||||
&:before,
|
|
||||||
&:after {
|
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
width: 16px;
|
|
||||||
height: 2px;
|
|
||||||
background: #263238;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:before {
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
|
||||||
&:after {
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-registration.active {
|
|
||||||
transform: scale(1);
|
|
||||||
}
|
}
|
||||||
|
@ -13,11 +13,10 @@ import { ProfileBreadcrumbs } from "../../components/ProfileBreadcrumbs/ProfileB
|
|||||||
import { Footer } from "../../components/Footer/Footer";
|
import { Footer } from "../../components/Footer/Footer";
|
||||||
import { Navigation } from "../../components/Navigation/Navigation";
|
import { Navigation } from "../../components/Navigation/Navigation";
|
||||||
import { Loader } from "../../components/Loader/Loader";
|
import { Loader } from "../../components/Loader/Loader";
|
||||||
import ModalLayout from "../../components/UI/ModalLayout/ModalLayout";
|
import ModalLayout from "../../components/Common/ModalLayout/ModalLayout";
|
||||||
|
|
||||||
import { apiRequest } from "../../api/request";
|
|
||||||
import { getCorrectDate } from "../../components/Calendar/calendarHelper";
|
import { getCorrectDate } from "../../components/Calendar/calendarHelper";
|
||||||
|
|
||||||
|
import { apiRequest } from "../../api/request";
|
||||||
import { urlForLocal } from "../../helper";
|
import { urlForLocal } from "../../helper";
|
||||||
|
|
||||||
import arrowSwitchDate from "../../assets/icons/arrows/arrowViewReport.png";
|
import arrowSwitchDate from "../../assets/icons/arrows/arrowViewReport.png";
|
||||||
|
Loading…
Reference in New Issue
Block a user