Merge pull request #157 from apuc/fixed-pages

Fixed pages(Bugs in tracker page)
This commit is contained in:
MaxOvs19 2023-11-29 22:21:46 +03:00 committed by GitHub
commit 690daba9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 76 additions and 33 deletions

View File

@ -55,6 +55,7 @@ import "./assets/fonts/stylesheet.css";
import "bootstrap/dist/css/bootstrap.min.css"; import "bootstrap/dist/css/bootstrap.min.css";
const App = () => { const App = () => {
const notification = useSelector(getNotification) const notification = useSelector(getNotification)
return ( return (
@ -79,6 +80,7 @@ const App = () => {
path="/tracker/project/:id" path="/tracker/project/:id"
element={<ProjectTracker />} element={<ProjectTracker />}
/> />
<Route exact path="/auth-candidate" element={<AuthForCandidate />} /> <Route exact path="/auth-candidate" element={<AuthForCandidate />} />
<Route <Route
exact exact
@ -135,6 +137,8 @@ const App = () => {
element={<PartnerEmployees />} element={<PartnerEmployees />}
/> />
</Route> </Route>
<Route exact path="profile-candidate/:id"> <Route exact path="profile-candidate/:id">
<Route index element={<ProfileCandidate />} /> <Route index element={<ProfileCandidate />} />
</Route> </Route>

View File

@ -55,7 +55,7 @@
margin-bottom: 54px; margin-bottom: 54px;
span { span {
color: #8DC63F; color: #8dc63f;
font-size: 50px; font-size: 50px;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
@ -193,7 +193,7 @@
&__reset { &__reset {
color: #000000; color: #000000;
font-size: 13px; font-size: 15px;
line-height: 16px; line-height: 16px;
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
@ -208,7 +208,7 @@
span { span {
cursor: pointer; cursor: pointer;
color: #52B709; color: #52b709;
font-weight: 700; font-weight: 700;
} }
} }

View File

@ -25,24 +25,10 @@ export const AuthHeader = () => {
</NavLink> </NavLink>
</li> </li>
<li> <li>
<a <NavLink to={"/auth"}>Кабинет разработчика</NavLink>
onClick={(e) => {
e.preventDefault();
scrollToForm();
}}
>
Кабинет разработчика
</a>
</li> </li>
<li> <li>
<a <NavLink to={"/tracker-intro"}>Трекер</NavLink>
onClick={(e) => {
e.preventDefault();
scrollToForm();
}}
>
Трекер
</a>
</li> </li>
<li> <li>
<NavLink to={"/auth-candidate"} className="candidate"> <NavLink to={"/auth-candidate"} className="candidate">

View File

@ -12,7 +12,7 @@
.acceptModal { .acceptModal {
border-radius: 20px; border-radius: 20px;
background: linear-gradient(180deg, #FFF 0%, #EBEBEB 100%); background: linear-gradient(180deg, #fff 0%, #ebebeb 100%);
padding: 50px 34px 25px; padding: 50px 34px 25px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -43,16 +43,18 @@
} }
.agree { .agree {
background: #52B709; background: #52b709;
} }
.cancel { .cancel {
background: #B0BABF; background: #b0babf;
} }
} }
&__close { &__close {
position: absolute; position: absolute;
width: 14px;
height: 14px;
top: 15px; top: 15px;
right: 22px; right: 22px;
cursor: pointer; cursor: pointer;

View File

@ -7,11 +7,11 @@
border: 1px solid #dde2e4; border: 1px solid #dde2e4;
border-radius: 8px; border-radius: 8px;
width: 1088px; width: 1088px;
height: 529px; height: 515px;
&-body { &-body {
&__left { &__left {
padding: 60px 0 30px 77px; padding: 33px 0 30px 77px;
h2 { h2 {
font-weight: 500; font-weight: 500;
@ -114,12 +114,13 @@
&__right { &__right {
border-left: 1px solid #f1f1f1; border-left: 1px solid #f1f1f1;
padding: 80px 32px 46px 25px; padding: 30px 32px 46px 25px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
h4 { h4 {
margin: 22px 0 22px 0;
font-weight: 900; font-weight: 900;
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
@ -140,7 +141,7 @@
} }
img { img {
margin: 0 18px 20px 0; margin: 0 18px 0 0;
} }
} }
} }

View File

@ -1060,7 +1060,7 @@
height: 42px; height: 42px;
cursor: pointer; cursor: pointer;
column-gap: 8px; column-gap: 8px;
padding: 5px; padding: 5px 5px 5px 14px;
border-radius: 8px; border-radius: 8px;
background: #fff; background: #fff;
@ -1138,9 +1138,13 @@
z-index: 10; z-index: 10;
&__item { &__item {
width: 66px;
font-size: 15px;
transition: 0.4s;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
transition: 0.4s;
font-weight: 700; font-weight: 700;
} }
} }

View File

@ -25,6 +25,7 @@ import "./projectTiket.scss";
export const ProjectTiket = ({ project, index }) => { export const ProjectTiket = ({ project, index }) => {
const [modalSelect, setModalSelect] = useState(false); const [modalSelect, setModalSelect] = useState(false);
const [modalAdd, setModalAdd] = useState(false); const [modalAdd, setModalAdd] = useState(false);
const [modalDelete, setModalDelete] = useState(false);
const [acceptModalOpen, setAcceptModalOpen] = useState(false); const [acceptModalOpen, setAcceptModalOpen] = useState(false);
const [path, setPath] = useState(""); const [path, setPath] = useState("");
const dispatch = useDispatch(); const dispatch = useDispatch();
@ -71,6 +72,7 @@ export const ProjectTiket = ({ project, index }) => {
function closeAcceptModal() { function closeAcceptModal() {
setAcceptModalOpen(false); setAcceptModalOpen(false);
setModalDelete(false);
} }
function linkProject() {} function linkProject() {}
@ -144,7 +146,13 @@ export const ProjectTiket = ({ project, index }) => {
<img src={archiveSet}></img> <img src={archiveSet}></img>
<p>в архив</p> <p>в архив</p>
</div> </div>
<div onClick={removeProject}>
<div
onClick={() => {
setModalDelete(true);
setModalSelect(false);
}}
>
<img src={del}></img> <img src={del}></img>
<p>удалить</p> <p>удалить</p>
</div> </div>
@ -152,6 +160,15 @@ export const ProjectTiket = ({ project, index }) => {
</ModalSelect> </ModalSelect>
{acceptModalOpen && ( {acceptModalOpen && (
<AcceptModal <AcceptModal
title={"Вы точно хотите переместить проект в архив?"}
closeModal={closeAcceptModal}
agreeHandler={removeProject}
/>
)}
{modalDelete && (
<AcceptModal
title={"Вы точно хотите удалить?"}
closeModal={closeAcceptModal} closeModal={closeAcceptModal}
agreeHandler={removeProject} agreeHandler={removeProject}
/> />

View File

@ -531,7 +531,13 @@ export const ProjectTracker = () => {
} }
> >
{Boolean(projectBoard.projectUsers?.length) && ( {Boolean(projectBoard.projectUsers?.length) && (
<div className="projectPersons"> <div
className={
projectBoard.projectUsers?.length == 1
? "onePerson"
: "projectPersons"
}
>
{projectBoard.projectUsers.slice(0, 3).map((person) => { {projectBoard.projectUsers.slice(0, 3).map((person) => {
return ( return (
<img <img

View File

@ -317,7 +317,8 @@ export const Tracker = () => {
<tr key={task.id}> <tr key={task.id}>
<td> <td>
<div className="taskList__table__title-task"> <div className="taskList__table__title-task">
{task.title} <p>{task.title}</p>
<div <div
onClick={(e) => { onClick={(e) => {
toggleDescTask(e); toggleDescTask(e);

View File

@ -322,6 +322,7 @@
display: flex; display: flex;
position: relative; position: relative;
left: 5px; left: 5px;
img { img {
position: relative; position: relative;
display: flex; display: flex;
@ -341,6 +342,19 @@
} }
} }
.onePerson {
display: flex;
position: relative;
left: -15px;
img {
position: relative;
display: flex;
width: 32px;
height: 32px;
}
}
span { span {
width: 32px; width: 32px;
height: 32px; height: 32px;
@ -1597,12 +1611,20 @@
gap: 10px; gap: 10px;
align-items: center; align-items: center;
transition: 0.4s; transition: 0.4s;
max-width: 350px;
p {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
div { div {
cursor: pointer; cursor: pointer;
width: 15px; width: 15px;
height: 15px; min-width: 15px;
min-height: 15px;
display: flex; display: flex;
background-color: #000; background-color: #000;
align-items: center; align-items: center;

View File

@ -36,7 +36,7 @@ export const TrackerIntro = () => {
компании в одном месте: проекты, задачи, цели, сотрудники, компании в одном месте: проекты, задачи, цели, сотрудники,
документы, переписки, отчеты документы, переписки, отчеты
</p> </p>
<NavLink to="/auth" className="trackerIntro__btn"> <NavLink to="/tracker-registration" className="trackerIntro__btn">
Начать работу Начать работу
</NavLink> </NavLink>
</div> </div>
@ -57,7 +57,7 @@ export const TrackerIntro = () => {
Управление большим количеством проектов и гибкая настройка Управление большим количеством проектов и гибкая настройка
структуры под любые процессы структуры под любые процессы
</p> </p>
<NavLink to="/auth" className="trackerIntro__btn"> <NavLink to="/tracker-registration" className="trackerIntro__btn">
Начать работу Начать работу
</NavLink> </NavLink>
</div> </div>