2023-05-24 13:49:09 +03:00
|
|
|
|
import React, { useState } from "react";
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import { useDispatch } from "react-redux";
|
2023-05-24 13:49:09 +03:00
|
|
|
|
import { Link } from "react-router-dom";
|
|
|
|
|
import { Navigate } from "react-router-dom";
|
2023-03-16 15:10:53 +03:00
|
|
|
|
|
2023-05-30 10:54:47 +03:00
|
|
|
|
import { setPartnerEmployees } from "@redux/outstaffingSlice";
|
2023-03-23 14:00:34 +03:00
|
|
|
|
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import { Footer } from "@components/Common/Footer/Footer";
|
|
|
|
|
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
|
|
|
|
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
|
|
|
|
|
|
|
|
|
import rightArrow from "assets/icons/arrows/arrowRight.svg";
|
|
|
|
|
import avatarImg from "assets/images/avatarMok.png";
|
|
|
|
|
import AdminImg from "assets/images/partnerProfile/PersonalAdmin.svg";
|
2023-05-30 10:54:47 +03:00
|
|
|
|
import ArchitectureImg from "assets/images/partnerProfile/PersonalArchitecture.svg";
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import CopyImg from "assets/images/partnerProfile/PersonalCopy.svg";
|
2023-05-30 10:54:47 +03:00
|
|
|
|
import DesignImg from "assets/images/partnerProfile/PersonalDesign.svg";
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import FrontendImg from "assets/images/partnerProfile/PersonalFrontend.svg";
|
2023-05-30 10:54:47 +03:00
|
|
|
|
import ManageImg from "assets/images/partnerProfile/PersonalMng.svg";
|
|
|
|
|
import SmmImg from "assets/images/partnerProfile/PersonalSMM.svg";
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import TestImg from "assets/images/partnerProfile/PersonalTesters.svg";
|
|
|
|
|
import BackEndImg from "assets/images/partnerProfile/personalBackEnd.svg";
|
2023-03-16 15:10:53 +03:00
|
|
|
|
|
2023-05-24 13:49:09 +03:00
|
|
|
|
import { Navigation } from "../../components/Navigation/Navigation";
|
2023-05-31 08:36:15 +03:00
|
|
|
|
import "./partnerСategories.scss";
|
2023-03-16 15:10:53 +03:00
|
|
|
|
|
2023-03-23 14:00:34 +03:00
|
|
|
|
export const PartnerCategories = () => {
|
2023-05-24 13:49:09 +03:00
|
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
if (localStorage.getItem("role_status") !== "18") {
|
|
|
|
|
return <Navigate to="/profile" replace />;
|
|
|
|
|
}
|
2023-03-16 15:10:53 +03:00
|
|
|
|
|
2023-05-24 13:49:09 +03:00
|
|
|
|
const [personalInfoItems] = useState([
|
|
|
|
|
{
|
|
|
|
|
title: "Backend разработчики",
|
|
|
|
|
link: "/profile/categories/employees",
|
|
|
|
|
description:
|
|
|
|
|
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
|
|
|
|
|
available: true,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: BackEndImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Frontend разработчики",
|
|
|
|
|
link: "/profile/categories/employees",
|
|
|
|
|
description:
|
|
|
|
|
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
|
|
|
|
|
available: true,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: FrontendImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Архитектура проектов",
|
|
|
|
|
link: "/profile/categories/employees",
|
|
|
|
|
description: "Потоки данных ER ERP CRM CQRS UML BPMN",
|
|
|
|
|
available: true,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: ArchitectureImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Дизайн проектов",
|
|
|
|
|
link: "/profile/categories/employees",
|
|
|
|
|
description:
|
|
|
|
|
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
|
|
|
|
|
available: true,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: DesignImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Тестирование проектов",
|
|
|
|
|
link: "/profile/add-request",
|
|
|
|
|
description: "SQL Postman TestRail Kibana Ручное тестирование",
|
|
|
|
|
available: false,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: TestImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Администрирование проектов",
|
|
|
|
|
link: "/profile/add-request",
|
|
|
|
|
description: "DevOps ELK Kubernetes Docker Bash Apache Oracle Git",
|
|
|
|
|
available: false,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: AdminImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Управление проектом",
|
|
|
|
|
link: "/profile/add-request",
|
|
|
|
|
description: "Scrum Kanban Agile Miro CustDev",
|
|
|
|
|
available: false,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: ManageImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Копирайтинг проектов",
|
|
|
|
|
link: "/profile/add-request",
|
|
|
|
|
description: "Теги Заголовок H1 Дескриптор Абзац Сценарий",
|
|
|
|
|
available: false,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: CopyImg
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "Реклама и SMM",
|
|
|
|
|
link: "/profile/add-request",
|
|
|
|
|
description:
|
|
|
|
|
"Java PHP Python C# React Vue.js NodeJs Golang Ruby JavaScript",
|
|
|
|
|
available: false,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
img: SmmImg
|
|
|
|
|
}
|
2023-05-24 13:49:09 +03:00
|
|
|
|
]);
|
2023-03-23 14:00:34 +03:00
|
|
|
|
|
2023-05-24 13:49:09 +03:00
|
|
|
|
const [mokPersons] = useState([
|
|
|
|
|
{
|
|
|
|
|
personAvatar: avatarImg,
|
|
|
|
|
name: "Макаренко Дмитрий",
|
|
|
|
|
qualification: "PHP Backend - разработчик",
|
|
|
|
|
level: "Middle",
|
|
|
|
|
project: "Админка НВД Консалтинг",
|
|
|
|
|
tasks_in_progress: 5,
|
|
|
|
|
month_hours: 140,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
id: 1
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
personAvatar: avatarImg,
|
|
|
|
|
name: "Макаренко Дмитрий",
|
|
|
|
|
qualification: "PHP Backend - разработчик",
|
|
|
|
|
level: "Middle",
|
|
|
|
|
project: "Админка НВД Консалтинг",
|
|
|
|
|
tasks_in_progress: 5,
|
|
|
|
|
month_hours: 140,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
id: 2
|
2023-05-24 13:49:09 +03:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
personAvatar: avatarImg,
|
|
|
|
|
name: "Макаренко Дмитрий",
|
|
|
|
|
qualification: "PHP Backend - разработчик",
|
|
|
|
|
level: "Middle",
|
|
|
|
|
project: "Админка НВД Консалтинг",
|
|
|
|
|
tasks_in_progress: 5,
|
|
|
|
|
month_hours: 140,
|
2023-12-19 17:36:30 +03:00
|
|
|
|
id: 3
|
|
|
|
|
}
|
2023-05-24 13:49:09 +03:00
|
|
|
|
]);
|
|
|
|
|
return (
|
|
|
|
|
<div className="partnerCategories">
|
|
|
|
|
<ProfileHeader />
|
|
|
|
|
<Navigation />
|
|
|
|
|
<div className="container">
|
|
|
|
|
<ProfileBreadcrumbs
|
|
|
|
|
links={[
|
|
|
|
|
{ name: "Главная", link: "/profile" },
|
2023-12-19 17:36:30 +03:00
|
|
|
|
{ name: "Данные моего персонала", link: "/profile/categories" }
|
2023-05-24 13:49:09 +03:00
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
<h2 className="partnerCategories__title">Данные персонала</h2>
|
|
|
|
|
<div className="partnerCategories__items">
|
|
|
|
|
{personalInfoItems.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<Link
|
|
|
|
|
to={item.link}
|
|
|
|
|
key={index}
|
|
|
|
|
className={
|
|
|
|
|
item.available
|
|
|
|
|
? "partnerCategories__item item"
|
|
|
|
|
: "partnerCategories__item item item__disable"
|
|
|
|
|
}
|
|
|
|
|
onClick={() => {
|
|
|
|
|
dispatch(setPartnerEmployees(mokPersons));
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div className="item__title">
|
|
|
|
|
<img src={item.img} alt={item.title} />
|
|
|
|
|
<h4>{item.title}</h4>
|
2023-03-16 15:10:53 +03:00
|
|
|
|
</div>
|
2023-05-24 13:49:09 +03:00
|
|
|
|
<div className="item__info">
|
|
|
|
|
<p>{item.description}</p>
|
|
|
|
|
<div className="more">
|
|
|
|
|
<img src={rightArrow} alt="arrow" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{!item.available && (
|
|
|
|
|
<div className="item__disableHover">
|
|
|
|
|
<p>У вас нет персонала из категории</p>
|
|
|
|
|
<button>Подобрать</button>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</Link>
|
|
|
|
|
);
|
|
|
|
|
})}
|
2023-03-16 15:10:53 +03:00
|
|
|
|
</div>
|
2023-05-24 13:49:09 +03:00
|
|
|
|
</div>
|
|
|
|
|
<Footer />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|