New AuthHeader

This commit is contained in:
Никита Губарь 2024-05-07 15:31:21 +03:00
parent e9497902eb
commit 65b716fa27
4 changed files with 111 additions and 87 deletions

View File

@ -1,51 +1,39 @@
import React from "react"; import React from "react";
import { NavLink } from "react-router-dom"; import { Link, NavLink } from "react-router-dom";
import { scrollToForm } from "@utils/helper";
import userIcon from "assets/icons/userIcon.svg";
import "./authHeader.scss"; import "./authHeader.scss";
export const AuthHeader = () => { export const AuthHeader = () => {
return ( return (
<div className="auth-header"> <div className="auth-header">
<div className="auth-header__logo">
<h3>
itguild.<span>аутстаффинг IT-специалистов</span>
</h3>
</div>
<div className="auth-header__navigation"> <div className="auth-header__navigation">
<div className="container"> <h3 className="auth__logo">IT GUILD</h3>
<div className="auth-nav"> <div className="auth-nav">
<ul> <ul>
<li> <li>
<NavLink to={"/auth"}> <NavLink to={"/auth"}>кейсы</NavLink>
<span>Главная</span> </li>
</NavLink> <li>
</li> <NavLink to={"/stack"}>стек</NavLink>
{/*<li>*/} </li>
{/* <NavLink to={"/profile"}>Кабинет разработчика</NavLink>*/} <li>
{/*</li>*/} <NavLink to={"/tracker-intro"}>как это работает</NavLink>
<li> </li>
<NavLink to={"/tracker-intro"}>Трекер</NavLink> <li>
</li> <NavLink to={"/auth-candidate"}>отзывы</NavLink>
<li> </li>
<NavLink to={"/auth-candidate"} className="candidate"> <li>
<span>Войти в команду</span> <NavLink to={"/profile"}>наши продукты</NavLink>
</NavLink> </li>
</li> </ul>
</ul> </div>
<div className="auth__buttons">
<a <button className="signIn">
onClick={(e) => { <Link to="/auth">войти</Link>
e.preventDefault(); </button>
scrollToForm(); <button className="signUp">
}} <Link to="/auth">регистрация</Link>
> </button>
<img src={userIcon}></img>
</a>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,62 +1,63 @@
.auth-header { .auth-header {
background-color: #f1f1f1; position: relative;
z-index: 3;
&__logo { padding: 25px 100px 40px 100px;
padding: 0 0 0 160px; font-family: "GT Eesti Pro Display";
height: 55px; background: #eeeeee;
display: flex;
align-items: center;
h3 {
font-size: 20px;
line-height: 32px;
color: #000000;
}
span {
color: #52b709;
}
}
&__navigation { &__navigation {
display: flex; display: flex;
align-items: center; align-items: center;
height: 66px; height: 66px;
width: 100%; width: 100%;
background: #ffffff; justify-content: space-around;
.auth-nav { .auth {
height: 35px; &__logo {
display: flex; color: #4a4a4a;
flex-direction: row; font-weight: 900;
justify-content: space-between; font-size: 16px;
letter-spacing: 2px;
position: relative;
ul { &::after {
display: flex; content: "";
margin: 0; position: absolute;
padding: 0; background: #a7ca60;
list-style: none; width: 7px;
height: 7px;
border-radius: 100px;
left: 49%;
top: -30%;
}
}
li { &-nav {
margin-right: 25px; ul {
display: flex;
column-gap: 50px;
margin: 0;
padding: 0;
list-style: none;
font-size: 18px; li {
line-height: 32px; cursor: pointer;
font-weight: 400;
font-size: 16px;
line-height: 18.5px;
a { a {
color: #897676; color: #838383;
} }
a:hover { a:hover {
text-decoration: none; color: #161616;
} }
a:focus, // a:focus,
a.active { a.active {
color: #000000; color: #000000;
} font-weight: 700;
}
.candidate {
background: transparent;
color: #1458dd;
} }
} }
} }
@ -64,6 +65,35 @@
img { img {
cursor: pointer; cursor: pointer;
} }
&__buttons {
display: flex;
column-gap: 22px;
button {
width: 140px;
height: 34px;
border-radius: 44px;
font-size: 13px;
font-weight: 400;
}
.signIn {
a {
color: #1e1e1e;
}
background-color: #a7ca60;
border: none;
}
.signUp {
a {
color: #a7ca60;
}
border: 1px solid #a7ca60;
background: none;
}
}
} }
} }
} }

View File

@ -291,6 +291,10 @@
font-weight: 400; font-weight: 400;
border-radius: 32px; border-radius: 32px;
margin-top: 45px; margin-top: 45px;
@media (min-width: 432px) {
display: none;
}
} }
&__block { &__block {

View File

@ -72,8 +72,10 @@
} }
&__ellipse { &__ellipse {
height: 763px;
width: 763px;
z-index: 1; z-index: 1;
top: 45%; top: 64%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
position: absolute; position: absolute;