add mp with icons and update after review
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
@if (prompt.visible()) {
|
||||
<div class="sheet-root">
|
||||
<button
|
||||
class="sheet-root__backdrop"
|
||||
type="button"
|
||||
aria-label="Свернуть"
|
||||
(click)="dismiss()"
|
||||
></button>
|
||||
|
||||
<section class="sheet" role="dialog" aria-modal="true" aria-labelledby="auth-sheet-title">
|
||||
<button
|
||||
class="sheet__handle"
|
||||
type="button"
|
||||
aria-label="Свернуть"
|
||||
(click)="dismiss()"
|
||||
></button>
|
||||
|
||||
@if (auth.step() === 'email') {
|
||||
<div class="sheet__lock" aria-hidden="true">
|
||||
<app-icon name="lock" [size]="28" />
|
||||
</div>
|
||||
|
||||
<h2 id="auth-sheet-title">{{ title() }}</h2>
|
||||
<p class="sheet__lead">
|
||||
Сохраним вашу коллекцию и прогресс. Смотреть города и карту можно без входа.
|
||||
</p>
|
||||
|
||||
<label class="sheet__email">
|
||||
<app-icon name="mail" [size]="20" />
|
||||
<input
|
||||
type="email"
|
||||
inputmode="email"
|
||||
autocomplete="email"
|
||||
placeholder=""
|
||||
[value]="emailDraft()"
|
||||
(input)="onEmail($event)"
|
||||
/>
|
||||
</label>
|
||||
|
||||
<button
|
||||
class="sheet__submit"
|
||||
type="button"
|
||||
[disabled]="!emailValid()"
|
||||
(click)="requestCode()"
|
||||
>
|
||||
Получить код
|
||||
</button>
|
||||
<button class="sheet__ghost" type="button" (click)="dismiss()">Пока просто посмотрю</button>
|
||||
} @else {
|
||||
<h2 id="auth-sheet-title">{{ title() }}</h2>
|
||||
<p class="sheet__lead">
|
||||
Отправили 6 цифр на <b>{{ auth.email() }}</b>
|
||||
</p>
|
||||
|
||||
<div class="sheet__digits">
|
||||
@for (digit of digits(); track $index) {
|
||||
<input
|
||||
#digit
|
||||
type="text"
|
||||
inputmode="numeric"
|
||||
autocomplete="one-time-code"
|
||||
maxlength="1"
|
||||
[attr.aria-label]="'Цифра ' + ($index + 1)"
|
||||
[value]="digit"
|
||||
(input)="onDigit($index, $event)"
|
||||
(keydown)="onDigitKey($index, $event)"
|
||||
(paste)="onPaste($event)"
|
||||
/>
|
||||
}
|
||||
</div>
|
||||
|
||||
<button
|
||||
class="sheet__resend"
|
||||
type="button"
|
||||
[disabled]="auth.resendSeconds() > 0"
|
||||
(click)="resend()"
|
||||
>
|
||||
{{ resendLabel() }}
|
||||
</button>
|
||||
|
||||
<button class="sheet__submit" type="button" [disabled]="!codeReady()" (click)="confirm()">
|
||||
Подтвердить
|
||||
</button>
|
||||
<button class="sheet__ghost" type="button" (click)="changeEmail()">Изменить почту</button>
|
||||
}
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user