Compare commits

..

No commits in common. "7a3a70ccd3eee128b2a5a0ba8c217dbdaf33785e" and "4a81441d354b588e92f4cc7a7f3a6900826ddd49" have entirely different histories.

15 changed files with 101 additions and 54 deletions

View File

@ -167,8 +167,12 @@
top: -20px; top: -20px;
@media (max-width: 900px) { @media (max-width: 900px) {
top: 100px; order: 1;
position: inherit;
right: inherit;
top: inherit;
max-width: 115px; max-width: 115px;
margin-bottom: 35px;
} }
} }
} }

View File

@ -48,7 +48,7 @@
text-decoration: none; text-decoration: none;
} }
a:focus, a.active { a:focus {
color: #000000; color: #000000;
} }

View File

@ -133,7 +133,7 @@
.edit-project, .edit-project,
.add-worker, .add-worker,
.edit-column { .edit-column {
// 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

@ -1,8 +1,8 @@
.error-login { .error-login {
position: relative; position: relative;
padding: 30px; padding: 54px 76px;
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%); background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
border-radius: 20px; border-radius: 40px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -15,7 +15,9 @@
} }
p { p {
font-size: 15px; font-size: 12px;
line-height: 14px;
width: 176px;
text-align: center; text-align: center;
font-weight: 300; font-weight: 300;
margin-bottom: 30px; margin-bottom: 30px;

View File

@ -88,9 +88,9 @@ export const Navigation = () => {
}, []); }, []);
return ( return (
<div className="profile-header__info"> <div className="profileHeader__info">
<div className="profile-header__container"> <div className="profileHeader__container">
<nav className="profile-header__nav"> <nav className="profileHeader__nav">
{navInfo[user].map((link, index) => { {navInfo[user].map((link, index) => {
return ( return (
<NavLink <NavLink
@ -104,8 +104,8 @@ export const Navigation = () => {
})} })}
</nav> </nav>
<div className="profile-header__personalInfo"> <div className="profileHeader__personalInfo">
<h3 className="profile-header__personalInfoName"> <h3 className="profileHeader__personalInfoName">
{profileInfo?.fio ? profileInfo?.fio : profileInfo?.username} {profileInfo?.fio ? profileInfo?.fio : profileInfo?.username}
</h3> </h3>
<NavLink end to={"/profile"}> <NavLink end to={"/profile"}>
@ -113,7 +113,7 @@ export const Navigation = () => {
src={ src={
profileInfo?.photo ? urlForLocal(profileInfo.photo) : avatarMok profileInfo?.photo ? urlForLocal(profileInfo.photo) : avatarMok
} }
className="profile-header__personalInfoAvatar" className="profileHeader__personalInfoAvatar"
alt="avatar" alt="avatar"
/> />
</NavLink> </NavLink>

View File

@ -282,15 +282,15 @@ export const ProfileCalendarComponent = React.memo(
? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}` ? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}`
: `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}` : `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}`
: activePeriod : activePeriod
? "Выберите диапазон на календаре" ? "Выберите диапазон на календаре"
: "Выбрать диапазон"} : "Выбрать диапазон"}
</span> </span>
<span> <span>
{totalRangeHours {totalRangeHours
? `${totalRangeHours} ${hourOfNum(totalRangeHours)}` ? `${totalRangeHours} ${hourOfNum(totalRangeHours)}`
: endDate : endDate
? "0 часов" ? "0 часов"
: ""} : ""}
</span> </span>
{endDate && ( {endDate && (
<BaseButton <BaseButton

View File

@ -20,6 +20,19 @@ export const ProfileHeader = () => {
const [isLoggingOut, setIsLoggingOut] = useState(false); const [isLoggingOut, setIsLoggingOut] = useState(false);
// useEffect(() => {
// if (Object.keys(profileInfo).length) {
// return;
// }
// apiRequest(`/user/me`).then((profileInfo) => {
// dispatch(
// setProfileInfo(
// profileInfo.userCard ? profileInfo.userCard : profileInfo
// )
// );
// });
// }, [dispatch]);
useEffect(() => { useEffect(() => {
if (!Object.keys(profileInfo).length) if (!Object.keys(profileInfo).length)
apiRequest(`/user/me`).then((profileInfo) => { apiRequest(`/user/me`).then((profileInfo) => {
@ -41,16 +54,16 @@ export const ProfileHeader = () => {
}; };
return ( return (
<header className="profile-header"> <header className="profileHeader">
<div className="profile-header__head"> <div className="profileHeader__head">
<div className="profile-header__container"> <div className="profileHeader__container">
<NavLink to={"/profile"} className="profile-header__title"> <NavLink to={"/profile"} className="profileHeader__title">
itguild. itguild.
<span> <span>
{user === "developer" ? "для разработчиков" : "для партнеров"} {user === "developer" ? "для разработчиков" : "для партнеров"}
</span> </span>
</NavLink> </NavLink>
<button onClick={handler} className="profile-header__logout"> <button onClick={handler} className="profileHeader__logout">
{isLoggingOut ? <Loader /> : "Выйти"} {isLoggingOut ? <Loader /> : "Выйти"}
</button> </button>
</div> </div>

View File

@ -1,4 +1,4 @@
.profile-header { .profileHeader {
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -53,24 +53,24 @@
flex-wrap: wrap; flex-wrap: wrap;
column-gap: 30px; column-gap: 30px;
.active {
color: #000000 !important;
}
a { a {
text-decoration: none; text-decoration: none !important;
cursor: pointer; cursor: pointer;
font-weight: 700; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 32px; line-height: 32px;
color: #807777; color: #807777 !important;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
color: #261a1a; color: #261a1a !important;
} }
} }
a.active {
color: #000000;
}
@media (max-width: 800px) { @media (max-width: 800px) {
column-gap: 15px; column-gap: 15px;

View File

@ -75,6 +75,8 @@ export const ProjectTicket = ({ project, index }) => {
setModalDelete(false); setModalDelete(false);
} }
function linkProject() {}
return ( return (
<div className={`project project-${project.id}`} key={index}> <div className={`project project-${project.id}`} key={index}>
<Link <Link

View File

@ -2,11 +2,13 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
width: 300px; width: 322px;
background: #f1f1f1; background: #f1f1f1;
border-radius: 12px; border-radius: 12px;
cursor: pointer; cursor: pointer;
max-width: 440px;
transition: 0.4s; transition: 0.4s;
&:hover { &:hover {
@ -24,12 +26,15 @@
&__link { &__link {
font-weight: 700; font-weight: 700;
width: 194px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: 18px; font-size: 18px;
line-height: 32px;
color: #111112; color: #111112;
margin-bottom: 10px; margin-bottom: 22px;
max-width: 380px;
&:hover { &:hover {
color: black; color: black;
@ -40,7 +45,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
margin-bottom: 30px; margin-bottom: 45px;
p { p {
color: #6f6f6f; color: #6f6f6f;
@ -48,6 +53,7 @@
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
line-height: 17px; line-height: 17px;
width: 60px;
} }
.count { .count {
@ -91,13 +97,13 @@
} }
&__open-tracker { &__open-tracker {
padding: 10px 15px; padding: 17px 26px 16px;
} }
&__statistics { &__statistics {
position: absolute; position: absolute;
bottom: 13px; bottom: 18px;
left: 15px; left: 26px;
color: #0042b4; color: #0042b4;
text-decoration: underline; text-decoration: underline;
font-size: 14px; font-size: 14px;

View File

@ -0,0 +1,14 @@
import React from "react";
import { ActContent } from "@components/features/bookkeeping/ActContent/ActContent";
import { BookkeepingTemplete } from "@components/features/bookkeeping/BookkeepingTemplete/BookkeepingTemplete";
export const ActPage = () => {
return (
<div>
<BookkeepingTemplete showBreadcrumps nameBreeadcrumps="Создание акта">
<ActContent></ActContent>
</BookkeepingTemplete>
</div>
);
};

View File

@ -15,7 +15,7 @@
&__about { &__about {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 30px 0; margin-bottom: 30px;
@media (max-width: 600px) { @media (max-width: 600px) {
flex-wrap: wrap; flex-wrap: wrap;
row-gap: 25px; row-gap: 25px;

View File

@ -201,7 +201,7 @@ export const Tracker = () => {
)) && )) &&
!loader && ( !loader && (
<div className="no-projects"> <div className="no-projects">
<div className="no-projects__create-new"> <div className="no-projects__createNew">
<div> <div>
<img src={noProjects} alt="noProjectImg" /> <img src={noProjects} alt="noProjectImg" />
<p>Создайте свой первый проект</p> <p>Создайте свой первый проект</p>
@ -251,7 +251,7 @@ export const Tracker = () => {
<p> <p>
{25} - {35} {25} - {35}
</p> </p>
<h3>Сентября,</h3> <h2>Сентября,</h2>
<h3>2023</h3> <h3>2023</h3>
</div> </div>

View File

@ -145,10 +145,10 @@
row-gap: 30px; row-gap: 30px;
display: none; display: none;
align-items: center; align-items: center;
justify-content: center;
@media (max-width: 785px) { @media (max-width: 785px) {
row-gap: 25px; row-gap: 25px;
justify-content: center;
padding: 0 15px 20px; padding: 0 15px 20px;
} }
@ -158,7 +158,7 @@
padding: 20px; padding: 20px;
width: 100%; width: 100%;
&__create-new { &__createNew {
display: flex; display: flex;
div { div {
display: flex; display: flex;
@ -177,11 +177,14 @@
} }
.create-project-btn { .create-project-btn {
width: 300px; max-width: 322px;
height: 113px; width: 322px;
height: 166px;
border-radius: 12px; border-radius: 12px;
background: #ecf8e5; background: #ecf8e5;
color: #000000; color: #000000;
font-weight: 400;
font-size: 15px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -189,9 +192,10 @@
&__text { &__text {
text-align: left; text-align: left;
font-weight: 400; font-size: 14px;
font-size: 18px; font-weight: 250;
margin-left: 15px; width: 190px;
margin-left: 25px;
} }
&:hover { &:hover {
@ -199,13 +203,10 @@
box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11); box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.11);
} }
@media (max-width: 1068px) { @media (max-width: 650px) {
width: 47%; height: 40px;
} font-size: 12px;
height: 166px;
@media (max-width: 785px) {
max-width: 394px;
width: 100%;
} }
} }
} }

View File

@ -94,8 +94,13 @@
top: -100px; top: -100px;
right: 58px; right: 58px;
@media (max-width: 900px) { @media (max-width: 1000px) {
display: none; position: inherit;
order: 1;
top: inherit;
right: inherit;
max-width: 115px;
margin-bottom: 25px;
} }
} }
} }