|
1 | 1 | <!-- @format --> |
2 | 2 |
|
3 | | -<form class="auth" [formGroup]="loginForm" (ngSubmit)="onSubmit()" (keyup.enter)="onSubmit()"> |
4 | | - <div class="auth__wrapper"> |
5 | | - <h1 class="auth__title">Вход</h1> |
6 | | - <p class="login__reg">Нет аккаунта? <a routerLink="/auth/register">Зарегистрируйтесь</a></p> |
7 | | - @if (loginForm.get("email"); as email) { |
8 | | - <fieldset class="auth__field"> |
9 | | - <label for="email" class="field-label">Электронная почта</label> |
10 | | - <app-input |
11 | | - size="big" |
12 | | - [error]="email | controlError" |
13 | | - id="email" |
14 | | - type="email" |
15 | | - formControlName="email" |
16 | | - placeholder="Введите почту" |
17 | | - ></app-input> |
18 | | - @if (email | controlError: "email") { |
19 | | - <div class="text-body-10 error"> |
20 | | - {{ errorMessage.VALIDATION_EMAIL }} |
21 | | - </div> |
22 | | - } @if (email | controlError: "required") { |
23 | | - <div class="text-body-10 error"> |
24 | | - {{ errorMessage.VALIDATION_REQUIRED }} |
25 | | - </div> |
26 | | - } |
27 | | - </fieldset> |
28 | | - } @if (loginForm.get("password"); as password) { |
29 | | - <fieldset class="auth__field"> |
30 | | - <div class="login__password"> |
31 | | - <label class="field-label" for="password">Пароль</label> |
32 | | - <a routerLink="/auth/reset_password/send_email" class="login__forget"> Забыли пароль? </a> |
33 | | - </div> |
34 | | - <app-input |
35 | | - size="big" |
36 | | - [error]="password | controlError" |
37 | | - id="password" |
38 | | - [type]="showPassword ? 'text' : 'password'" |
39 | | - formControlName="password" |
40 | | - placeholder="Введите пароль" |
41 | | - > |
42 | | - @if(showPassword) { |
43 | | - <i |
44 | | - appIcon |
45 | | - icon="eye" |
46 | | - appSquare="24" |
47 | | - appWidth="24" |
48 | | - appHeight="24" |
49 | | - appViewBox="0 0 24 24" |
50 | | - class="icon" |
51 | | - (click)="toggleShowPassword()" |
52 | | - ></i> |
53 | | - } @else { |
54 | | - <i |
55 | | - appIcon |
56 | | - icon="eye-off" |
57 | | - appSquare="24" |
58 | | - appWidth="24" |
59 | | - appHeight="24" |
60 | | - appViewBox="0 0 24 24" |
61 | | - class="icon" |
62 | | - (click)="toggleShowPassword()" |
63 | | - ></i> |
| 3 | +<div class="login"> |
| 4 | + <div class="login__left"> |
| 5 | + <!-- Центр --> |
| 6 | + <div class="login__left-content"> |
| 7 | + <form class="auth" [formGroup]="loginForm" (ngSubmit)="onSubmit()" (keyup.enter)="onSubmit()"> |
| 8 | + <div class="auth__wrapper"> |
| 9 | + <img class="login__logo" src="/assets/images/shared/logo.svg" alt="logo" /> |
| 10 | + |
| 11 | + @if (loginForm.get("email"); as email) { |
| 12 | + <fieldset class="auth__field"> |
| 13 | + <label for="email" class="field-label">почта*</label> |
| 14 | + <app-input |
| 15 | + size="big" |
| 16 | + [error]="email | controlError" |
| 17 | + id="email" |
| 18 | + type="email" |
| 19 | + formControlName="email" |
| 20 | + placeholder="example@example.com" |
| 21 | + ></app-input> |
| 22 | + |
| 23 | + @if (email | controlError: "email") { |
| 24 | + <div class="text-body-10 error"> |
| 25 | + {{ errorMessage.VALIDATION_EMAIL }} |
| 26 | + </div> |
| 27 | + } @if (email | controlError: "required") { |
| 28 | + <div class="text-body-10 error"> |
| 29 | + {{ errorMessage.VALIDATION_REQUIRED }} |
| 30 | + </div> |
| 31 | + } |
| 32 | + </fieldset> |
| 33 | + } @if (loginForm.get("password"); as password) { |
| 34 | + <fieldset class="auth__field"> |
| 35 | + <div class="login__password"> |
| 36 | + <label class="field-label" for="password">пароль</label> |
| 37 | + <a routerLink="/auth/reset_password/send_email" class="login__forget"> |
| 38 | + забыли пароль? |
| 39 | + </a> |
| 40 | + </div> |
| 41 | + |
| 42 | + <app-input |
| 43 | + size="big" |
| 44 | + [error]="password | controlError" |
| 45 | + id="password" |
| 46 | + [type]="showPassword ? 'text' : 'password'" |
| 47 | + formControlName="password" |
| 48 | + placeholder="GJiwoeuhbn120=" |
| 49 | + > |
| 50 | + @if (showPassword) { |
| 51 | + <i appIcon icon="eye" appSquare="18" class="icon" (click)="toggleShowPassword()"></i> |
| 52 | + } @else { |
| 53 | + <i |
| 54 | + appIcon |
| 55 | + icon="eye-off" |
| 56 | + appSquare="18" |
| 57 | + class="icon" |
| 58 | + (click)="toggleShowPassword()" |
| 59 | + ></i> |
| 60 | + } |
| 61 | + </app-input> |
| 62 | + |
| 63 | + @if (password | controlError: "required") { |
| 64 | + <div class="text-body-10 error"> |
| 65 | + {{ errorMessage.VALIDATION_REQUIRED }} |
| 66 | + </div> |
| 67 | + } |
| 68 | + </fieldset> |
| 69 | + } @if (errorWrongAuth) { |
| 70 | + <div class="text-body-10 error"> |
| 71 | + {{ errorMessage.AUTH_WRONG_AUTH }} |
| 72 | + </div> |
| 73 | + } |
| 74 | + |
| 75 | + <app-button |
| 76 | + size="big" |
| 77 | + [loader]="loginIsSubmitting" |
| 78 | + class="auth__button" |
| 79 | + customTypographyClass="auth__button-typography" |
| 80 | + type="submit" |
| 81 | + > |
| 82 | + войти |
| 83 | + <i |
| 84 | + class="auth__button-icon" |
| 85 | + appIcon |
| 86 | + icon="arrow-no-body" |
| 87 | + appWidth="12" |
| 88 | + appHeight="6" |
| 89 | + appViewBox="0 0 18 9" |
| 90 | + ></i> |
| 91 | + </app-button> |
| 92 | + |
| 93 | + <div class="login__additional"> |
| 94 | + <p class="login__reg text-body-12"> |
| 95 | + нет аккаунта? |
| 96 | + <a routerLink="/auth/register">зарегистрируйтесь</a> |
| 97 | + </p> |
| 98 | + |
| 99 | + <hr /> |
| 100 | + |
| 101 | + <p class="text-body-12 login__external"> |
| 102 | + *Если ты регистрировался через форму на сайте программы кейс-чемпионата, введи данные, |
| 103 | + которые ты указывал ранее |
| 104 | + </p> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + </form> |
| 108 | + </div> |
| 109 | + |
| 110 | + <!-- Низ --> |
| 111 | + <div class="login__left-footer"> |
| 112 | + <div class="tooltip"> |
| 113 | + <app-tooltip |
| 114 | + color="grey" |
| 115 | + iconSize="40" |
| 116 | + (click)="$event.stopPropagation(); toggleTooltip()" |
| 117 | + ></app-tooltip> |
| 118 | + |
| 119 | + @if (isHintLoginVisible()) { |
| 120 | + <div class="tooltip__wrapper" (clickOutside)="toggleTooltip()"> |
| 121 | + <p class="tooltip__text text-body-10"> |
| 122 | + Если у тебя есть вопросы, напиши в наш телеграм-бот поддержки |
| 123 | + <a href="https://t.me/procollab_bot">{{ "@procollab_bot" }}</a> |
| 124 | + </p> |
| 125 | + |
| 126 | + <br /> |
| 127 | + |
| 128 | + <p class="tooltip__text text-body-10"> |
| 129 | + Если не нашел ответ в боте, напиши в техподдержку — |
| 130 | + <a href="https://t.me/procollab_support">{{ "@procollab_support" }}</a> |
| 131 | + </p> |
| 132 | + </div> |
64 | 133 | } |
65 | | - </app-input> |
66 | | - @if (password | controlError: "required") { |
67 | | - <div class="text-body-10 error"> |
68 | | - {{ errorMessage.VALIDATION_REQUIRED }} |
69 | 134 | </div> |
70 | | - } |
71 | | - </fieldset> |
72 | | - } @if (errorWrongAuth) { |
73 | | - <div class="text-body-10 error"> |
74 | | - {{ errorMessage.AUTH_WRONG_AUTH }} |
75 | 135 | </div> |
76 | | - } |
77 | | - <app-button |
78 | | - size="big" |
79 | | - [loader]="loginIsSubmitting" |
80 | | - class="auth__button" |
81 | | - customTypographyClass="auth__button-typography" |
82 | | - type="submit" |
83 | | - > |
84 | | - Войти |
85 | | - <i |
86 | | - class="auth__button-icon" |
87 | | - appIcon |
88 | | - icon="arrow-no-body" |
89 | | - appWidth="12" |
90 | | - appHeight="6" |
91 | | - appViewBox="0 0 18 9" |
92 | | - ></i> |
93 | | - </app-button> |
94 | 136 | </div> |
95 | | -</form> |
| 137 | + |
| 138 | + <div class="login__right"> |
| 139 | + <img class="login__image" src="/assets/images/auth/login-img.png" alt="" /> |
| 140 | + </div> |
| 141 | +</div> |
0 commit comments