|
1 |
| -<div class="login-container"> |
2 |
| - <div class="login-content"> |
3 |
| - <mat-toolbar color="primary"> |
4 |
| - <mat-toolbar-row class="login-toolbar"> |
5 |
| - <span>Login</span> |
6 |
| - </mat-toolbar-row> |
7 |
| - </mat-toolbar> |
8 |
| - <mat-card> |
9 |
| - <mat-card-header> |
10 |
| - <mat-card-subtitle *ngIf="infoMsg">{{infoMsg}}</mat-card-subtitle> |
11 |
| - <mat-error class="center" *ngIf="errorMsg">{{errorMsg}}</mat-error> |
12 |
| - </mat-card-header> |
13 |
| - |
14 |
| - <form [formGroup]="loginForm" (ngSubmit)="onSubmit(loginForm.value)" novalidate> |
15 |
| - <mat-form-field> |
16 |
| - <mat-icon matPrefix>person_outline</mat-icon> |
17 |
| - <input autofocus type="text" matInput placeholder="Usernames: sumo, sumo1, sumo2, sumo3" formControlName="username"> |
18 |
| - </mat-form-field> |
19 |
| - |
20 |
| - <mat-form-field> |
21 |
| - <mat-icon matPrefix>lock_outline</mat-icon> |
22 |
| - <input type="password" autocomplete="false" matInput placeholder="Password: demo" formControlName="password"> |
23 |
| - </mat-form-field> |
24 |
| - |
25 |
| - <div mat-dialog-actions fxLayout="row" fxLayoutAlign="space-around center"> |
26 |
| - <button mat-button color="warn" type="button" [mat-dialog-close]="false">Cancel</button> |
27 |
| - <span fxFlex></span> |
28 |
| - <button mat-raised-button type="button" (click)="initSSO()">SSO</button> |
29 |
| - <!--<button mat-raised-button color="primary" type="submit" cdkFocusInitial>Login</button>--> |
30 |
| - <button mat-raised-button color="primary" type="submit" >Login</button> |
31 |
| - </div> |
32 |
| - </form> |
33 |
| - </mat-card> |
34 |
| - </div> |
| 1 | +<div class="card border-radius elevation"> |
| 2 | + <mat-toolbar color="primary"> |
| 3 | + <mat-toolbar-row style="margin-bottom: -50px;" fxLayout="column" fxLayoutAlign="start end"> |
| 4 | + <button mat-icon-button [mat-dialog-close]="false" style="margin-right: -15px"> |
| 5 | + <mat-icon aria-label="Close">close</mat-icon> |
| 6 | + </button> |
| 7 | + </mat-toolbar-row> |
| 8 | + <mat-toolbar-row style="min-height:120px;" fxLayout="column" fxLayoutAlign="center center"> |
| 9 | + <img class="login-angular-logo" src="assets/img/homepage/angular-white-transparent.svg"> |
| 10 | + </mat-toolbar-row> |
| 11 | + </mat-toolbar> |
| 12 | + |
| 13 | + |
| 14 | + <form class="padding" fxLayout="column" fxLayoutGap="16px" [formGroup]="loginForm"> |
| 15 | + |
| 16 | + <span fxLayout="row" fxLayoutAlign="space-between center"> |
| 17 | + <mat-hint align="start" *ngIf="infoMsg">{{infoMsg}}</mat-hint> |
| 18 | + <mat-error align="end" class="center" *ngIf="errorMsg">{{errorMsg}}</mat-error> |
| 19 | + </span> |
| 20 | + |
| 21 | + <mat-form-field fxFlex="grow" appearance="fill"> |
| 22 | + <mat-label>Username</mat-label> |
| 23 | + <!--<mat-icon matPrefix>person_outline</mat-icon>--> |
| 24 | + <input autofocus matInput required placeholder="Usernames: sumo, sumo1, sumo2, sumo3" formControlName="username"> |
| 25 | + <mat-hint>Usernames: sumo, sumo1, sumo2, sumo3</mat-hint> |
| 26 | + <mat-error *ngIf="loginForm.get('username').hasError('required')">We need an username to log you in</mat-error> |
| 27 | + </mat-form-field> |
| 28 | + |
| 29 | + <mat-form-field fxFlex="grow" appearance="fill"> |
| 30 | + <mat-label>Password</mat-label> |
| 31 | + <!--<mat-icon matPrefix>lock_outline</mat-icon>--> |
| 32 | + <input matInput required [type]="inputType" autocomplete="false" placeholder="Password: demo" |
| 33 | + formControlName="password"> |
| 34 | + <button type="button" mat-icon-button matSuffix (click)="toggleInputType()" matTooltip="Toggle Visibility"> |
| 35 | + <mat-icon *ngIf="visible">visibility</mat-icon> |
| 36 | + <mat-icon *ngIf="!visible">visibility_off</mat-icon> |
| 37 | + </button> |
| 38 | + <mat-hint>Password: demo</mat-hint> |
| 39 | + <mat-hint align="end">Click the eye to toggle visibility</mat-hint> |
| 40 | + <mat-error *ngIf="loginForm.get('password').hasError('required')">We need a password to log you in</mat-error> |
| 41 | + </mat-form-field> |
| 42 | + |
| 43 | + <div fxLayout="row" fxLayoutAlign="space-between center"> |
| 44 | + <mat-checkbox class="mat-caption">Remember Me</mat-checkbox> |
| 45 | + <a class="mat-caption" [routerLink]="['/forgot-password']">Forgot Password?</a> |
| 46 | + </div> |
| 47 | + <button type="submit" color="primary" mat-raised-button [disabled]="!loginForm.valid" |
| 48 | + (click)="onSubmit(loginForm.value)"> |
| 49 | + SIGN IN |
| 50 | + </button> |
| 51 | + |
| 52 | + <mat-hint class="text-center mat-caption"> |
| 53 | + <p>Not a member? |
| 54 | + <a [routerLink]="['/register']">Register</a> |
| 55 | + </p> |
| 56 | + </mat-hint> |
| 57 | + <!-- |
| 58 | + <mat-hint class="text-center mat-caption"> |
| 59 | + <p>or sign in with:</p> |
| 60 | + </mat-hint> |
| 61 | + --> |
| 62 | + <span fxLayout="row" fxLayoutAlign="space-evenly center"> |
| 63 | + <button mat-mini-fab (click)="initSSO()" matTooltip="Login with KeyCloak" matTooltipPosition="above"> |
| 64 | + <mat-icon>security</mat-icon> |
| 65 | + </button> |
| 66 | + <button mat-mini-fab matTooltip="Login with Google" matTooltipPosition="above"> |
| 67 | + <i class="icon ion-logo-google"></i> |
| 68 | + </button> |
| 69 | + <button mat-mini-fab> |
| 70 | + <i class="icon ion-logo-twitter" matTooltip="Login with Twitter" matTooltipPosition="above"></i> |
| 71 | + </button> |
| 72 | + <button mat-mini-fab> |
| 73 | + <i class="icon ion-logo-github" matTooltip="Login with GitHub" matTooltipPosition="above"></i> |
| 74 | + </button> |
| 75 | + </span> |
| 76 | + |
| 77 | + </form> |
35 | 78 | </div>
|
| 79 | + |
0 commit comments