Merge branch 'main' of https://git.itguild.info/apuc/guild_front into feature/refactor-tracker
This commit is contained in:
commit
59301c536c
16
src/App.js
16
src/App.js
@ -106,22 +106,15 @@ const App = () => {
|
|||||||
<Route exact path="/candidate/:id/form" element={<FormPage />} />
|
<Route exact path="/candidate/:id/form" element={<FormPage />} />
|
||||||
<Route path="/:userId/calendar" element={<Calendar />} />
|
<Route path="/:userId/calendar" element={<Calendar />} />
|
||||||
|
|
||||||
<Route exact path="/report" element={<ReportForm />} />
|
|
||||||
<Route path="/report/:id" element={<SingleReportPage />} />
|
<Route path="/report/:id" element={<SingleReportPage />} />
|
||||||
|
|
||||||
<Route exact path="quiz">
|
|
||||||
<Route index element={<QuizPage />} />
|
|
||||||
<Route exact path="test/:uuid" element={<PassingTests />} />
|
|
||||||
<Route exact path="report/:uuid" element={<QuizReportPage />} />
|
|
||||||
</Route>
|
|
||||||
|
|
||||||
<Route exact path="profile">
|
<Route exact path="profile">
|
||||||
<Route index element={<Profile />} />
|
<Route index element={<Profile />} />
|
||||||
<Route exact path="catalog" element={<Home />} />
|
<Route exact path="catalog" element={<Home />} />
|
||||||
<Route exact path="calendar" element={<ProfileCalendar />} />
|
<Route exact path="calendar" element={<ProfileCalendar />} />
|
||||||
<Route exact path="calendar/view/" element={<ProfileCalendar />} />
|
<Route exact path="calendar/report" element={<ReportForm />} />
|
||||||
|
<Route exact path="calendar/view/:date/:id" element={<ViewReport />} />
|
||||||
<Route exact path="summary" element={<Summary />} />
|
<Route exact path="summary" element={<Summary />} />
|
||||||
<Route exact path="view/:date/:id" element={<ViewReport />} />
|
|
||||||
<Route exact path="tracker" element={<Tracker />} />
|
<Route exact path="tracker" element={<Tracker />} />
|
||||||
<Route exact path="statistics/:id" element={<Statistics/>}/>
|
<Route exact path="statistics/:id" element={<Statistics/>}/>
|
||||||
<Route exact path="payouts" element={<Payouts />} />
|
<Route exact path="payouts" element={<Payouts />} />
|
||||||
@ -133,6 +126,11 @@ const App = () => {
|
|||||||
<Route exact path="employees" element={<PartnerCategories />} />
|
<Route exact path="employees" element={<PartnerCategories />} />
|
||||||
<Route exact path="employees/report/:uuid" element={<PartnerEmployeeReport />} />
|
<Route exact path="employees/report/:uuid" element={<PartnerEmployeeReport />} />
|
||||||
<Route exact path="treaties" element={<PartnerTreaties />} />
|
<Route exact path="treaties" element={<PartnerTreaties />} />
|
||||||
|
<Route exact path="quiz">
|
||||||
|
<Route index element={<QuizPage />} />
|
||||||
|
<Route exact path="test/:uuid" element={<PassingTests />} />
|
||||||
|
<Route exact path="report/:uuid" element={<QuizReportPage />} />
|
||||||
|
</Route>
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
@ -60,7 +60,7 @@ const Calendar = () => {
|
|||||||
<img className="calendar__title-img" src={rectangle} alt="img" />
|
<img className="calendar__title-img" src={rectangle} alt="img" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Link to="/report">
|
<Link to="/profile/calendar/report">
|
||||||
<button className="calendar__btn">Заполнить отчет</button>
|
<button className="calendar__btn">Заполнить отчет</button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,6 @@ import "./modalSelect.scss";
|
|||||||
export const ModalSelect = ({ active, children }) => {
|
export const ModalSelect = ({ active, children }) => {
|
||||||
return (
|
return (
|
||||||
<div className={active ? "project__settings active" : "project__settings "}>
|
<div className={active ? "project__settings active" : "project__settings "}>
|
||||||
<span className="project__settings-ellipsis">...</span>
|
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -1,29 +1,30 @@
|
|||||||
.project {
|
.project {
|
||||||
&__settings {
|
&__settings {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
padding: 32px 23px 10px 11px;
|
padding: 0 10px;
|
||||||
background: #e1fccf;
|
background: #e1fccf;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
transform: scale(0);
|
transform: scale(0);
|
||||||
bottom: -40px;
|
bottom: -30px;
|
||||||
right: -120px;
|
right: -130px;
|
||||||
|
|
||||||
@media (max-width: 1050px) {
|
@media (max-width: 1050px) {
|
||||||
right: 10px;
|
right: 5px;
|
||||||
padding-top: 10px;
|
bottom: -30px;
|
||||||
bottom: -75px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-menu {
|
&-menu {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 38px;
|
padding: 5px 0;
|
||||||
|
|
||||||
div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding: 2px 0;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin-right: 12px;
|
width: 12px;
|
||||||
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
p:hover {
|
p:hover {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { NavLink } from "react-router-dom";
|
import { NavLink } from "react-router-dom";
|
||||||
|
|
||||||
import { getProfileInfo } from "@redux/outstaffingSlice";
|
import { getProfileInfo } from "@redux/outstaffingSlice";
|
||||||
@ -9,9 +9,8 @@ import { urlForLocal } from "@utils/helper";
|
|||||||
import avatarMok from "assets/images/avatarMok.png";
|
import avatarMok from "assets/images/avatarMok.png";
|
||||||
|
|
||||||
export const Navigation = () => {
|
export const Navigation = () => {
|
||||||
const dispatch = useDispatch();
|
|
||||||
|
|
||||||
const profileInfo = useSelector(getProfileInfo);
|
const profileInfo = useSelector(getProfileInfo);
|
||||||
|
const currentPath = window.location.pathname;
|
||||||
const [user] = useState(
|
const [user] = useState(
|
||||||
localStorage.getItem("role_status") === "18" ? "partner" : "developer"
|
localStorage.getItem("role_status") === "18" ? "partner" : "developer"
|
||||||
);
|
);
|
||||||
@ -35,7 +34,7 @@ export const Navigation = () => {
|
|||||||
name: "Выплаты"
|
name: "Выплаты"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/Quiz",
|
path: "/quiz",
|
||||||
name: "Тесты"
|
name: "Тесты"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -81,6 +80,7 @@ export const Navigation = () => {
|
|||||||
key={index}
|
key={index}
|
||||||
end
|
end
|
||||||
to={link.path === "/Quiz" ? link.path : `/profile${link.path}`}
|
to={link.path === "/Quiz" ? link.path : `/profile${link.path}`}
|
||||||
|
className={currentPath.includes(link.path) ? "active" : ""}
|
||||||
>
|
>
|
||||||
{link.name}
|
{link.name}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
@ -98,7 +98,7 @@ export const ProfileCalendar = () => {
|
|||||||
{profileInfo.specification} разработчик
|
{profileInfo.specification} разработчик
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Link to="/report">
|
<Link to="/profile/calendar/report">
|
||||||
<button
|
<button
|
||||||
className="calendar__btn"
|
className="calendar__btn"
|
||||||
onClick={() => dispatch(setReportDate(""))}
|
onClick={() => dispatch(setReportDate(""))}
|
||||||
|
@ -96,9 +96,11 @@ export const ProfileCalendarComponent = React.memo(
|
|||||||
)}-${correctDay(new Date(day).getDate())}` === date.created_at
|
)}-${correctDay(new Date(day).getDate())}` === date.created_at
|
||||||
) {
|
) {
|
||||||
if (userId) {
|
if (userId) {
|
||||||
return `../view/${date.created_at}/${userId}`;
|
return `/profile/calendar/view/${date.created_at}/${userId}`;
|
||||||
}
|
}
|
||||||
return `../view/${date.created_at}/${localStorage.getItem("id")}`;
|
return `/profile/calendar/view/${
|
||||||
|
date.created_at
|
||||||
|
}/${localStorage.getItem("id")}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,7 +108,7 @@ export const ProfileCalendarComponent = React.memo(
|
|||||||
return "#";
|
return "#";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "../../report";
|
return "/profile/calendar/report";
|
||||||
}
|
}
|
||||||
|
|
||||||
const prevMonth = () => value.clone().subtract(1, "month");
|
const prevMonth = () => value.clone().subtract(1, "month");
|
||||||
|
@ -109,7 +109,7 @@ export const ProjectTicket = ({ project, index }) => {
|
|||||||
to={`/profile/statistics/${project.id}`}
|
to={`/profile/statistics/${project.id}`}
|
||||||
className="project__statistics"
|
className="project__statistics"
|
||||||
>
|
>
|
||||||
Просмотреть статистику
|
Посмотреть статистику
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<TrackerModal
|
<TrackerModal
|
||||||
@ -133,7 +133,7 @@ export const ProjectTicket = ({ project, index }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src={link}></img>
|
<img src={link}></img>
|
||||||
<p onClick={copyProjectLink(project.id)}>ссылка на проект</p>
|
<p onClick={copyProjectLink(project.id)}>скопировать ссылку</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -80,8 +80,8 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 21px;
|
font-size: 21px;
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
right: 26px;
|
right: 15px;
|
||||||
top: 10px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__avatar {
|
&__avatar {
|
||||||
|
@ -87,10 +87,12 @@ const ReportForm = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
|
setIsFetching(true);
|
||||||
for (let input of inputs) {
|
for (let input of inputs) {
|
||||||
if (!input.task || !input.hours_spent) {
|
if (!input.task || !input.hours_spent) {
|
||||||
setReportSuccess("Заполните задачи");
|
setReportSuccess("Заполните задачи");
|
||||||
setTimeout(() => setReportSuccess(""), 2000);
|
setTimeout(() => setReportSuccess(""), 2000);
|
||||||
|
setIsFetching(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -292,12 +294,16 @@ const ReportForm = () => {
|
|||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="report-form__footer">
|
<div className="report-form__footer">
|
||||||
<button
|
{isFetching ? (
|
||||||
className="report-form__footer-btn"
|
<Loader style={"green"} />
|
||||||
onClick={() => handler()}
|
) : (
|
||||||
>
|
<button
|
||||||
{isFetching ? <Loader /> : "Отправить"}
|
className="report-form__footer-btn"
|
||||||
</button>
|
onClick={() => handler()}
|
||||||
|
>
|
||||||
|
Отправить
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
<p className="report-form__footer-text">
|
<p className="report-form__footer-text">
|
||||||
Всего за день:{" "}
|
Всего за день:{" "}
|
||||||
<span>
|
<span>
|
||||||
|
@ -80,7 +80,9 @@ export const ShortReport = () => {
|
|||||||
<h2 className="viewReport__title">
|
<h2 className="viewReport__title">
|
||||||
Ваши отчеты - <span>просмотр отчета за день</span>
|
Ваши отчеты - <span>просмотр отчета за день</span>
|
||||||
</h2>
|
</h2>
|
||||||
<Link to={`../view/${dateCreate}`}>Посмотреть подробный отчет</Link>
|
<Link to={`/profile/calendar/view/${dateCreate}`}>
|
||||||
|
Посмотреть подробный отчет
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="viewReport__bar">
|
<div className="viewReport__bar">
|
||||||
|
@ -6,7 +6,7 @@ const StarRating = ({
|
|||||||
countStars = 1,
|
countStars = 1,
|
||||||
countActiveStars = 1,
|
countActiveStars = 1,
|
||||||
color = "#52B709",
|
color = "#52B709",
|
||||||
size = 61
|
size = 40
|
||||||
}) => {
|
}) => {
|
||||||
const [shadedStars, setShadedStars] = useState([]);
|
const [shadedStars, setShadedStars] = useState([]);
|
||||||
const [noShadedStars, setNoShadedStars] = useState([]);
|
const [noShadedStars, setNoShadedStars] = useState([]);
|
||||||
|
@ -17,14 +17,14 @@ export const AlertResult = ({ info }) => {
|
|||||||
className="alert-result__text"
|
className="alert-result__text"
|
||||||
style={{ color: successTest ? "#52B709" : "#5B6871" }}
|
style={{ color: successTest ? "#52B709" : "#5B6871" }}
|
||||||
>
|
>
|
||||||
Благодарим Вас за прохождение теста "{info.questionnaire_title}". Ваши
|
Благодарим Вас за прохождение теста "{info.questionnaire_title}".
|
||||||
результаты проверены, готовы пригласить Вас в команду
|
Ваши результаты проверены, готовы пригласить Вас в команду
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{!successTest && (
|
{!successTest && (
|
||||||
<div className="alert-result__column">
|
<div className="alert-result__column">
|
||||||
<button className="alert-result__button quiz-btn">
|
<button className="alert-result__button quiz-btn">
|
||||||
Запросить еще попытку
|
Запросить пересдачу
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -9,7 +9,11 @@ export const CardAvailableTest = ({ title, description, path, status }) => {
|
|||||||
return (
|
return (
|
||||||
<div className="card-available-test">
|
<div className="card-available-test">
|
||||||
<Link
|
<Link
|
||||||
to={status === 2 ? `/quiz/report/${path}` : `/quiz/test/${path}`}
|
to={
|
||||||
|
status === 2
|
||||||
|
? `/profile/quiz/report/${path}`
|
||||||
|
: `/profile/quiz/test/${path}`
|
||||||
|
}
|
||||||
aria-disabled={true}
|
aria-disabled={true}
|
||||||
className="card-available-test__container"
|
className="card-available-test__container"
|
||||||
style={
|
style={
|
||||||
@ -33,7 +37,7 @@ export const CardAvailableTest = ({ title, description, path, status }) => {
|
|||||||
{status === 2 && (
|
{status === 2 && (
|
||||||
<div className="card-available-test__finished">
|
<div className="card-available-test__finished">
|
||||||
<p>Получить отчет по тестированию</p>
|
<p>Получить отчет по тестированию</p>
|
||||||
<Link to={`/quiz/report/${path}`}>Отчет по тесту</Link>
|
<Link to={`/profile/quiz/report/${path}`}>Отчет по тесту</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -35,7 +35,7 @@ export const QuizReport = ({ info }) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="report__column">
|
<div className="report__column">
|
||||||
<div className="report__status-text">Статус:</div>
|
<div className="report__status-text">Статус:</div>
|
||||||
<div className="report__status">Пройдено!</div>
|
<div className="report__status">Пройден!</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,16 +31,14 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
.quiz-btn {
|
.quiz-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
font-family: "Lab Grotesque";
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
// box-shadow: 6px 5px 20px rgba(82, 151, 34, 0.21);
|
box-shadow: 6px 5px 20px rgba(82, 151, 34, 0.21);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
background: #406128;
|
background: #406128;
|
||||||
border-radius: 44px;
|
border-radius: 44px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
outline: none;
|
outline: none;
|
||||||
//border: 2px solid #52b709;
|
|
||||||
border: none;
|
border: none;
|
||||||
transition: 0 all ease 0.8s;
|
transition: 0 all ease 0.8s;
|
||||||
padding: 7px 51px;
|
padding: 7px 51px;
|
||||||
@ -48,11 +46,6 @@ $maxWidthContainer: 1123;
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
line-height: 200%;
|
line-height: 200%;
|
||||||
// &:hover{
|
|
||||||
// text-decoration: none;
|
|
||||||
// color: #52b709;
|
|
||||||
// background: #fff;
|
|
||||||
// }
|
|
||||||
&_back {
|
&_back {
|
||||||
background: #dddddd;
|
background: #dddddd;
|
||||||
color: #000;
|
color: #000;
|
||||||
@ -68,13 +61,11 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.quiz-title_h3 {
|
.quiz-title_h3 {
|
||||||
font-family: "Lab Grotesque";
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
line-height: 156%;
|
line-height: 156%;
|
||||||
color: #52b709;
|
color: #52b709;
|
||||||
}
|
}
|
||||||
//=============================================
|
|
||||||
|
|
||||||
.error-msg {
|
.error-msg {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -140,7 +131,6 @@ $maxWidthContainer: 1123;
|
|||||||
.form-task__group {
|
.form-task__group {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 13px;
|
margin-bottom: 13px;
|
||||||
font-family: "Lab Grotesque";
|
|
||||||
label {
|
label {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@ -312,9 +302,9 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-introduction {
|
.card-introduction {
|
||||||
padding: 0px 25px;
|
padding: 0px 20px;
|
||||||
margin: 0px 0px 50px 0px;
|
margin: 0px 0px 50px 0px;
|
||||||
flex: 0 1 33.333%;
|
flex: 0 1 33%;
|
||||||
@media (max-width: 850px) {
|
@media (max-width: 850px) {
|
||||||
flex: 0 1 50%;
|
flex: 0 1 50%;
|
||||||
}
|
}
|
||||||
@ -324,14 +314,13 @@ $maxWidthContainer: 1123;
|
|||||||
|
|
||||||
&__body {
|
&__body {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 20px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
&__title {
|
&__title {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
line-height: 171%;
|
|
||||||
color: #52b709;
|
color: #52b709;
|
||||||
margin: 0 0 30px 0;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
&__icon {
|
&__icon {
|
||||||
flex: 0 0 25px;
|
flex: 0 0 25px;
|
||||||
@ -343,8 +332,8 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
&__text {
|
&__text {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
line-height: 200%;
|
line-height: 20px;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -352,20 +341,8 @@ $maxWidthContainer: 1123;
|
|||||||
.quiz-passing-information {
|
.quiz-passing-information {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
&__container {
|
|
||||||
// @media (max-width: 600px) {
|
|
||||||
// display: block;
|
|
||||||
// }
|
|
||||||
// @media (max-width: 600px) {
|
|
||||||
// display: block;
|
|
||||||
// }
|
|
||||||
// @media (max-width: 600px) {
|
|
||||||
// display: block;
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
&__main {
|
&__main {
|
||||||
//flex: 1 1 auto;
|
padding: 30px;
|
||||||
padding: 35px 45px;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1.2fr 1.2fr 0.6fr;
|
grid-template-columns: 1fr 1.2fr 1.2fr 0.6fr;
|
||||||
@ -388,7 +365,7 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
&__text {
|
&__text {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
line-height: 167%;
|
line-height: 167%;
|
||||||
color: #6f6f6f;
|
color: #6f6f6f;
|
||||||
span {
|
span {
|
||||||
@ -399,7 +376,7 @@ $maxWidthContainer: 1123;
|
|||||||
&__timer,
|
&__timer,
|
||||||
&__attempt {
|
&__attempt {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 23px;
|
gap: 10px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -448,10 +425,10 @@ $maxWidthContainer: 1123;
|
|||||||
|
|
||||||
&__container {
|
&__container {
|
||||||
display: block;
|
display: block;
|
||||||
@include adaptiv-value("padding-top", 30, 20, 1);
|
@include adaptiv-value("padding-top", 15, 15, 1);
|
||||||
@include adaptiv-value("padding-bottom", 30, 20, 1);
|
@include adaptiv-value("padding-bottom", 15, 15, 1);
|
||||||
@include adaptiv-value("padding-right", 28, 18, 1);
|
@include adaptiv-value("padding-right", 15, 15, 1);
|
||||||
@include adaptiv-value("padding-left", 28, 18, 1);
|
@include adaptiv-value("padding-left", 15, 15, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -463,8 +440,8 @@ $maxWidthContainer: 1123;
|
|||||||
&__top-head {
|
&__top-head {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 19px;
|
gap: 10px;
|
||||||
margin: 0 0 24px 0;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
&__title {
|
&__title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
@ -482,9 +459,8 @@ $maxWidthContainer: 1123;
|
|||||||
|
|
||||||
p {
|
p {
|
||||||
flex: 0 1 66%;
|
flex: 0 1 66%;
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
line-height: 20px;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
@ -508,7 +484,7 @@ $maxWidthContainer: 1123;
|
|||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 13px 16px;
|
padding: 13px 16px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 20px;
|
bottom: 0px;
|
||||||
left: 0;
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -517,8 +493,7 @@ $maxWidthContainer: 1123;
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
p {
|
p {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: 13px;
|
||||||
line-height: 129%;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
@ -577,27 +552,20 @@ $maxWidthContainer: 1123;
|
|||||||
color: #52b709;
|
color: #52b709;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .block-completed-test__text
|
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
max-width: 386px;
|
max-width: 386px;
|
||||||
margin: 0 26px 0 0;
|
margin: 0 26px 0 0;
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
line-height: 200%;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .block-completed-test__button
|
|
||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.report {
|
.report {
|
||||||
// .report__row
|
|
||||||
|
|
||||||
&__row {
|
&__row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -609,36 +577,37 @@ $maxWidthContainer: 1123;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__column
|
|
||||||
|
|
||||||
&__column {
|
&__column {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
flex: 0 1 22%;
|
flex: 0 1 22%;
|
||||||
border-radius: 12px;
|
border-radius: 12px 0 0 12px;
|
||||||
@media (max-width: 1000px) {
|
@media (max-width: 1000px) {
|
||||||
flex: 0 1 50%;
|
flex: 0 1 50%;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
border-radius: 12px 12px 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
height: 128px;
|
height: 90px;
|
||||||
border-radius: 0px 12px 0px 0px;
|
|
||||||
flex: 0 1 26%;
|
flex: 0 1 26%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: #e1fccf;
|
background: #e1fccf;
|
||||||
gap: 21px;
|
gap: 10px;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
flex-direction: column;
|
border-radius: 0 12px 12px 0;
|
||||||
gap: 0;
|
gap: 10px;
|
||||||
}
|
@media (max-width: 1000px) {
|
||||||
@media (max-width: 1000px) {
|
flex: 0 1 50%;
|
||||||
flex: 0 1 50%;
|
}
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
border-radius: 0 0 12px 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__job-title
|
|
||||||
|
|
||||||
&__job-title {
|
&__job-title {
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
@ -646,22 +615,17 @@ $maxWidthContainer: 1123;
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__value
|
|
||||||
|
|
||||||
&__value {
|
&__value {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 52px;
|
font-size: 52px;
|
||||||
line-height: 56%;
|
line-height: 56%;
|
||||||
color: #52b709;
|
color: #52b709;
|
||||||
// .report__value_false
|
|
||||||
|
|
||||||
&_false {
|
&_false {
|
||||||
color: #5b6871;
|
color: #5b6871;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__text
|
|
||||||
|
|
||||||
&__text {
|
&__text {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@ -669,26 +633,20 @@ $maxWidthContainer: 1123;
|
|||||||
color: #000000;
|
color: #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__status-text
|
|
||||||
|
|
||||||
&__status-text {
|
&__status-text {
|
||||||
font-weight: 400;
|
font-weight: 500;
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
line-height: 200%;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
width: 50%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// .report__status
|
|
||||||
|
|
||||||
&__status {
|
&__status {
|
||||||
background: #1458dd;
|
background: #1458dd;
|
||||||
border-radius: 44px;
|
border-radius: 5px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 200%;
|
line-height: 200%;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
padding: 7px 34px;
|
padding: 7px 14px;
|
||||||
max-width: 154px;
|
max-width: 154px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -696,19 +654,19 @@ $maxWidthContainer: 1123;
|
|||||||
.alert-result {
|
.alert-result {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@include adaptiv-value("padding-top", 39, 20, 1);
|
@include adaptiv-value("padding-top", 20, 20, 1);
|
||||||
@include adaptiv-value("padding-bottom", 39, 20, 1);
|
@include adaptiv-value("padding-bottom", 20, 20, 1);
|
||||||
@include adaptiv-value("padding-right", 61, 20, 1);
|
@include adaptiv-value("padding-right", 20, 20, 1);
|
||||||
@include adaptiv-value("padding-left", 61, 20, 1);
|
@include adaptiv-value("padding-left", 20, 20, 1);
|
||||||
background: #fff;
|
background: #fff;
|
||||||
gap: 30px;
|
gap: 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
&__column {
|
&__column {
|
||||||
display: flex;
|
display: flex;
|
||||||
@include adaptiv-value("gap", 44, 14, 1);
|
@include adaptiv-value("gap", 20, 20, 1);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
@ -70,7 +70,7 @@ export const ProfileCandidate = () => {
|
|||||||
<div className="profile-candidate__instructions instructions-candidate">
|
<div className="profile-candidate__instructions instructions-candidate">
|
||||||
<div className="instructions-candidate__container">
|
<div className="instructions-candidate__container">
|
||||||
<div className="instructions-candidate___row">
|
<div className="instructions-candidate___row">
|
||||||
<div className="instructions-candidate__title">Интсрукция:</div>
|
<div className="instructions-candidate__title">Инструкция:</div>
|
||||||
<div className="instructions-candidate__note">
|
<div className="instructions-candidate__note">
|
||||||
<img
|
<img
|
||||||
className="instructions-candidate__icon"
|
className="instructions-candidate__icon"
|
||||||
@ -93,7 +93,7 @@ export const ProfileCandidate = () => {
|
|||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<div className="instructions-candidate__text">
|
<div className="instructions-candidate__text">
|
||||||
Тесты itguild предназначены для того, чтобы подтверждать
|
Тесты ITguild предназначены для того, чтобы подтверждать
|
||||||
навыки, которые вы указали у себя.
|
навыки, которые вы указали у себя.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,6 @@ import { Footer } from "@components/Common/Footer/Footer";
|
|||||||
import { Navigation } from "@components/Navigation/Navigation";
|
import { Navigation } from "@components/Navigation/Navigation";
|
||||||
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs";
|
||||||
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
|
||||||
// import { HeadBottom } from "@components/features/Candidate-lk/HeadBottom";
|
|
||||||
import { BlockCompletedTest } from "@components/features/quiz/BlockCompletedTest";
|
import { BlockCompletedTest } from "@components/features/quiz/BlockCompletedTest";
|
||||||
import { CardIntroduction } from "@components/features/quiz/Card-introduction";
|
import { CardIntroduction } from "@components/features/quiz/Card-introduction";
|
||||||
import { QuizPassingInformation } from "@components/features/quiz/Quiz-passing-information";
|
import { QuizPassingInformation } from "@components/features/quiz/Quiz-passing-information";
|
||||||
@ -43,12 +42,12 @@ export const PassingTests = () => {
|
|||||||
{
|
{
|
||||||
title: "Зачем?",
|
title: "Зачем?",
|
||||||
description:
|
description:
|
||||||
"Тесты itguild предназначены для того, чтобы подтверждать навыки, которые вы указали у себя."
|
"Тесты ITguild предназначены для того, чтобы подтверждать навыки, которые вы указали у себя."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Почему именно тестирование?",
|
title: "Почему именно тестирование?",
|
||||||
description:
|
description:
|
||||||
"Тесты itguild заменяют первое техническое собеседование по любой вакансии."
|
"Тесты ITguild заменяют первое техническое собеседование по любой вакансии."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Какие тесты нужно проходить?",
|
title: "Какие тесты нужно проходить?",
|
||||||
@ -120,12 +119,12 @@ export const PassingTests = () => {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!startTest && (
|
{/*{!startTest && (*/}
|
||||||
<div className="passing-tests-page__block-text block-text">
|
{/* <div className="passing-tests-page__block-text block-text">*/}
|
||||||
ИЛИ <Link to={""}>выполните тестовое задание</Link>, без
|
{/* ИЛИ <Link to={""}>выполните тестовое задание</Link>, без*/}
|
||||||
прохождения тестов
|
{/* прохождения тестов*/}
|
||||||
</div>
|
{/* </div>*/}
|
||||||
)}
|
{/*)}*/}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{completedTest && (
|
{completedTest && (
|
||||||
@ -138,11 +137,6 @@ export const PassingTests = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
{/*<Prompt*/}
|
|
||||||
{/* when={showPrompt}*/}
|
|
||||||
{/* message="Unsaved changes detected, continue?"*/}
|
|
||||||
{/* beforeUnload={true}*/}
|
|
||||||
{/*/>*/}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -144,10 +144,10 @@ export const QuizPage = () => {
|
|||||||
<h1>Анкет нет</h1>
|
<h1>Анкет нет</h1>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="block-text">
|
{/*<div className="block-text">*/}
|
||||||
ИЛИ <Link to={""}>выполните тестовое задание</Link>, без
|
{/* ИЛИ <Link to={""}>выполните тестовое задание</Link>, без*/}
|
||||||
прохождения тестов
|
{/* прохождения тестов*/}
|
||||||
</div>
|
{/*</div>*/}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{selectedCategory && (
|
{selectedCategory && (
|
||||||
|
@ -42,8 +42,8 @@ export const QuizReportPage = () => {
|
|||||||
<ProfileBreadcrumbs
|
<ProfileBreadcrumbs
|
||||||
links={[
|
links={[
|
||||||
{ name: "Главная", link: "/profile-candidate" },
|
{ name: "Главная", link: "/profile-candidate" },
|
||||||
{ name: "Тестирование", link: "/Quiz" },
|
{ name: "Тестирование", link: "/profile/quiz" },
|
||||||
{ name: "Отчет по тестированию", link: "/Quiz/report" }
|
{ name: "Отчет по тестированию", link: "/profile/quiz" }
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<div className="quiz-report-page__title main-title">
|
<div className="quiz-report-page__title main-title">
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
}
|
}
|
||||||
&__block {
|
&__block {
|
||||||
background: #e1fccf;
|
background: #e1fccf;
|
||||||
border-radius: 12px 12px 0px 0px;
|
border-radius: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 18px;
|
font-size: 23px;
|
||||||
line-height: 178%;
|
line-height: 178%;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
padding: 20px 51px;
|
padding: 20px;
|
||||||
margin: 0 0 16px 0;
|
margin: 0 0 16px 0;
|
||||||
}
|
}
|
||||||
&__cards-test {
|
&__cards-test {
|
||||||
|
@ -33,7 +33,7 @@ import project from "assets/icons/trackerProject.svg";
|
|||||||
import tasks from "assets/icons/trackerTasks.svg";
|
import tasks from "assets/icons/trackerTasks.svg";
|
||||||
import archive from "assets/images/archiveIcon.png";
|
import archive from "assets/images/archiveIcon.png";
|
||||||
import mockAvatar from "assets/images/avatarMok.png";
|
import mockAvatar from "assets/images/avatarMok.png";
|
||||||
import downloadExel from "assets/images/downloadExel.svg";
|
import downloadExcel from "assets/images/downloadExcel.svg";
|
||||||
import noProjects from "assets/images/noProjects.png";
|
import noProjects from "assets/images/noProjects.png";
|
||||||
import statusTimeTask from "assets/images/statusTimeTask.svg";
|
import statusTimeTask from "assets/images/statusTimeTask.svg";
|
||||||
|
|
||||||
@ -305,8 +305,8 @@ export const Tracker = () => {
|
|||||||
<p>Сверка пройдена</p>
|
<p>Сверка пройдена</p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img src={downloadExel} alt="#" />
|
<img src={downloadExcel} alt="#" />
|
||||||
<p>Скачать Exel отчет</p>
|
<p>Скачать Excel-отчет</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Link, Navigate, useParams } from "react-router-dom";
|
import { Link, useParams } from "react-router-dom";
|
||||||
|
|
||||||
import { apiRequest } from "@api/request";
|
import { apiRequest } from "@api/request";
|
||||||
|
|
||||||
@ -27,9 +27,11 @@ export const ViewReport = () => {
|
|||||||
const [taskText, setTaskText] = useState([]);
|
const [taskText, setTaskText] = useState([]);
|
||||||
const [difficulties, setDifficulties] = useState([]);
|
const [difficulties, setDifficulties] = useState([]);
|
||||||
const [tomorrowTask, setTomorrowTask] = useState([]);
|
const [tomorrowTask, setTomorrowTask] = useState([]);
|
||||||
|
const [taskId, setTaskId] = useState("");
|
||||||
const [totalHours, setTotalHours] = useState(0);
|
const [totalHours, setTotalHours] = useState(0);
|
||||||
const [currentDay] = useState(new Date());
|
const [currentDay] = useState(new Date());
|
||||||
const [loader, setLoader] = useState(false);
|
const [loader, setLoader] = useState(false);
|
||||||
|
const [deleteLoader, setDeleteLoader] = useState(false);
|
||||||
|
|
||||||
function getReportFromDate(day) {
|
function getReportFromDate(day) {
|
||||||
setLoader(true);
|
setLoader(true);
|
||||||
@ -39,6 +41,7 @@ export const ViewReport = () => {
|
|||||||
apiRequest(`reports/find-by-date?user_id=${params.id}&date=${day}`).then(
|
apiRequest(`reports/find-by-date?user_id=${params.id}&date=${day}`).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
let spendTime = 0;
|
let spendTime = 0;
|
||||||
|
setTaskId(res[0]?.id);
|
||||||
for (const item of res) {
|
for (const item of res) {
|
||||||
if (item.difficulties) {
|
if (item.difficulties) {
|
||||||
setDifficulties((prevArray) => [...prevArray, item.difficulties]);
|
setDifficulties((prevArray) => [...prevArray, item.difficulties]);
|
||||||
@ -65,6 +68,18 @@ export const ViewReport = () => {
|
|||||||
nextReportDay.setDate(nextReportDay.getDate() + 1);
|
nextReportDay.setDate(nextReportDay.getDate() + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function deleteReport() {
|
||||||
|
setDeleteLoader(true);
|
||||||
|
apiRequest(`reports/delete?id=${taskId}`, {
|
||||||
|
method: "DELETE"
|
||||||
|
}).then((res) => {
|
||||||
|
setDeleteLoader(false);
|
||||||
|
if (res) {
|
||||||
|
window.location.replace("/profile/calendar");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function nextDay() {
|
function nextDay() {
|
||||||
getReportFromDate(getCreatedDate(nextReportDay));
|
getReportFromDate(getCreatedDate(nextReportDay));
|
||||||
previousReportDay.setDate(previousReportDay.getDate() + 2);
|
previousReportDay.setDate(previousReportDay.getDate() + 2);
|
||||||
@ -110,22 +125,32 @@ export const ViewReport = () => {
|
|||||||
<img src={arrow} alt="#" />
|
<img src={arrow} alt="#" />
|
||||||
<p>Вернуться</p>
|
<p>Вернуться</p>
|
||||||
</Link>
|
</Link>
|
||||||
{/* <div className="viewReport__bar">
|
{localStorage.getItem("role_status") !== "18" && (
|
||||||
<h3 className="viewReport__bar__date">
|
<div className="viewReport__bar">
|
||||||
{getCorrectDate(dateReport.id)}
|
<button className="viewReport__bar__edit">Редактировать</button>
|
||||||
</h3>
|
{deleteLoader ? (
|
||||||
<p className="viewReport__bar__hours">
|
<Loader style={"green"} />
|
||||||
Вами потрачено на работу:{" "}
|
) : (
|
||||||
<span>
|
<button
|
||||||
{totalHours} {hourOfNum(totalHours)}
|
onClick={deleteReport}
|
||||||
</span>
|
className={
|
||||||
</p>
|
taskText.length
|
||||||
</div> */}
|
? "viewReport__bar__delete"
|
||||||
|
: "viewReport__bar__delete disable"
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Удалить отчет
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="viewReport__switch-date">
|
<div className="viewReport__switch-date">
|
||||||
<div onClick={() => previousDay()}>
|
<div onClick={() => previousDay()}>
|
||||||
<Link
|
<Link
|
||||||
to={`../view/${getCreatedDate(previousReportDay)}/${params.id}`}
|
to={`/profile/calendar/view/${getCreatedDate(
|
||||||
|
previousReportDay
|
||||||
|
)}/${params.id}`}
|
||||||
>
|
>
|
||||||
<div className="viewReport__switch-date__prev switch-date">
|
<div className="viewReport__switch-date__prev switch-date">
|
||||||
<img src={arrowSwitchDate} alt="arrow" />
|
<img src={arrowSwitchDate} alt="arrow" />
|
||||||
@ -141,7 +166,11 @@ export const ViewReport = () => {
|
|||||||
getCreatedDate(currentDay) === params.date ? "disable" : ""
|
getCreatedDate(currentDay) === params.date ? "disable" : ""
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<Link to={`../view/${getCreatedDate(nextReportDay)}/${params.id}`}>
|
<Link
|
||||||
|
to={`/profile/calendar/view/${getCreatedDate(nextReportDay)}/${
|
||||||
|
params.id
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<div className={`viewReport__switch-date__next switch-date`}>
|
<div className={`viewReport__switch-date__next switch-date`}>
|
||||||
<img src={arrowSwitchDate} alt="arrow" />
|
<img src={arrowSwitchDate} alt="arrow" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,71 +64,34 @@
|
|||||||
height: 72px;
|
height: 72px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
@media (max-width: 540px) {
|
button {
|
||||||
padding: 10px 15px;
|
|
||||||
height: 60px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
|
||||||
column-gap: 0;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__date {
|
|
||||||
font-weight: 500;
|
|
||||||
font-size: 22px;
|
|
||||||
line-height: 32px;
|
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|
||||||
@media (max-width: 660px) {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 490px) {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__hours {
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
|
font-weight: 500;
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
color: #000000;
|
padding: 8px 24px;
|
||||||
|
|
||||||
@media (max-width: 660px) {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
color: #52B709;
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__progressBar {
|
&__edit {
|
||||||
max-width: 390px;
|
background: #E1FCCF;
|
||||||
width: 100%;
|
border-radius: 44px;
|
||||||
background: #F1F1F1;
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__delete {
|
||||||
|
background: white;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
height: 8px;
|
border: 1px dashed #8BCC60;
|
||||||
position: relative;
|
|
||||||
|
|
||||||
span {
|
|
||||||
position: absolute;
|
|
||||||
height: 100%;
|
|
||||||
left: 0;
|
|
||||||
width: 60%;
|
|
||||||
background: #52B709;
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__total {
|
.disable {
|
||||||
font-weight: 400;
|
pointer-events: none;
|
||||||
font-size: 12px;
|
opacity: 0.5;
|
||||||
line-height: 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
max-width: 150px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
Loading…
Reference in New Issue
Block a user