-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Developed ui for login, signup, reset password
- Loading branch information
1 parent
a30370a
commit c5a46e4
Showing
39 changed files
with
551 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/service-worker/config/schema.json", | ||
"index": "/index.html", | ||
"assetGroups": [ | ||
{ | ||
"name": "app", | ||
"installMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/favicon.ico", | ||
"/index.html", | ||
"/manifest.webmanifest", | ||
"/*.css", | ||
"/*.js" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "assets", | ||
"installMode": "lazy", | ||
"updateMode": "prefetch", | ||
"resources": { | ||
"files": [ | ||
"/assets/**", | ||
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)" | ||
] | ||
} | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 18 additions & 1 deletion
19
src/app/components/forgot-password/forgot-password.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
<p>forgot-password works!</p> | ||
<app-navbar [title]="'Reset Password'"></app-navbar> | ||
<form ngNoForm [formGroup]="resetPasswordGroup"> | ||
|
||
<div class="reset-instructions-container"> | ||
<h2>Forgot password?</h2> | ||
<p class="reset-instructions">Please enter your registered email to get the password reset link.</p> | ||
</div> | ||
|
||
<div> | ||
<mat-form-field appearance="standard"> | ||
<mat-label>Email</mat-label> | ||
<input matInput formControlName="email" /> | ||
</mat-form-field> | ||
</div> | ||
|
||
<button class="reset-password-button" mat-flat-button color="primary">Reset password</button> | ||
|
||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
:host { | ||
@import "src/assets/shared/common"; | ||
|
||
form { | ||
.reset-instructions-container { | ||
width: 100%; | ||
text-align: center; | ||
|
||
.reset-instructions { | ||
color: $dark-grey; | ||
} | ||
|
||
.reset-password-button { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
} |
8 changes: 7 additions & 1 deletion
8
src/app/components/forgot-password/forgot-password.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
<p>login works!</p> | ||
<app-navbar [title]="'Login'"></app-navbar> | ||
<form ngNoForm [formGroup]="loginForm"> | ||
<div> | ||
<mat-form-field appearance="standard"> | ||
<mat-label>Email</mat-label> | ||
<input matInput formControlName="email" required/> | ||
</mat-form-field> | ||
</div> | ||
|
||
<div> | ||
<mat-form-field appearance="standard"> | ||
<mat-label>Password</mat-label> | ||
<input matInput [type]="hide ? 'password' : 'text'" [formControlName]="'password'" formControlName="password" required/> | ||
<button mat-icon-button matSuffix (click)="hide = !hide" [attr.aria-label]="'Hide password'" [attr.aria-pressed]="hide"> | ||
<mat-icon>{{ hide ? 'visibility_off' : 'visibility' }}</mat-icon> | ||
</button> | ||
</mat-form-field> | ||
</div> | ||
|
||
<a class="forgot-password-link" [routerLink]="['/forgot-password']">Forgot password?</a> | ||
|
||
<div class="buttons-container"> | ||
<button mat-flat-button color="primary">Sign in</button> | ||
|
||
<button mat-flat-button color="primary" [routerLink]="['/signup']">Sign up</button> | ||
</div> | ||
|
||
<a class="learn-more-link" href="https://rte25.bhumi.ngo" target="_blank" rel="noopener noreferrer">Click here to learn more</a> | ||
</form> |
Oops, something went wrong.