Moving components out of a folder UI

This commit is contained in:
MaxOvs19
2023-05-29 09:37:18 +03:00
parent 85accc3111
commit 3b605280b2
10 changed files with 292 additions and 369 deletions

View File

@ -1,100 +0,0 @@
import React from "react";
import { Link } from "react-router-dom";
import AuthHeader from "../../AuthHeader/AuthHeader";
import SideBar from "../../SideBar/SideBar";
import { Footer } from "../../Footer/Footer";
import { scrollToForm } from "../../../helper";
import { ProfileBreadcrumbs } from "../../ProfileBreadcrumbs/ProfileBreadcrumbs";
import Button from "../../Common/Button/Button";
import mockWorker from "../../../assets/images/mock/mokPerson.png";
import arrow from "../../../assets/icons/arrows/arrow_left.png";
import "./freeDevelopers.scss";
export const FreeDevelopers = ({}) => {
return (
<section className="free-dev">
<AuthHeader />
<SideBar />
<div className="container free-dev_page">
<ProfileBreadcrumbs
links={[
{ name: "Главная", link: "/auth" },
{ name: "Свободные разработчики", link: "/worker" },
]}
/>
<h2>
Свободные разработчики <span>для Вашей команды</span>
</h2>
<Link to={"/auth"} className="link">
<img src={arrow}></img>Вернуться
</Link>
<div className="free-dev__title">
<div className="free-dev__title-box">
<img src={mockWorker}></img>
<div className="free-dev__title-name">
<h3>Дмитрий, PHP Back end - разработчик, Middle</h3>
<div></div>
</div>
</div>
<Button onClick={scrollToForm} styles={"dev-code"}>
Код разработчика
</Button>
</div>
<div className="free-dev__body">
<div className="free-dev__body-title">
<p>Описание опыта работы</p>
</div>
<div className="free-dev__body-text">
<h5>
Godesigner - сервис для фриланс дизайнеров, копирайтеров и их
заказчиков
</h5>
<p>Стек PHP (li3), HTML, CSS, JavaScript, MYSQL, Nginx.</p>
<ul>
<li> Расширение функционала старых модулей проекта</li>
<li>создание и проектирование новых модулей сайта</li>
<li>написание backend части проекта</li>
<li>усовершенствование и расширение функционала админ-панели</li>
<li>работа с визуальной составляющей</li>
<li>создание алгоритма рассылки писем по электронной почте</li>
<li>
использование API сторонних сервисов, мессенджеров (WhatsApp)
</li>
</ul>
<p>Время разработки: 2 года.</p>
<div className="free-dev__body-text-bottom">
<h5>
Godesigner - сервис для фриланс дизайнеров, копирайтеров и их
заказчиков
</h5>
<p>Стек PHP (li3), HTML, CSS, JavaScript, MYSQL, Nginx.</p>
<ul>
<li> Расширение функционала старых модулей проекта</li>
<li>создание и проектирование новых модулей сайта</li>
</ul>
</div>
</div>
<div className="login">
<h3>Для просмотра полного резюме разработчика авторизуйтесь</h3>
<Button styles={"dev-code"}>
<Link to={"/auth"}>Войти</Link>
</Button>
</div>
</div>
<Footer />
</div>
</section>
);
};
export default FreeDevelopers;

View File

