-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from frontend-park-mail-ru/feature-popup-header
Новый хедер с выпадающим меню
- Loading branch information
Showing
28 changed files
with
360 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class='{{elementClass}} alert-window alert-window_theme-dark'> | ||
<div class='alert-window__text text_roboto-regular'>{{text}}</div> | ||
<a | ||
class='alert-window__button button button_theme-dark-primary button_size-small text_roboto-bold' | ||
class='alert-window__button button button_main-primary' | ||
href='{{buttonUrl}}' | ||
>{{buttonText}}</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,58 @@ | ||
<header class='header text_roboto-light'> | ||
<div class='menu'>μArt</div> | ||
<div class='search'> | ||
<div class='search__location'> | ||
<img class='search__location-icon' src='{{static "img/location_icon.svg"}}' /> | ||
<div class='search__location-text text_roboto-light'>Москва</div> | ||
</div> | ||
<div class='search__form'> | ||
<input class='search__field text-light' disabled placeholder='Поиск' /> | ||
<img class='search__button' src='{{static "img/search_icon.svg"}}' /> | ||
</div> | ||
</div> | ||
<div class='user'> | ||
<div class='header-container'> | ||
<nav class='header-container__header header text_roboto-light'> | ||
<a class='header__logo logo' href='{{url "vacancies" ""}}'>μArt</a> | ||
{{#if userAuthenticated}} | ||
<div class='user__status-container'> | ||
<div class='user__status-text'>Я {{userType}}</div> | ||
<button class='user__logout-button button button_theme-primary'>Выйти</button> | ||
<div class='header__authorized-container'> | ||
<img class='header__notification-button' src='{{static "img/notification-icon-36.svg"}}' /> | ||
<img class='header__user-avatar' src='{{static "img/user-icon-80.svg"}}' /> | ||
<img class='header__menu-open-button' src='{{static "img/menu-icon-48.svg"}}' /> | ||
<div class='header__dropdown popup-element'> | ||
<div class='header__user-info'> | ||
<div class='header__user-name'>{{userFullName}}</div> | ||
<div class='header__user-type'>{{userType}}</div> | ||
</div> | ||
<div class='header__dropdown-separator'></div> | ||
<div class='header__menu menu'> | ||
<a class='header__profile-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/profile-menu-icon.svg"}}' /> | ||
Профиль пользователя</a> | ||
{{#if isApplicant}} | ||
<a class='header__cv-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/cv-menu-icon.svg"}}' /> | ||
Мои резюме | ||
</a> | ||
<a class='header__portfolio-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/portfolio-menu-icon.svg"}}' /> | ||
Портфолио | ||
</a> | ||
{{else}} | ||
<a class='header__vacancy-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/vacancy-menu-icon.svg"}}' /> | ||
Мои вакансии | ||
</a> | ||
<a class='header__company-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/company-menu-icon.svg"}}' /> | ||
Компания | ||
</a> | ||
{{/if}} | ||
<a class='header__logout-button menu__element'> | ||
<img class='menu__element-icon' src='{{static "/img/logout-menu-icon.svg"}}' /> | ||
Выйти | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<img class='user__avatar' src='{{static "img/user_icon.svg"}}' /> | ||
{{else}} | ||
<a class='user__login-button button button_theme-primary' href='{{url "login" ""}}'>Войти</a> | ||
<div class='header__not-authorized-container'> | ||
<a | ||
class='header__login-button button button_main-primary' | ||
href='{{url "login" ""}}' | ||
>Вход</a> | ||
<a | ||
class='header__registration-button button button_main-secondary' | ||
href='{{url "register" ""}}' | ||
>Регистрация</a> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</header> | ||
</nav> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<form class="{{elementClass}} login-form" method="POST" novalidate> | ||
<span class="login-form__error text_roboto-regular" hidden></span> | ||
<span class="login-form__error" hidden></span> | ||
{{> user-type-radiogroup elementClass="login-form__user-type-radiogroup"}} | ||
{{> validated-input elementClass="login-form__email" inputName="login" inputCaption="Электронная почта" inputType="email"}} | ||
{{> validated-input elementClass="login-form__password" inputName="password" inputCaption="Пароль" inputType="password"}} | ||
<button type="submit" class="login-form__button button button_theme-dark-primary button_size-medium text_roboto-bold"> | ||
Войти | ||
</button> | ||
<div class="login-form__button-container"> | ||
<button type="submit" class="login-form__button button button_main-primary"> | ||
Войти | ||
</button> | ||
<a class="login-container__go-back-button button button_main-tertiary" href="{{url "vacancies" ""}}">Не входить</a> | ||
</div> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.button { | ||
text-decoration: none; | ||
text-align: center; | ||
vertical-align: baseline; | ||
border: none; | ||
display: inline-block; | ||
cursor: pointer; | ||
padding: 10px 20px; | ||
font-size: var(--text-size-4); | ||
font-weight: 700; | ||
font-style: normal; | ||
} | ||
|
||
.button_main-primary { | ||
background-color: var(--color-main-400); | ||
color: var(--color-background-900); | ||
border-radius: 14px; | ||
} | ||
|
||
.button_main-secondary { | ||
background-color: transparent; | ||
color: var(--color-main-300); | ||
border-color: var(--color-main-300); | ||
border: solid 2px; | ||
border-radius: 14px; | ||
} | ||
|
||
.button_main-tertiary { | ||
background-color: transparent; | ||
color: var(--color-main-300); | ||
border: none; | ||
font-weight: var(--text-weight-regular); | ||
} | ||
|
||
.button_danger-primary { | ||
background-color: var(--color-secondary-support-500); | ||
color: var(--color-secondary-support-100); | ||
border-radius: 14px; | ||
} | ||
|
||
.button_danger-secondary { | ||
background-color: transparent; | ||
border: solid 2px; | ||
border-color: var(--color-secondary-support-500); | ||
color: var(--color-secondary-support-500); | ||
border-radius: 14px; | ||
} | ||
|
||
.button_danger-tertiary { | ||
background-color: transparent; | ||
border: none; | ||
color: var(--color-secondary-support-500); | ||
font-weight: var(--text-weight-regular); | ||
} | ||
|
||
.button_color-danger { | ||
background-color: var(--color-); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.