layout tracker

This commit is contained in:
Никита Губарь 2024-03-22 16:31:59 +03:00
parent c14590a0cb
commit c9dafd95a9
5 changed files with 61 additions and 19 deletions

View File

@ -403,7 +403,6 @@ export const TrackerModal = ({
} else { } else {
setActive(false); setActive(false);
setEmailWorker(""); setEmailWorker("");
// const newParticipant = response.data;
dispatch(addPersonToProject(response)); dispatch(addPersonToProject(response));
showNotification({ showNotification({
show: true, show: true,

View File

@ -101,8 +101,11 @@ export const ProjectTicket = ({ project, index }) => {
alt="avatar" alt="avatar"
className="project__avatar" className="project__avatar"
/> />
<div>
<p>Создатель проекта</p>
<span>{project.owner_info.fio}</span> <span>{project.owner_info.fio}</span>
</div> </div>
</div>
</Link> </Link>
{/* <Link {/* <Link
@ -112,6 +115,11 @@ export const ProjectTicket = ({ project, index }) => {
Посмотреть статистику Посмотреть статистику
</Link> */} </Link> */}
<span className="project-stats" onClick={() => {}}>
Просмотреть <br />
статистику проекта
</span>
<span <span
className="menu-settings" className="menu-settings"
onClick={() => { onClick={() => {

View File

@ -2,7 +2,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
width: 300px; width: 22%;
height: 170px;
background: #f1f1f1; background: #f1f1f1;
border-radius: 12px; border-radius: 12px;
@ -29,7 +30,7 @@
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: 18px; font-size: 18px;
color: #111112; color: #111112;
margin-bottom: 10px; margin: 0 0 15px 0;
&:hover { &:hover {
color: black; color: black;
@ -44,14 +45,15 @@
p { p {
color: #6f6f6f; color: #6f6f6f;
margin-bottom: 0; margin-bottom: 0;
font-size: 12px; font-size: 9px;
font-weight: 500; font-weight: 300;
line-height: 17px; line-height: 17px;
} }
span { span {
color: blue; color: blue;
font-size: 15px; font-size: 15px;
font-weight: 400;
} }
.count { .count {
@ -80,18 +82,29 @@
} }
} }
&-stats {
font-size: 12px;
font-weight: 300;
line-height: 17px;
text-decoration: underline;
color: #678eda;
position: absolute;
left: 18px;
bottom: 10px;
}
.menu-settings { .menu-settings {
position: absolute; position: absolute;
font-size: 30px; font-size: 30px;
color: #6f6f6f; color: #6f6f6f;
right: 15px; right: 15px;
top: -10px; bottom: 10px;
} }
&__avatar { &__avatar {
width: 25px; width: 30px;
height: 25px; height: 30px;
margin-right: 10px; margin: 0 10px 0 0;
} }
&__open-tracker { &__open-tracker {

View File

@ -225,8 +225,16 @@ export const Tracker = () => {
setModalCreateProject(true); setModalCreateProject(true);
}} }}
> >
<p className="create-project-btn__text">
Добавить новый проект
</p>
<div className="create-project-btn__content">
<img src={addProjectImg} alt="#"></img> <img src={addProjectImg} alt="#"></img>
<p className="create-project-btn__text">Добавить проект</p> <p>
Ставьте задачи, следите за прогрессом, ведите учёт
рабочего времени
</p>
</div>
</BaseButton> </BaseButton>
</> </>
)} )}

View File

@ -162,21 +162,35 @@
} }
.create-project-btn { .create-project-btn {
width: 300px; width: 22%;
height: 83px; height: 170px;
border-radius: 12px; border-radius: 12px;
background: #ecf8e5; background: #ecf8e5;
color: #000000; color: #000000;
display: flex; display: flex;
align-items: center; flex-direction: column;
justify-content: center; justify-content: flex-start;
transition: 0.4s; transition: 0.4s;
padding: 10px 10px;
&__text { &__text {
text-align: left; color: #1458dd;
font-weight: 400; text-align: center;
font-weight: 700;
font-size: 18px; font-size: 18px;
margin-left: 15px; margin: 0 0 25px 0;
}
&__content {
display: flex;
align-items: center;
margin: 0 20px 0 20px;
font-size: 10px;
font-weight: 400;
img {
margin: 0 20px 0 0;
}
} }
&:hover { &:hover {