-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
98 additions
and
45 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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<div class="login d-flex flex-column align-items-center justify-content-center"> | ||
<div align="center"> | ||
<mat-card class="card shadow-lg"> | ||
<router-outlet></router-outlet> | ||
<div class="my-3"> | ||
<span class="error-text" | ||
>For any questions/concerns/password problems, please contact <b>[email protected]</b></span | ||
> | ||
</div> | ||
</mat-card> | ||
</div> | ||
<mat-card class="card shadow-lg"> | ||
<router-outlet></router-outlet> | ||
<div class="my-3 text-center"> | ||
<span class="error-text" | ||
>For any questions/concerns/password problems, please contact <b>[email protected]</b></span | ||
> | ||
</div> | ||
</mat-card> | ||
</div> | ||
|
||
<div class="vector" style="background: linear-gradient(145deg, #3f51b5, #3f51b5)"></div> |
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
9 changes: 7 additions & 2 deletions
9
src/app/pages/landing-page/not-found/not-found.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
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: 13 additions & 6 deletions
19
src/app/pages/landing-page/not-found/not-found.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
import { RouteNames } from 'src/app/models/enums'; | ||
|
||
@Component({ | ||
selector: 'app-not-found', | ||
templateUrl: './not-found.component.html', | ||
styleUrls: ['./not-found.component.scss'] | ||
selector: 'app-not-found', | ||
templateUrl: './not-found.component.html', | ||
styleUrls: ['./not-found.component.scss'], | ||
}) | ||
export class NotFoundComponent implements OnInit { | ||
constructor(private router: Router) {} | ||
|
||
constructor() { } | ||
ngOnInit(): void {} | ||
|
||
ngOnInit(): void { | ||
} | ||
routeToLogin(): void { | ||
this.router.navigate([`${RouteNames.LANDINGPAGE_LOGIN_BASEROUTE}`]); | ||
} | ||
|
||
routeToRegister(): void { | ||
this.router.navigate([`${RouteNames.LANDINGPAGE_REGISTER_BASEROUTE}`]); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11,6 +11,18 @@ <h1 style="color: #3f51b5">Welcome to the sharplab</h1> | |
<mat-error *ngIf="registerForm.get('email')?.hasError('required')">This is required</mat-error> | ||
<mat-error *ngIf="registerForm.get('email')?.hasError('email')">This must be a valid email</mat-error> | ||
</mat-form-field> | ||
<mat-form-field class="py-1" floatLabel="always"> | ||
<mat-label>CONFIRM EMAIL</mat-label> | ||
<mat-icon matSuffix>email</mat-icon> | ||
<input | ||
matInput | ||
formControlName="confirmEmail" | ||
placeholder="[email protected]" | ||
type="email" | ||
required | ||
/> | ||
</mat-form-field> | ||
<mat-form-field class="py-1" floatLabel="always"> | ||
<mat-label>PASSWORD</mat-label> | ||
<mat-icon matSuffix>vpn_key</mat-icon> | ||
|
@@ -21,6 +33,7 @@ <h1 style="color: #3f51b5">Welcome to the sharplab</h1> | |
type="password" | ||
matInput | ||
placeholder="my-strong-password" | ||
required | ||
/> | ||
<mat-error *ngIf="registerForm.get('password')?.hasError('required')">This is required</mat-error> | ||
</mat-form-field> | ||
|
@@ -33,9 +46,10 @@ <h1 style="color: #3f51b5">Welcome to the sharplab</h1> | |
type="password" | ||
matInput | ||
placeholder="my-strong-password" | ||
required | ||
/> | ||
<mat-error *ngIf="registerForm.get('confirmPassword').hasError('required')">This is required</mat-error> | ||
<mat-error *ngIf="registerForm.hasError('passwordMatch')">Passwords must match</mat-error> | ||
<mat-error *ngIf="registerForm.hasError('passwordMatchErr')">Passwords must match</mat-error> | ||
</mat-form-field> | ||
<div matRipple matRippleColor="#ffffff33" class="mt-3"> | ||
<button | ||
|
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
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
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