50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
<section class="login" aria-labelledby="login-title">
|
|
<div class="box">
|
|
<img class="logo" src="assets/branding/isssteleon-logo.png" alt="ISSSTELEON" />
|
|
<h1 class="title" id="login-title">Inicio de sesión</h1>
|
|
<form class="form" (ngSubmit)="enter()" novalidate>
|
|
<mat-form-field appearance="outline" class="field" subscriptSizing="dynamic">
|
|
<input
|
|
matInput
|
|
name="email"
|
|
[(ngModel)]="email"
|
|
placeholder="Usuario"
|
|
aria-label="Usuario"
|
|
autocomplete="username"
|
|
autocapitalize="none"
|
|
spellcheck="false"
|
|
/>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="outline" class="field" subscriptSizing="dynamic">
|
|
<input
|
|
matInput
|
|
name="password"
|
|
[(ngModel)]="password"
|
|
[type]="show() ? 'text' : 'password'"
|
|
placeholder="Contraseña"
|
|
aria-label="Contraseña"
|
|
autocomplete="current-password"
|
|
/>
|
|
<button
|
|
mat-icon-button
|
|
matSuffix
|
|
type="button"
|
|
class="eye"
|
|
(click)="show.set(!show())"
|
|
[attr.aria-label]="show() ? 'Ocultar contraseña' : 'Mostrar contraseña'"
|
|
[attr.aria-pressed]="show()"
|
|
>
|
|
<mat-icon>{{ show() ? 'visibility_off' : 'visibility' }}</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
@if (error(); as message) {
|
|
<p class="error" role="alert">{{ message }}</p>
|
|
}
|
|
<button type="submit" class="enter" [disabled]="!email.trim() || !password || sending()">
|
|
{{ sending() ? 'Ingresando…' : 'Ingresar' }}
|
|
</button>
|
|
</form>
|
|
<p class="legal">©{{ year }} Todos los derechos reservados.</p>
|
|
</div>
|
|
</section>
|