-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathlogin.component.html
More file actions
90 lines (90 loc) · 3.59 KB
/
login.component.html
File metadata and controls
90 lines (90 loc) · 3.59 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<div class="auth-main">
<div class="auth-wrapper v3">
<div class="auth-form">
<div class="card my-5">
<div class="card-body">
<form (ngSubmit)="onSubmit($event)">
<a href="#" class="d-flex justify-content-center">
<img src="assets/images/logo-dark.svg" alt="logo" />
</a>
<div class="row">
<div class="d-flex justify-content-center">
<div class="auth-header">
<h2 class="text-secondary mt-5"><b>Hi, Welcome Back</b></h2>
<p class="fs-4 mt-2">Enter your credentials to continue</p>
</div>
</div>
</div>
<div class="d-grid">
<button type="button" class="btn mt-2 btn-light-primary bg-light text-muted">
<img src="assets/images/authentication/google-icon.svg" alt="google" />
Sign In With Google
</button>
</div>
<div class="saprator mt-3">
<span>or</span>
</div>
<h5 class="my-4 d-flex justify-content-center">Sign in with Email address</h5>
<div class="form-floating mb-3">
<input
type="email"
class="form-control"
id="floatingInput"
[class.is-invalid]="submitted() && loginForm.email().invalid()"
placeholder="Email Address"
[field]="loginForm.email"
/>
<label for="floatingInput">Email address / Username</label>
@if (submitted() && loginForm.email().invalid()) {
<div class="invalid-feedback">
@for (error of loginForm.email().errors(); track error.kind) {
<div>{{ error.message }}</div>
}
</div>
}
</div>
<div class="form-floating mb-3">
<input
type="password"
id="password"
class="form-control"
[field]="loginForm.password"
[class.is-invalid]="submitted() && loginForm.password().errors().length > 0"
placeholder="Password (min. 8 characters)"
/>
<label for="password">Password</label>
@if (submitted() && loginForm.password().errors().length > 0) {
<div class="invalid-feedback">
@for (error of loginForm.password().errors(); track error.kind) {
<div>{{ error.message }}</div>
}
</div>
}
</div>
<div class="d-flex mt-1 justify-content-between">
<div class="form-check">
<input class="form-check-input input-primary" type="checkbox" id="customCheckc1" checked />
<label class="form-check-label text-muted" for="customCheckc1">Remember me</label>
</div>
<h5 class="text-secondary">
<a href="javascript:">Forgot Password?</a>
</h5>
</div>
@if (error()) {
<div class="alert alert-danger" role="alert">
{{ error() }}
</div>
}
<div class="d-grid mt-4">
<button type="submit" class="btn btn-secondary">Sign In</button>
</div>
<hr />
<h5 class="d-flex justify-content-center">
<a [routerLink]="['/register']">Don't have an account?</a>
</h5>
</form>
</div>
</div>
</div>
</div>
</div>