-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated login to new UI * translations added * larger image added
- Loading branch information
Showing
6 changed files
with
74 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
<div class="container"> | ||
<h3>Login</h3> | ||
<form (ngSubmit)="tryLogin()" name="loginForm"> | ||
<div class="form-group"> | ||
<label for="user">{{'PHONE_NUMBER' | translate}}</label> | ||
<input [(ngModel)]="user" type="text" name="user" class="form-control" id="user" required> | ||
<div class="d-flex justify-content-center"> | ||
<div class="d-flex justify-content-center flex-column header align-items-center"> | ||
<div class="logo d-flex justify-content-center align-items-center"> | ||
<img | ||
src="../../../assets/vote_monitor_trans_lg.png" | ||
class="brand-logo" | ||
alt="" | ||
/> | ||
</div> | ||
<h4>Welcome to VoteMonitor</h4> | ||
<form (ngSubmit)="tryLogin()" name="loginForm" class="d-flex justify-content-center flex-column p-4"> | ||
<h6>{{ 'LOGIN' | translate }}:</h6> | ||
<hr/> | ||
<div class="form-group"> | ||
<label for="user">{{'PHONE_NUMBER' | translate}}</label> | ||
<input [(ngModel)]="user" type="text" name="user" class="form-control" id="user" required> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password">{{'PASSWORD' | translate}}</label> | ||
<input [(ngModel)]="password" type="password" name="user" class="form-control" id="password"> | ||
</div> | ||
<p *ngIf="invalid" style="color:red"> | ||
{{'CREDENTIALS_INVALID' | translate}} | ||
</p> | ||
<button type="submit" class="btn btn-warning mt-4">{{ 'LOGIN' | translate }}</button> | ||
</form> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password">Password</label> | ||
<input [(ngModel)]="password" type="password" name="user" class="form-control" id="password"> | ||
</div> | ||
<p *ngIf="invalid" style="color:red"> | ||
Credentials are invalid | ||
</p> | ||
<button type="submit" class="btn btn-default">Login</button> | ||
</form> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.container { | ||
.header{ | ||
height: 70vh; | ||
h4 { | ||
margin:2rem 0; | ||
} | ||
.logo { | ||
background: #fbd844; | ||
border-radius: 50%; | ||
height:200px; | ||
width:200px; | ||
img { | ||
width:200px; | ||
} | ||
} | ||
} | ||
form { | ||
background-color:#fff; | ||
-webkit-box-shadow: 0px 0px 15px 5px rgba(204,204,204,1); | ||
-moz-box-shadow: 0px 0px 15px 5px rgba(204,204,204,1); | ||
box-shadow: 0px 0px 15px 5px rgba(204,204,204,1); | ||
border-radius: 0.5rem; | ||
width:450px; | ||
|
||
hr { | ||
width: calc(100% + 3rem); | ||
margin-left: -1.5rem; | ||
margin-right: -1.5rem; | ||
} | ||
|
||
label { | ||
color:rgba(0, 0, 0, 0.7); | ||
} | ||
|
||
|
||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
8f45e7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: