-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from Kajol-Kumari/add_login_page
Added login page UI
- Loading branch information
Showing
4 changed files
with
60 additions
and
3 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,24 @@ | ||
.main { | ||
text-align: center; | ||
margin-top: 2%; | ||
} | ||
h2 { | ||
font-size: 28px; | ||
color: rgb(15, 15, 228); | ||
font-weight: 600; | ||
font-family: 'Courier New', Courier, monospace; | ||
} | ||
mat-card { | ||
margin:2% 0% 6% 15%; | ||
padding:4%; | ||
width:60%; | ||
background-color: rgb(241, 239, 239); | ||
font-size: 18px; | ||
} | ||
mat-form-field { | ||
width: 80%; | ||
margin-left: 8%; | ||
} | ||
button{ | ||
margin-left: 50%; | ||
} |
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,28 @@ | ||
<p>Welcome to the login page :)</p> | ||
<div class="main"> | ||
<h2>LOGIN FORM</h2> | ||
</div> | ||
<mat-card> | ||
<form (submit) = "OnLogin(logInForm)" #logInForm= "ngForm"> | ||
<mat-form-field> | ||
<input type="email" | ||
matInput name="email" | ||
ngModel placeholder="Email ID" | ||
#emailId="ngModel" | ||
required email> | ||
<mat-error *ngIf="emailId.invalid">Please Enter a valid Email ID!</mat-error> | ||
</mat-form-field> | ||
<mat-form-field> | ||
|
||
<input type="password" | ||
matInput | ||
name = "password" | ||
ngModel | ||
placeholder="Password" #passwordentered="ngModel" required> | ||
<mat-error *ngIf="passwordentered.invalid">Please Enter a valid Password!</mat-error> | ||
|
||
</mat-form-field> <br> | ||
<button mat-raised-button color="primary" type="submit"> | ||
Login | ||
</button> | ||
</form> | ||
</mat-card> |
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