aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/login/login.component.html
blob: 95075c95a09df3927bbafa331dabcaf44b9dac5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<main class="centered-content scroll-standalone flex-col flex-center-align-items flex-justify-center height-full">
	<summary class="title card width-full margin-0 padding-dot2">Login</summary>

	<app-error-bar class="width-full margin-top-dot4"></app-error-bar>

	<form class="width-full card padding-dot6" [formGroup]="loginUserFormGroup" (ngSubmit)="onSubmit()">
		<section class="input-selection width-full">
			<input type="text" placeholder="Username" class="fancy-input width-full border-faded-slim border-bottom-only" formControlName="username" required>
			<label class="fancy-input-label width-full">Username</label>
			<div class="input-errors">
				<label *ngIf="loginUserFormGroup.get('username')?.errors?.required" class="error">*Required</label>
			</div>
		</section>
		<section class="input-selection">
			<input [type]="showingPassword ? 'text' : 'password'" placeholder="Password" class="fancy-input width-full border-faded-slim border-bottom-only padding-right-1dot5" formControlName="password" required>
			<label class="fancy-input-label width-full">Password</label>
			<button type="button" class="show-password-button hover-half-opacity click-effect" (click)="toggleShowPassword()">
				<img [src]="showingPassword ? '/assets/icons/tabler-icon-eye-off.svg' : '/assets/icons/tabler-icon-eye.svg'">
			</button>
			<div class="input-errors">
				<label *ngIf="loginUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
			</div>
		</section>

		<button class="border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3 width-full" type="submit">Submit</button>
	</form>
	<button class="fg-focus border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3 width-full margin-top-dot4" (click)="onRedirectRegister()">New to DevHive? Register instead</button>
</main>