|
1 | 1 | <div fxLayout="column" id="register"> |
2 | 2 | <div fxLayout="column" fxLayoutAlign="center center" id="register-form-wrapper"> |
3 | | - <div [@animate]="{ value: '*', params: { duration: '300ms', y: '100px' } }" id="register-form"> |
4 | | - <div class="logo"> |
5 | | - <img src="assets/images/logos/fuse.svg" /> |
| 3 | + <div id="register-form" [@animateStagger]="{ value: '50' }"> |
| 4 | + |
| 5 | + <div *ngIf="logoUrl" class="logo"> |
| 6 | + <img [src]="logoUrl" alt="logo" [@animate]="{ value: '*', params: { x: '50px' } }"> |
6 | 7 | </div> |
7 | 8 |
|
8 | | - <div class="title">CREATE AN ACCOUNT</div> |
| 9 | + <div class="title" [@animate]="{ value: '*', params: { x: '-50px' } }">{{titleText}}</div> |
9 | 10 |
|
10 | 11 | <form [formGroup]="registerForm" name="registerForm" novalidate> |
11 | | - <mat-form-field> |
12 | | - <input formControlName="name" matInput placeholder="Name" /> |
| 12 | + <mat-form-field [appearance]="appearance" [@animate]="{ value: '*', params: { x: '50px' } }"> |
| 13 | + <input formControlName="name" matInput placeholder="Name"/> |
13 | 14 | <mat-icon matSuffix color="primary">person</mat-icon> |
14 | 15 | <mat-error> |
15 | 16 | Name is required |
16 | 17 | </mat-error> |
17 | 18 | </mat-form-field> |
18 | 19 |
|
19 | | - <mat-form-field> |
20 | | - <input formControlName="email" matInput placeholder="Email" /> |
| 20 | + <mat-form-field [appearance]="appearance" [@animate]="{ value: '*', params: { x: '50px' } }"> |
| 21 | + <input formControlName="email" matInput [placeholder]="emailText"/> |
21 | 22 | <mat-icon matSuffix color="primary">email</mat-icon> |
22 | 23 | <mat-error *ngIf="registerForm.get('email').hasError('required')"> |
23 | | - Email is required |
| 24 | + {{emailErrorRequiredText}} |
24 | 25 | </mat-error> |
25 | 26 | <mat-error *ngIf="registerForm.get('email').hasError('email')"> |
26 | | - Please enter a valid email address |
| 27 | + {{emailErrorPatternText}} |
27 | 28 | </mat-error> |
28 | 29 | </mat-form-field> |
29 | 30 |
|
30 | | - <mat-form-field> |
31 | | - <input formControlName="password" matInput placeholder="Password" type="password" /> |
| 31 | + <mat-form-field [appearance]="appearance" [@animate]="{ value: '*', params: { x: '50px' } }"> |
| 32 | + <input formControlName="password" matInput [placeholder]="passwordText" type="password"/> |
32 | 33 | <mat-icon matSuffix color="primary">lock</mat-icon> |
33 | 34 | <mat-error> |
34 | | - Password is required |
| 35 | + {{passwordErrorRequiredText}} |
35 | 36 | </mat-error> |
36 | 37 | </mat-form-field> |
37 | 38 |
|
38 | | - <mat-form-field> |
39 | | - <input formControlName="passwordConfirm" matInput placeholder="Password (Confirm)" type="password" /> |
| 39 | + <mat-form-field [appearance]="appearance" [@animate]="{ value: '*', params: { x: '50px' } }"> |
| 40 | + <input formControlName="passwordConfirm" matInput [placeholder]="passwordConfirmationText" type="password"/> |
40 | 41 | <mat-icon matSuffix color="primary">lock</mat-icon> |
41 | 42 | <mat-error *ngIf="registerForm.get('passwordConfirm').hasError('required')"> |
42 | | - Password confirmation is required |
| 43 | + {{passwordConfirmationErrorRequiredText}} |
43 | 44 | </mat-error> |
44 | 45 | <mat-error |
45 | 46 | *ngIf=" |
46 | 47 | !registerForm.get('passwordConfirm').hasError('required') && |
47 | 48 | registerForm.get('passwordConfirm').hasError('passwordsNotMatching') |
48 | | - " |
49 | | - > |
50 | | - Passwords must match |
| 49 | + "> |
| 50 | + {{passwordErrorMatchText}} |
51 | 51 | </mat-error> |
52 | 52 | </mat-form-field> |
53 | 53 |
|
54 | 54 | <div class="terms" fxLayout="row" fxLayoutAlign="center center"> |
55 | 55 | <mat-checkbox aria-label="I read and accept" name="terms" required> |
56 | | - <span>I read and accept</span> |
| 56 | + <span>{{readAncAcceptText}}</span> |
57 | 57 | </mat-checkbox> |
58 | | - <a href="#">terms and conditions</a> |
| 58 | + <button mat-button color="primary">{{termsAndConditionsText}}</button> |
59 | 59 | </div> |
60 | 60 |
|
61 | 61 | <button |
62 | 62 | [disabled]="registerForm.invalid" |
63 | 63 | aria-label="CREATE AN ACCOUNT" |
64 | 64 | class="submit-button" |
65 | 65 | color="accent" |
66 | | - mat-raised-button |
67 | | - > |
68 | | - CREATE AN ACCOUNT |
| 66 | + mat-raised-button> |
| 67 | + {{createAccountButtonText}} |
69 | 68 | </button> |
70 | 69 | </form> |
71 | 70 |
|
72 | 71 | <div class="register" fxLayout="column" fxLayoutAlign="center center"> |
73 | | - <span class="text">Already have an account?</span> |
74 | | - <a [routerLink]="'/pages/auth/login'" class="link">Login</a> |
| 72 | + <span class="text">{{alreadyHaveAccountText}}</span> |
| 73 | + <button mat-button color="accent">{{loginButtonText}}</button> |
75 | 74 | </div> |
76 | 75 | </div> |
77 | 76 | </div> |
|
0 commit comments