@ -1,235 +0,0 @@
.free-dev {
font-family: "LabGrotesque", sans-serif;
overflow: hidden;
position: relative;
background-color: #f1f1f1;
.link {
font-size: 12px;
line-height: 16px;
color: #5b6871;
img {
margin-right: 20px;
}
}
h2 {
font-style: normal;
font-weight: 500;
font-size: 30px;
line-height: 32px;
color: #000000;
margin: 32px 0 36px 0;
span {
color: #52b709;
font-size: 30px;
}
}
&_page {
margin: 24px 0 30px 0;
}
&__title {
background: #ffffff;
border-radius: 12px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 20px 63px 20px 45px;
margin: 40px 0 23px 0;
&-box {
display: flex;
}
&-name {
display: flex;
flex-direction: column;
justify-content: space-evenly;
margin-left: 47px;
div {
width: 239px;
height: 8px;
background: #52b709;
border-radius: 12px;
}
}
@media (max-width: 720px) {
flex-direction: column;
}
@media (max-width: 450px) {
flex-direction: column;
&-box {
flex-direction: column;
align-items: center;
img {
width: 50%;
}
}
&-name {
margin: 10px 0 10px 0;
text-align: center;
align-items: center;
}
}
}
&__body {
position: relative;
background: #ffffff;
border-radius: 12px;
margin-bottom: 160px;
&-title {
background: #e1fccf;
border-radius: 12px 12px 0px 0px;
font-weight: 400;
font-size: 18px;
line-height: 32px;
color: #000000;
padding: 20px 0 17px 51px;
}
&-text {
font-weight: 700;
font-size: 16px;
line-height: 32px;
color: #000000;
padding: 26px 0 30px 52px;
h5 {
font-size: 16px;
margin-bottom: 30px;
}
&-bottom {
margin-top: 50px;
opacity: 0.25;
}
}
.login {
position: absolute;
bottom: 75px;
border: 3px solid #52b709;
border-radius: 12px;
background: rgba(255, 255, 255, 0.76);
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 97px;
cursor: pointer;
h3 {
font-weight: 500;
font-size: 22px;
line-height: 18px;
color: #000000;
margin-right: 50px;
}
a {
color: white;
width: 100%;
}
@media (max-width: 920px) {
flex-direction: column;
padding: 15px;
height: 20%;
h3 {
margin: 0 0 0 0;
text-align: center;
}
button {
margin-top: 15px;
height: 25px;
height: 40px;
}
}
}
}
@media (max-width: 1333px) {
.auth-menu {
position: fixed;
width: 100% !important;
height: 80px;
margin-bottom: 50px;
.auth-body.active {
left: 0;
width: 100%;
}
.auth-body {
&__title,
&__politic {
margin-top: 35px;
}
&__contacts {
margin: 50px 0 25px 0;
}
}
}
.free-dev_page {
margin-top: 110px;
}
.auth-header {
display: none;
}
.auth-title {
flex-direction: row;
height: 100%;
.text {
margin: 0;
flex-direction: row;
.burger {
margin-bottom: 5px;
}
h3 {
display: none;
}
}
.outstaffing {
margin: 0;
width: 150px;
font-size: 12px;
transform: none;
img {
margin-right: 5px;
width: 15px;
}
}
}
}
}
.dev-code {
width: 202px;
height: 50px;
font-weight: 500;
font-size: 16px;
}

View File

