Fixed archive and select modal

This commit is contained in:
MaxOvs19 2023-10-10 19:29:08 +03:00
parent fe2c45cb22
commit be411ffef2
4 changed files with 95 additions and 17 deletions

View File

@ -14,7 +14,7 @@
&__content { &__content {
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: 10px;
padding: 25px; padding: 25px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -117,3 +117,17 @@
.modal-layout.active { .modal-layout.active {
transform: scale(1); transform: scale(1);
} }
.createProject {
background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%);
.title-project {
margin-top: 20px;
}
.button-add {
margin-top: 8px;
}
.exit {
top: 16px;
right: 15px;
}
}

View File

@ -5,13 +5,13 @@
background: #e1fccf; background: #e1fccf;
border-radius: 12px; border-radius: 12px;
transform: scale(0); transform: scale(0);
bottom: -148px; bottom: -90px;
right: -120px; right: -120px;
@media (max-width: 1050px) { @media (max-width: 1050px) {
right: 10px; right: 10px;
padding-top: 10px; padding-top: 10px;
bottom: -160px; bottom: -75px;
} }
&-menu { &-menu {

View File

@ -24,6 +24,7 @@ import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader";
import ProjectTiket from "@components/ProjectTiket/ProjectTiket"; import ProjectTiket from "@components/ProjectTiket/ProjectTiket";
import addProjectImg from "assets/icons/addProjectImg.svg"; import addProjectImg from "assets/icons/addProjectImg.svg";
import arrowViewReport from "assets/icons/arrows/arrowViewReport.svg";
import search from "assets/icons/serchIcon.png"; import search from "assets/icons/serchIcon.png";
import project from "assets/icons/trackerProject.svg"; import project from "assets/icons/trackerProject.svg";
import tasks from "assets/icons/trackerTasks.svg"; import tasks from "assets/icons/trackerTasks.svg";
@ -300,6 +301,21 @@ export const Tracker = () => {
{`${filterCompleteTasks.length} {`${filterCompleteTasks.length}
${caseOfNum(filterCompleteTasks.length, "tasks")}`} ${caseOfNum(filterCompleteTasks.length, "tasks")}`}
</p> </p>
<div className="archive__tasks-period">
<div className="buttons-month">
<button>
<img src={arrowViewReport} alt="<"></img>
</button>
<button>
<img src={arrowViewReport} alt=">"></img>
</button>
</div>
<div className="month-period">
<h2>Сентябрь,</h2>
<h3>2023</h3>
</div>
</div>
<div className="archive__tasks__search"> <div className="archive__tasks__search">
<img src={search} alt="search" /> <img src={search} alt="search" />
<input <input

View File

@ -1356,23 +1356,25 @@
padding: 0 20px; padding: 0 20px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
column-gap: 28px; flex-direction: column;
@media (max-width: 1100px) { // column-gap: 28px;
flex-direction: column;
row-gap: 20px;
}
@media (max-width: 650px) { // @media (max-width: 1100px) {
padding-bottom: 20px; // flex-direction: column;
} // row-gap: 20px;
// }
// @media (max-width: 650px) {
// padding-bottom: 20px;
// }
.archive { .archive {
&__title { &__title {
padding-bottom: 8px; padding-bottom: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
color: #1458dd; color: #000;
min-height: 48px; min-height: 48px;
h3 { h3 {
@ -1406,7 +1408,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
row-gap: 15px; row-gap: 15px;
max-height: 400px; // max-height: 400px;
overflow-y: auto; overflow-y: auto;
margin-right: -16px; margin-right: -16px;
padding-right: 10px; padding-right: 10px;
@ -1513,15 +1515,61 @@
} }
&__tasks { &__tasks {
min-height: 400px; // min-height: 400px;
max-height: 450px; // max-height: 450px;
padding-right: 15px; padding-right: 15px;
width: 65%; // width: 65%;
@media (max-width: 1100px) { @media (max-width: 1100px) {
width: 100%; width: 100%;
} }
&-period {
display: flex;
align-items: center;
margin-left: 73px;
.buttons-month {
display: flex;
gap: 34px;
button {
width: 30px;
height: 30px;
background-color: #8dc63f;
border-radius: 15px;
border: none;
img {
width: 14px;
height: 14px;
}
&:first-child {
transform: rotate(-180deg);
}
}
}
.month-period {
display: flex;
flex-direction: row;
align-items: center;
margin-left: 62px;
h2 {
color: #1458dd;
}
h3 {
color: #252c32;
font-size: 18px;
font-weight: 700;
margin-left: 5px;
}
}
}
&__search { &__search {
margin-left: auto; margin-left: auto;
padding: 6px 12px; padding: 6px 12px;
@ -1569,7 +1617,7 @@
} }
&__projects { &__projects {
display: flex; display: none;
flex-direction: column; flex-direction: column;
width: 33%; width: 33%;
min-height: 400px; min-height: 400px;