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

View File

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

View File

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