@ -1,7 +1,8 @@
import React, { useState } from "react";
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 logoTg from "../../../assets/icons/tgLogo.svg";
@ -26,23 +27,18 @@ export const ModalAspirant = ({ active, setActive, level }) => {
}
};
// TODO: Исправить стили тут, и заменить в модалках
return (
<ModalLayout
active={active}
setActive={setActive}
styles={"modal-aspt__content"}
>
<div className="aspt-decs">
<ModalLayout active={active} setActive={setActive} styles={"aspirant"}>
<div className="aspirant-decs">
<h1>Выбранный кандидат</h1>
<div className="aspt-decs__avatar">
<div className="aspt-decs__avatar_title">
<div className="aspirant-decs__avatar">
<div className="aspirant-decs__avatar_title">
<img src={avatar}></img>
<p>
{level.spec} {level.skils}, {level.level}{" "}
</p>
</div>
<div className="aspt-decs__avatar_back">
<div className="aspirant-decs__avatar_back">
<Link to={"/profile/catalog"}>
<div>
<img src={arrow}></img>
@ -52,9 +48,9 @@ export const ModalAspirant = ({ active, setActive, level }) => {
</div>
</div>
<div className="aspt-decs__telega">
<div className="aspirant-decs__telega">
<h4>Есть вопросы?</h4>
<div className="aspt-decs__telega-logo">
<div className="aspirant-decs__telega-logo">
<img src={logoTg}></img>
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
</div>
@ -78,11 +74,11 @@ export const ModalAspirant = ({ active, setActive, level }) => {
onChange={(e) => setTime(e.target.value)}
></input>
</div>
<button onClick={send}>Отправить</button>
<Button onClick={send} styles="form-interview__submit">
Отправить
</Button>
</div>
<span className="exit" onClick={() => setActive(false)}></span>
<ModalLayout active={modalSend} setActive={setModalSend} styles={"send"}>
<div className="send">
<img src={interview}></img>

View File

@ -1,173 +1,148 @@
.modal-aspt {
z-index: 99;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.11);
position: fixed;
top: 0;
left: 0;
.aspirant {
display: flex;
align-items: center;
justify-content: center;
transform: scale(0);
flex-direction: row;
background: #ffffff;
border: 1px solid #dde2e4;
border-radius: 8px;
padding: 0;
&__content {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
background: #ffffff;
border: 1px solid #dde2e4;
border-radius: 8px;
&-decs {
padding: 54px 25px 51px 61px;
border-right: 1px solid #f1f1f1;
.aspt-decs {
padding: 54px 25px 51px 61px;
border-right: 1px solid #f1f1f1;
h1 {
display: block;
font-weight: 500;
font-size: 30px;
line-height: 32px;
color: #000000;
text-align: left;
}
h1 {
display: block;
font-weight: 500;
font-size: 30px;
line-height: 32px;
color: #000000;
text-align: left;
}
&__avatar {
margin-top: 76px;
&__avatar {
margin-top: 76px;
&_title {
display: flex;
flex-direction: row;
align-items: center;
&_title {
display: flex;
flex-direction: row;
align-items: center;
img {
width: 48px;
height: 48px;
margin: 0 22px 0 0;
}
p {
font-weight: 500;
font-size: 16px;
line-height: 24px;
}
}
&_back {
margin: 40px 0 0 0;
a {
display: flex;
align-items: center;
font-size: 12px;
line-height: 16px;
color: #5b6871;
text-decoration: none;
}
div {
background: #8dc63f;
opacity: 0.3;
width: 48px;
height: 48px;
border-radius: 44px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 15px 0 0;
img {
margin: 0;
width: 50%;
}
}
p {
font-size: 12px;
line-height: 16px;
color: #5b6871;
}
}
}
&__telega {
text-align: left;
h4 {
color: #52b709;
font-size: 14px;
margin: 55px 0 34px 0;
}
p,
h4 {
font-weight: 900;
line-height: 24px;
img {
width: 48px;
height: 48px;
margin: 0 22px 0 0;
}
p {
width: 50%;
font-weight: 500;
font-size: 16px;
line-height: 24px;
}
}
&_back {
margin: 40px 0 0 0;
a {
display: flex;
align-items: center;
font-size: 12px;
line-height: 16px;
color: #5b6871;
text-decoration: none;
}
&-logo {
div {
background: #8dc63f;
opacity: 0.3;
width: 48px;
height: 48px;
border-radius: 44px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin: 0 15px 0 0;
img {
margin: 0 19px 0 0;
margin: 0;
width: 50%;
}
}
p {
font-size: 12px;
line-height: 16px;
color: #5b6871;
}
}
}
.form-interview {
&__telega {
text-align: left;
padding: 54px 61px 51px 72px;
h4 {
color: #52b709;
font-size: 14px;
margin: 55px 0 34px 0;
}
p,
h4 {
font-weight: 900;
line-height: 24px;
}
p {
font-weight: 400;
font-size: 15px;
line-height: 18px;
margin-bottom: 10px;
width: 50%;
font-size: 12px;
}
button {
width: 174px;
height: 46px;
color: white;
border: none;
font-size: 18px;
line-height: 32px;
background: #52b709;
border-radius: 44px;
}
.input {
background: #eff2f7;
border-radius: 8px;
&-logo {
display: flex;
justify-content: center;
width: 294px;
height: 35px;
margin: 0 0 36px 0;
flex-direction: row;
input {
background: #eff2f7;
width: 90%;
border: none;
outline: none;
font-size: 15px;
img {
margin: 0 19px 0 0;
}
}
}
}
}
.modal-aspt.active {
transform: scale(1);
.form-interview {
text-align: left;
padding: 54px 61px 51px 72px;
p {
font-weight: 400;
font-size: 15px;
line-height: 18px;
margin-bottom: 10px;
}
&__submit {
width: 174px;
height: 46px;
font-size: 18px;
}
.input {
background: #eff2f7;
border-radius: 8px;
display: flex;
justify-content: center;
width: 294px;
height: 35px;
margin: 0 0 36px 0;
input {
background: #eff2f7;
width: 90%;
border: none;
outline: none;
font-size: 15px;
}
}
}
}
.send {

View File

@ -1,23 +0,0 @@
import React from "react";
import "./modalLayout.scss";
export const ModalLayout = ({ active, setActive, children, styles }) => {
return (
<div
className={active ? `modal-layout active` : "modal-layout"}
onClick={() => setActive(false)}
>
<div
className={
styles ? `modal-layout__content ${styles}` : "modal-layout__content"
}
onClick={(e) => e.stopPropagation()}
>
{children}
</div>
</div>
);
};
export default ModalLayout;

View File

@ -1,29 +0,0 @@
.modal-layout {
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: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
border-radius: 24px;
padding: 60px 60px 30px 60px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
}
.modal-layout.active {
transform: scale(1);
}

View File

@ -1,5 +1,8 @@
import React from "react";
import ModalLayout from "../../Common/ModalLayout/ModalLayout";
import Button from "../../Common/Button/Button";
import telegramLogo from "../../../assets/icons/tgLogo.svg";
import doc from "../../../assets/icons/doc.svg";
import anyMoment from "../../../assets/icons/anyMoment.svg";
@ -8,71 +11,68 @@ import "./modalRegistration.scss";
export const ModalRegistration = ({ active, setActive }) => {
return (
<div
className={active ? "modal-registration active" : "modal-registration"}
onClick={() => setActive(false)}
>
<div
className="modal-registration__content"
onClick={(e) => e.stopPropagation()}
>
<div className="body-reg__left">
<h2>
Подключайтесь к <p>itguild.</p>
</h2>
<p className="body-reg__left-desc">
Зарегистрируйтесь и назначайте собеседования любым специалистам без
задержек
</p>
<ModalLayout active={active} setActive={setActive} styles={"registration"}>
<div className="registration-body__left">
<h2>
Подключайтесь к <p>itguild.</p>
</h2>
<p className="registration-body__left-desc">
Зарегистрируйтесь и назначайте собеседования любым специалистам без
задержек
</p>
<div className="input-body">
<div className="input-body__box">
<h5>Ваше имя</h5>
<input></input>
<h5>E-mail</h5>
<input></input>
</div>
<div className="input-body__box">
<h5>Название компании</h5>
<input></input>
<h5>Пароль</h5>
<input></input>
</div>
<div className="input-body">
<div className="input-body__box">
<h5>Ваше имя</h5>
<input></input>
<h5>E-mail</h5>
<input></input>
</div>
<div className="button-box">
<button onClick={(e) => e.preventDefault()}>Отправить</button>
<h5>
У вас уже есть аккаунт? <p>Войти</p>
</h5>
<div className="input-body__box">
<h5>Название компании</h5>
<input></input>
<h5>Пароль</h5>
<input></input>
</div>
</div>
<div className="body-reg__right">
<h4>Отказ от специалиста в любой момент</h4>
<div className="body-reg__right-text">
<img src={anyMoment}></img>
<p>
Поменяйте, откажитесь или возьмите еще специалиста в любой момент
работы.
</p>
</div>
<h4>100% постоплата</h4>
<div className="body-reg__right-text">
<img src={doc}></img>
<p>
Договор не подразумевает какуюлибо оплату до того, как вы
арендовали специалиста
</p>
</div>
<h4>Есть вопросы?</h4>
<div className="body-reg__right-text">
<img src={telegramLogo}></img>
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
</div>
<div className="button-box">
<Button
onClick={(e) => e.preventDefault()}
styles={"button-box__submit"}
>
Отправить
</Button>
<h5>
У вас уже есть аккаунт? <p>Войти</p>
</h5>
</div>
<span onClick={() => setActive(false)}></span>
</div>
</div>
<div className="registration-body__right">
<h4>Отказ от специалиста в любой момент</h4>
<div className="registration-body__right-text">
<img src={anyMoment}></img>
<p>
Поменяйте, откажитесь или возьмите еще специалиста в любой момент
работы.
</p>
</div>
<h4>100% постоплата</h4>
<div className="registration-body__right-text">
<img src={doc}></img>
<p>
Договор не подразумевает какуюлибо оплату до того, как вы
арендовали специалиста
</p>
</div>
<h4>Есть вопросы?</h4>
<div className="registration-body__right-text">
<img src={telegramLogo}></img>
<p>Напишите нам в Телеграм. Мы с удовольствием ответим!</p>
</div>
</div>
<span onClick={() => setActive(false)} className="exit"></span>
</ModalLayout>
);
};

View File

@ -1,174 +1,128 @@
.modal-registration {
z-index: 9;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.11);
position: fixed;
top: 0;
left: 0;
.registration {
background: white;
display: flex;
align-items: center;
justify-content: center;
transform: scale(0);
flex-direction: row;
padding: 0;
justify-content: space-between;
border: 1px solid #dde2e4;
border-radius: 8px;
width: 1088px;
height: 529px;
&__content {
position: relative;
background: white;
display: flex;
flex-direction: row;
&-body {
&__left {
padding: 60px 0 30px 77px;
justify-content: space-between;
border: 1px solid #dde2e4;
border-radius: 8px;
width: 1088px;
height: 529px;
h2 {
font-weight: 500;
font-size: 35px;
line-height: 32px;
display: flex;
justify-content: space-between;
width: 405px;
margin: 0 auto;
}
.body-reg {
&__left {
padding: 60px 0 30px 77px;
h2 > p {
font-size: 35px;
color: #52b709;
}
h2 {
font-weight: 500;
font-size: 35px;
line-height: 32px;
&-desc {
text-align: center;
width: 500px;
font-weight: 500;
font-size: 16px;
line-height: 28px;
margin: 20px auto 0 auto;
}
.input-body {
margin-top: 44px;
display: flex;
flex-direction: row;
&__box {
margin-right: 25px;
display: flex;
justify-content: space-between;
width: 405px;
margin: 0 auto;
}
h2 > p {
font-size: 35px;
color: #52b709;
}
&-desc {
text-align: center;
width: 500px;
font-weight: 500;
font-size: 16px;
line-height: 28px;
margin: 20px auto 0 auto;
}
.input-body {
margin-top: 44px;
display: flex;
flex-direction: row;
&__box {
margin-right: 25px;
display: flex;
flex-direction: column;
h5 {
font-weight: 400;
font-size: 15px;
line-height: 18px;
}
input {
width: 294px;
height: 35px;
background: #eff2f7;
border-radius: 8px;
border: none;
margin-bottom: 35px;
padding-left: 20px;
}
}
}
.button-box {
display: flex;
flex-direction: row;
margin-top: 10px;
button {
width: 174px;
height: 46px;
background: #52b709;
border-radius: 44px;
border: none;
font-size: 18px;
line-height: 32px;
color: white;
margin-right: 55px;
}
flex-direction: column;
h5 {
display: flex;
align-items: flex-end;
font-size: 16px;
line-height: 28px;
font-weight: 400;
font-size: 15px;
line-height: 18px;
}
p {
color: #406128;
text-decoration: underline;
margin: 0 0 0 5px;
}
input {
width: 294px;
height: 35px;
background: #eff2f7;
border-radius: 8px;
border: none;
margin-bottom: 35px;
padding-left: 20px;
}
}
}
&__right {
border-left: 1px solid #f1f1f1;
padding: 80px 32px 46px 25px;
.button-box {
display: flex;
flex-direction: column;
justify-content: space-between;
flex-direction: row;
margin-top: 10px;
h4 {
font-weight: 900;
font-size: 14px;
line-height: 24px;
color: #52b709;
margin-right: 100px;
width: 180px;
&__submit {
width: 174px;
height: 46px;
font-size: 18px;
margin-right: 55px;
}
&-text {
h5 {
display: flex;
flex-direction: row;
align-items: flex-end;
font-size: 16px;
line-height: 28px;
p {
font-weight: 400;
font-size: 12px;
line-height: 22px;
width: 205px;
}
img {
margin: 0 18px 20px 0;
color: #406128;
text-decoration: underline;
margin: 0 0 0 5px;
}
}
}
}
span {
cursor: pointer;
position: absolute;
top: 30px;
right: 36px;
&:before,
&:after {
content: "";
position: absolute;
width: 16px;
height: 2px;
background: #263238;
&__right {
border-left: 1px solid #f1f1f1;
padding: 80px 32px 46px 25px;
display: flex;
flex-direction: column;
justify-content: space-between;
h4 {
font-weight: 900;
font-size: 14px;
line-height: 24px;
color: #52b709;
margin-right: 100px;
width: 180px;
}
&:before {
transform: rotate(45deg);
}
&:after {
transform: rotate(-45deg);
&-text {
display: flex;
flex-direction: row;
p {
font-weight: 400;
font-size: 12px;
line-height: 22px;
width: 205px;
}
img {
margin: 0 18px 20px 0;
}
}
}
}
}
.modal-registration.active {
transform: scale(1);
}