fixed/components #31

Merged
MaxOvs19 merged 11 commits from fixed/components into main 2024-04-15 21:11:58 +03:00
6 changed files with 208 additions and 177 deletions
Showing only changes of commit 75cf13d945 - Show all commits

View File

@ -95,11 +95,21 @@ export const ProfileCalendar = () => {
alt="avatar" alt="avatar"
/> />
<p className="summary__name"> <p className="summary__name">
{profileInfo?.fio || profileInfo?.username},{" "} {profileInfo?.fio || profileInfo?.username}{" "}
{profileInfo.specification} разработчик {profileInfo.specification}
</p> </p>
<hr />
<div className="summary__direction">Front End</div>
<div className="summary__level">Middle+</div>
</div> </div>
<Link to="/profile/calendar/report"> <div className="summary__skill">
<p>Ключевые навыки:</p>
<div>Java</div>
<div>Java</div>
<div>Solid</div>
<div>Java</div>
</div>
{/* <Link to="/profile/calendar/report">
<button <button
className="calendar__btn" className="calendar__btn"
onClick={() => { onClick={() => {
@ -109,7 +119,7 @@ export const ProfileCalendar = () => {
> >
Заполнить отчет Заполнить отчет
</button> </button>
</Link> </Link> */}
</div> </div>
{loader ? ( {loader ? (
<div className="loader__wrapper"> <div className="loader__wrapper">

View File

@ -22,6 +22,25 @@
@media (max-width: 500px) { @media (max-width: 500px) {
padding-right: 5px; padding-right: 5px;
} }
.summary__skill {
color: #6f6f6f;
font-size: 14px;
font-weight: 300;
display: flex;
flex-direction: row;
align-items: center;
column-gap: 10px;
div {
font-size: 12px;
font-weight: 400;
border: #8dc63f 0.5px solid;
border-radius: 44px;
padding: 3px 20px;
}
}
} }
.loader__wrapper { .loader__wrapper {

View File

@ -116,8 +116,8 @@ export const Summary = () => {
alt="avatar" alt="avatar"
/> />
<p className="summary__name"> <p className="summary__name">
{profileInfo?.fio || profileInfo?.username},{" "} {profileInfo?.fio || profileInfo?.username}{" "}
{profileInfo.specification} разработчик {profileInfo.specification}
</p> </p>
<hr /> <hr />
<div className="summary__direction">Front End</div> <div className="summary__direction">Front End</div>

View File

@ -36,6 +36,7 @@
} }
&__info { &__info {
width: 100%;
min-height: 110px; min-height: 110px;
background: white; background: white;
border-radius: 12px; border-radius: 12px;
@ -64,6 +65,12 @@
align-items: center; align-items: center;
column-gap: 20px; column-gap: 20px;
hr {
background-color: #00000081;
height: 30px;
width: 1px;
}
@media (max-width: 825px) { @media (max-width: 825px) {
column-gap: 20px; column-gap: 20px;
} }
@ -131,6 +138,7 @@
border-radius: 44px; border-radius: 44px;
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
padding: 5px 17px;
} }
&__git { &__git {

View File

@ -170,6 +170,10 @@ export const ViewReport = () => {
</div> </div>
)} )}
</div> </div>
{loader && <Loader width={75} height={75} />}
{Boolean(taskText.length) && (
<div className="view-report__content">
<div className="view-report__switch-date"> <div className="view-report__switch-date">
<div onClick={() => previousDay()}> <div onClick={() => previousDay()}>
<Link <Link
@ -192,9 +196,9 @@ export const ViewReport = () => {
}`} }`}
> >
<Link <Link
to={`/profile/calendar/view/${getCreatedDate(nextReportDay)}/${ to={`/profile/calendar/view/${getCreatedDate(
params.id nextReportDay
}`} )}/${params.id}`}
> >
<div className={`view-report__switch-date__next switch-date`}> <div className={`view-report__switch-date__next switch-date`}>
<img src={arrowSwitchDate} alt="arrow" /> <img src={arrowSwitchDate} alt="arrow" />
@ -202,55 +206,36 @@ export const ViewReport = () => {
</Link> </Link>
</div> </div>
</div> </div>
{loader && <Loader width={75} height={75} />} <div className="view-report__done">
{Boolean(taskText.length) && ( <h2>Выполненные задачи</h2>
<div className="view-report__content">
<div className="table__container">
<table className="view-report__done">
<thead>
<tr>
<th>
<p>Выполненные задачи</p>
</th>
<th>
<p>Время</p>
</th>
</tr>
</thead>
<tbody>
{taskText.length && {taskText.length &&
taskText.map((task, index) => { taskText.map((task, index) => {
return ( return (
<tr key={task.id}> <div className="view-report__done-task" key={task.id}>
<td> <div>
<p> <p>
{index + 1}. {task.task} {index + 1}. {task.task}
</p> </p>
</td> </div>
<td>
<div className="view-report__done__hours__item"> <div className="view-report__done__hours__item">
<span>{Math.floor(task.hours)}</span> <span>{Math.floor(task.hours)}</span>
<p className="hours"> <p className="hours">
{hourOfNum(Math.floor(task.hours))} / {hourOfNum(Math.floor(task.hours))}
</p> </p>
</div> </div>
</td> <div>Задача ( On Review ) - Уведомления </div>
</tr> </div>
); );
})} })}
<tr>
<td></td> <p className="view-report__done-total-hours">
<td> Всего: {totalHours} <span>/ {hourOfNum(totalHours)}</span>
<span> </p>
Всего: {totalHours} {hourOfNum(totalHours)}
</span>
</td>
</tr>
</tbody>
</table>
</div> </div>
<div className="view-report__addition">
{Boolean(difficulties.length) && ( {Boolean(difficulties.length) && (
<div className="view-report__item"> <div className="view-report__addition-item">
<h3>Возникшие сложности</h3> <h3>Возникшие сложности</h3>
{difficulties.map((item, index) => { {difficulties.map((item, index) => {
return <p key={index}>{item}</p>; return <p key={index}>{item}</p>;
@ -258,7 +243,7 @@ export const ViewReport = () => {
</div> </div>
)} )}
{Boolean(tomorrowTask.length) && ( {Boolean(tomorrowTask.length) && (
<div className="view-report__item"> <div className="view-report__addition-item">
<h3>Что планируется сделать завтра?</h3> <h3>Что планируется сделать завтра?</h3>
{tomorrowTask.map((item, index) => { {tomorrowTask.map((item, index) => {
return <p key={index}>{item}</p>; return <p key={index}>{item}</p>;
@ -266,6 +251,7 @@ export const ViewReport = () => {
</div> </div>
)} )}
</div> </div>
</div>
)} )}
{!Boolean(taskText.length) && !loader && ( {!Boolean(taskText.length) && !loader && (
<div className="view-report__no-task"> <div className="view-report__no-task">

View File

@ -16,6 +16,12 @@
} }
} }
&__content {
background-color: #ffffff;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
&__info { &__info {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -60,7 +66,8 @@
display: flex; display: flex;
margin-top: 20px; margin-top: 20px;
background: #ffffff; background: #ffffff;
border-radius: 12px; border-top-left-radius: 12px;
border-top-right-radius: 12px;
padding: 20px 33px; padding: 20px 33px;
align-items: center; align-items: center;
column-gap: 20px; column-gap: 20px;
@ -121,10 +128,10 @@
&__switch-date { &__switch-date {
display: flex; display: flex;
margin: 20px 0;
justify-content: center;
column-gap: 30px; column-gap: 30px;
align-items: center; align-items: center;
padding: 20px 20px 20px 30px;
border-bottom: #eeeeee 1px solid;
@media (max-width: 500px) { @media (max-width: 500px) {
column-gap: 0; column-gap: 0;
@ -132,17 +139,16 @@
} }
p { p {
font-weight: 400; font-weight: 500;
font-size: 18px; font-size: 22px;
line-height: 32px; color: #2e3a59;
color: #000000;
} }
.switch-date { .switch-date {
width: 48px; width: 20px;
height: 48px; height: 47px;
background: #8dc63f; background-color: #e5f1fb;
border-radius: 50px; border-radius: 5px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -186,6 +192,34 @@
border-collapse: separate; border-collapse: separate;
border-spacing: 28px 0; border-spacing: 28px 0;
h2 {
color: #1458dd;
font-size: 20px;
font-weight: 500;
padding: 35px;
}
&-task {
display: grid;
grid-template-columns: 40% 15% 30%;
align-items: center;
font-size: 15px;
font-weight: 500;
color: #111112;
justify-content: space-evenly;
margin: 0 0 20px 0;
div {
background-color: #f4f7ff;
height: 61px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
padding: 10px 20px;
}
}
@media (max-width: 1205px) { @media (max-width: 1205px) {
display: grid; display: grid;
border-collapse: collapse; border-collapse: collapse;
@ -309,57 +343,17 @@
} }
&__item { &__item {
display: flex;
column-gap: 25px;
align-items: center;
min-width: 155px;
.hours {
font-size: 15px;
@media (max-width: 1170px) {
font-size: 13px;
text-align: center;
}
}
@media (max-width: 900px) {
column-gap: 0;
justify-content: space-between;
min-width: auto;
width: 100%;
}
@media (max-width: 775px) {
flex-direction: column;
justify-content: center;
row-gap: 10px;
}
span { span {
max-width: 48px;
height: 48px;
background: #8dc63f;
border-radius: 50px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700; font-weight: 700;
font-size: 22px; font-size: 20px;
line-height: 32px;
color: #000000; color: #000000;
width: 100%; margin: 5px;
@media (max-width: 900px) {
max-width: 40px;
height: 40px;
}
} }
p { p {
font-weight: 400; font-weight: 400;
font-size: 12px; font-size: 15px;
line-height: 32px; color: #6f6f6f;
} }
} }
@ -369,25 +363,42 @@
line-height: 32px; line-height: 32px;
} }
} }
&-total-hours {
color: #000000;
font-size: 20px;
font-weight: 500;
margin: 35px 0 0 30px;
span {
font-weight: 400;
font-size: 15px;
color: #6f6f6f;
}
}
} }
&__item { &__addition {
display: grid;
grid-template-columns: 55% 45%;
column-gap: 15px;
padding: 35px;
&-item {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
row-gap: 10px; row-gap: 10px;
background: #ffffff; background-color: #f4f7ff;
border-radius: 12px; border-radius: 10px;
margin: 20px 0;
padding: 15px; padding: 15px;
h3 { h3 {
color: #1458dd;
font-weight: 500; font-weight: 500;
font-size: 22px; font-size: 20px;
line-height: 32px;
@media (max-width: 650px) { @media (max-width: 650px) {
font-size: 16px; font-size: 16px;
line-height: 20px;
} }
} }
@ -400,9 +411,6 @@
} }
} }
} }
&__item:last-child {
margin-bottom: 0;
} }
&__no-task { &__no-task {