Merge pull request #136 from apuc/fixed-pages

Fixed pages and clickability
This commit is contained in:
MaxOvs19 2023-10-19 19:23:07 +03:00 committed by GitHub
commit 533e765581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 26 deletions

View File

@ -35,7 +35,14 @@ export const AuthHeader = () => {
</a> </a>
</li> </li>
<li> <li>
<a href="#">Школа</a> <a
onClick={(e) => {
e.preventDefault();
scrollToForm();
}}
>
Трекер
</a>
</li> </li>
<li> <li>
<NavLink to={"/auth-candidate"} className="candidate"> <NavLink to={"/auth-candidate"} className="candidate">

View File

@ -118,7 +118,11 @@
transform: scale(1); transform: scale(1);
} }
.createProject { .createProject,
.createColumn,
.editProject,
.addWorker,
.editColumn {
background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%); background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%);
.title-project { .title-project {
margin-top: 20px; margin-top: 20px;

View File

@ -26,6 +26,7 @@ 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 [acceptModalOpen, setAcceptModalOpen] = useState(false); const [acceptModalOpen, setAcceptModalOpen] = useState(false);
const [path, setPath] = useState("");
const dispatch = useDispatch(); const dispatch = useDispatch();
const { showNotification } = useNotification(); const { showNotification } = useNotification();
@ -69,11 +70,13 @@ export const ProjectTiket = ({ project, index }) => {
setAcceptModalOpen(false); setAcceptModalOpen(false);
} }
function linkProject() {}
return ( return (
<div className="project" key={index}> <div className="project" key={index}>
<Link to={`/tracker/project/${project.id}`} className="project__link"> <Link to={`/tracker/project/${project.id}`}>
{project.name} <p className="project__link">{project.name}</p>
</Link>
<div className="project__info"> <div className="project__info">
<p>Открытые задачи</p> <p>Открытые задачи</p>
<span className="count"> <span className="count">
@ -84,10 +87,12 @@ export const ProjectTiket = ({ project, index }) => {
)} )}
</span> </span>
<img src={avatarProject} alt="#" className="project__avatar" /> <img src={avatarProject} alt="#" className="project__avatar" />
</div>
</Link>
<span className="menu-settings" onClick={() => setModalSelect(true)}> <span className="menu-settings" onClick={() => setModalSelect(true)}>
... ...
</span> </span>
</div>
<Link <Link
to={`/profile/statistics/${project.id}`} to={`/profile/statistics/${project.id}`}
className="project__statistics" className="project__statistics"
@ -102,7 +107,7 @@ export const ProjectTiket = ({ project, index }) => {
projectId={project.id} projectId={project.id}
></TrackerModal> ></TrackerModal>
<ModalSelect active={modalSelect}> <ModalSelect active={modalSelect} onClick={(e) => e.stopPropagation()}>
<div className="project__settings-menu"> <div className="project__settings-menu">
<div <div
onClick={() => { onClick={() => {

View File

@ -78,14 +78,14 @@
display: none; display: none;
} }
} }
}
.menu-settings { .menu-settings {
position: absolute; position: absolute;
font-size: 21px; font-size: 21px;
color: #6f6f6f; color: #6f6f6f;
right: 0; right: 26px;
top: -35%; top: 59px;
}
} }
&__avatar { &__avatar {