adaptation

This commit is contained in:
Николай Полтщук 2023-01-02 22:52:41 +03:00
parent cabd01ca43
commit b918c7ea28
3 changed files with 77 additions and 8 deletions

View File

@ -3,7 +3,7 @@ import {auth, getProfileInfo, setProfileInfo} from "../../redux/outstaffingSlice
import {useDispatch, useSelector} from "react-redux";
import {Loader} from '../Loader/Loader'
import {getRole} from "../../redux/roleSlice";
import {useHistory} from "react-router-dom";
import {useHistory, NavLink} from "react-router-dom";
import {fetchGet} from "../../server/server";
import './profileHeader.scss'
@ -42,8 +42,8 @@ export const ProfileHeader = () => {
<div className='profileHeader__info'>
<div className='profileHeader__container'>
<nav className='profileHeader__nav'>
<a className='active'>Резюме</a>
<a>Отчетность</a>
<NavLink to={'/profile'}>Резюме</NavLink>
<NavLink to={'/profileCalendar'}>Отчетность</NavLink>
<a>Трекер</a>
<a>Выплаты</a>
<a>Настройки</a>

View File

@ -52,18 +52,38 @@
align-items: center;
padding: 0 130px 0 45px;
justify-content: space-between;
@media (max-width: 930px) {
padding: 0 40px;
}
@media (max-width: 690px) {
padding: 0 20px;
min-height: 80px;
}
}
&__person {
display: flex;
align-items: center;
column-gap: 45px;
@media (max-width: 690px) {
column-gap: 20px;
}
}
&__avatar {
width: 88px;
height: 88px;
border-radius: 100px;
@media (max-width: 690px) {
width: 44px;
height: 44px;
min-width: 44px;
min-height: 44px;
}
}
&__name {
@ -72,6 +92,12 @@
line-height: 32px;
position: relative;
@media (max-width: 690px) {
font-size: 14px;
margin-right: 10px;
line-height: 15px;
}
&:after {
content: '';
position: absolute;
@ -94,6 +120,10 @@
line-height: 32px;
color: white;
border: none;
@media (max-width: 690px) {
width: 120px;
}
}
&__skills {
@ -111,21 +141,37 @@
padding: 0 35px 0 50px;
justify-content: space-between;
@media (max-width: 550px) {
padding: 0 15px;
}
h3 {
font-style: normal;
font-size: 18px;
line-height: 32px;
@media (max-width: 420px) {
line-height: 20px;
}
}
button {
background: #FFFFFF;
border-radius: 44px;
padding: 10px 20px;
display: flex;
align-items: center;
border: none;
min-width: 190px;
height: 42px;
font-weight: 500;
font-size: 14px;
line-height: 32px;
@media (max-width: 520px) {
font-size: 12px;
padding: 10px;
white-space: nowrap;
}
}
}
@ -133,6 +179,10 @@
&__items {
padding: 25px 35px 25px 50px;
@media (max-width: 550px) {
padding: 15px 15px 20px;
}
&__wrapper {
max-width: 630px;
display: flex;
@ -165,6 +215,10 @@
&__content {
padding: 15px 35px 15px 50px;
@media (max-width: 550px) {
padding: 15px 15px 20px;
}
h2 {
font-weight: 700;
font-size: 16px;
@ -270,7 +324,10 @@
.container {
max-width: 1160px;
padding: 0 10px;
margin-top: 70px;
@media (max-width: 570px) {
margin-top: 0;
}
}
}

View File

@ -57,6 +57,14 @@
line-height: 32px;
color: #807777 !important;
}
@media (max-width: 800px) {
column-gap: 15px;
a {
font-size: 12px;
}
}
}
&__personalInfo {
@ -72,6 +80,10 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@media (max-width: 600px) {
display: none;
}
}
&Avatar {