Ajoute des label aux différents liens de navigation du header
parent
fce23e51a4
commit
e4d1e537c1
|
@ -1,10 +1,7 @@
|
|||
@media (min-width: 500px) {
|
||||
.ui__.steps-header nav {
|
||||
height: 10rem;
|
||||
}
|
||||
.steps-header {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.ui__.steps-header nav {
|
||||
height: 5em;
|
||||
.steps-header nav {
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
margin: auto;
|
||||
|
@ -13,51 +10,52 @@
|
|||
}
|
||||
|
||||
@media (min-width: 500px) {
|
||||
.ui__.steps-header {
|
||||
.steps-header {
|
||||
padding-top: 1.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ui__.steps-header a {
|
||||
.steps-header a {
|
||||
margin-right: 0.8rem;
|
||||
min-width: 4.5rem;
|
||||
text-decoration: none;
|
||||
flex-shrink: 0;
|
||||
text-align: center;
|
||||
transition: all 0.3s;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.ui__.steps-header a:focus {
|
||||
.steps-header a:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.ui__.steps-header a:last-child {
|
||||
.steps-header a:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.ui__.steps-header a img {
|
||||
height: 80%;
|
||||
.steps-header a img {
|
||||
height: 4rem;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.ui__.steps-header a:hover {
|
||||
.steps-header a:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
.ui__.steps-header a.active {
|
||||
.steps-header a.active {
|
||||
opacity: 1;
|
||||
flex: 1;
|
||||
}
|
||||
/* IE */
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
.ui__.steps-header a.active {
|
||||
.steps-header a.active {
|
||||
min-width: 80%;
|
||||
}
|
||||
.ui__.steps-header a {
|
||||
.steps-header a {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.ui__.steps-header .progress {
|
||||
.steps-header .progress {
|
||||
margin-top: 0.4rem;
|
||||
height: 0.5rem;
|
||||
background: rgba(41, 117, 209, 0.2);
|
||||
|
@ -65,7 +63,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.ui__.steps-header .progress .bar {
|
||||
.steps-header .progress .bar {
|
||||
transition: width 0.3s;
|
||||
background-color: rgb(41, 117, 209);
|
||||
height: 100%;
|
||||
|
|
|
@ -24,18 +24,21 @@ type Props = {
|
|||
estimationProgress: number
|
||||
}
|
||||
const StepsHeader = ({ companyProgress, estimationProgress }: Props) => (
|
||||
<header className="ui__ steps-header container">
|
||||
<header className="steps-header ui__ container">
|
||||
<nav>
|
||||
<NavLink to="/register" activeClassName="active">
|
||||
<img src={companySvg} />
|
||||
<div>My company</div>
|
||||
<Progress percent={companyProgress} />
|
||||
</NavLink>
|
||||
<NavLink to="/social-security" activeClassName="active">
|
||||
<img src={estimateSvg} />
|
||||
<div>Social security</div>
|
||||
<Progress percent={estimationProgress} />
|
||||
</NavLink>
|
||||
<NavLink to="/hiring-process" activeClassName="active">
|
||||
<img src={hiringSvg} />
|
||||
<div>Hiring process</div>
|
||||
<Progress percent={40} />
|
||||
</NavLink>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in New Issue