aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/register/register.component.html
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-28 18:18:00 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-28 18:18:00 +0300
commitf4d7b7c41ccaab06e50351cf144157d5194c0545 (patch)
tree59374cfcc490afb8859e7c6b71f1df9d3b4998b8 /src/app/components/register/register.component.html
parent5117c15b4856d6296b28e67e259c2ca1576b8794 (diff)
downloadDevHive-Angular-f4d7b7c41ccaab06e50351cf144157d5194c0545.tar
DevHive-Angular-f4d7b7c41ccaab06e50351cf144157d5194c0545.tar.gz
DevHive-Angular-f4d7b7c41ccaab06e50351cf144157d5194c0545.zip
Implemented a password show and hide button to register and login pages; added it's icons (eye and eye-off)
Diffstat (limited to 'src/app/components/register/register.component.html')
-rw-r--r--src/app/components/register/register.component.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/app/components/register/register.component.html b/src/app/components/register/register.component.html
index 1f547c4..1cd6cdb 100644
--- a/src/app/components/register/register.component.html
+++ b/src/app/components/register/register.component.html
@@ -1,4 +1,4 @@
-<main class="centered-content flex-col flex-center-align-items flex-justify-center height-full">
+<main class="centered-content scroll-standalone height-full flex-col flex-center-align-items flex-justify-center">
<summary class="title card width-full margin-0 padding-dot2">Register</summary>
<app-error-bar class="width-full margin-top-dot4"></app-error-bar>
@@ -37,8 +37,11 @@
</div>
</section>
<section class="input-selection">
- <input type="password" placeholder="Password" class="fancy-input width-full border-faded-slim border-bottom-only" formControlName="password" required>
+ <input [type]="showingPassword ? 'text' : 'password'" placeholder="Password" class="fancy-input width-full border-faded-slim border-bottom-only" 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="registerUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('password')?.errors?.minlength" class="error">*Minimum 3 characters</label>
@@ -46,7 +49,6 @@
</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)="onRedirectLogin()">