forked from lordvkrum/LETS-mobile-Application
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #9 from lordvkrum/restoring-backend-connection
re styling login
- Loading branch information
Showing
19 changed files
with
218 additions
and
119 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
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
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,30 +1,53 @@ | ||
<ion-header> | ||
<ion-navbar> | ||
<h2 class="ui header">{{sitename}}</h2> | ||
<ion-title>Welcome</ion-title> | ||
</ion-navbar> | ||
</ion-header> | ||
|
||
<ion-content padding> | ||
<form [formGroup]="loginForm" class="ui form"> | ||
<div class="field"> | ||
<label>Username</label> | ||
<input type="text" required formControlName="username"> | ||
<div *ngIf="formErrors.username" class="ui pointing red basic label"> | ||
{{ formErrors.username }} | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label>Password</label> | ||
<input type="password" required formControlName="password"> | ||
<div *ngIf="formErrors.password" class="ui pointing red basic label"> | ||
{{ formErrors.password }} | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<button class="ui green fluid button" [disabled]="!loginForm.valid" (click)="login()">Sign In</button> | ||
</div> | ||
<div class="field"> | ||
<button class="ui fluid button" (click)="register()">Register</button> | ||
</div> | ||
<ion-content scroll="false"> | ||
<ion-slides> | ||
<ion-slide> | ||
<div class="image-wrapper"> | ||
<div class="image"> | ||
<img alt="logo" src="assets/images/ces_logo.png"> | ||
<h1 class="logo-title">Community</h1> | ||
<h1 class="logo-title">Exchange</h1> | ||
</div> | ||
</div> | ||
</ion-slide> | ||
</ion-slides> | ||
<form [formGroup]="loginForm"> | ||
<ion-list> | ||
<ion-item> | ||
<ion-label> | ||
<ion-icon ios="ios-person" md="md-person"></ion-icon> | ||
</ion-label> | ||
<ion-input type="text" placeholder="Username" required formControlName="username"></ion-input> | ||
</ion-item> | ||
<ion-item *ngIf="formErrors.username"> | ||
<div> | ||
{{ formErrors.username }} | ||
</div> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label> | ||
<ion-icon ios="ios-lock" md="md-lock"></ion-icon> | ||
</ion-label> | ||
<ion-input type="password" placeholder="Password" required formControlName="password"></ion-input> | ||
</ion-item> | ||
<ion-item *ngIf="formErrors.password"> | ||
<div> | ||
{{ formErrors.password }} | ||
</div> | ||
</ion-item> | ||
<ion-item> | ||
<ion-label>Remember me</ion-label> | ||
<ion-checkbox checked="true" formControlName="rememberMe"></ion-checkbox> | ||
</ion-item> | ||
</ion-list> | ||
<button ion-button full [disabled]="!loginForm.valid" (click)="doLogin()">Sign in</button> | ||
<p>This is the mobile site</p> | ||
<p> | ||
<a href="#" (click)="goToFullSite()">Go to full site</a> | ||
</p> | ||
</form> | ||
</ion-content> |
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,3 +1,98 @@ | ||
page-login { | ||
|
||
height: calc(100%); | ||
ion-slides { | ||
height: 40%; | ||
|
||
.image-wrapper { | ||
height: 50%; | ||
display: table; | ||
width: 100%; | ||
|
||
.image { | ||
display: table-cell; | ||
vertical-align: middle; | ||
|
||
img { | ||
max-height: 120px; | ||
} | ||
} | ||
} | ||
.logo-title { | ||
margin: 0; | ||
text-transform: uppercase; | ||
color: #ffffff; | ||
font-family: sans-serif; | ||
font-size: 40px; | ||
} | ||
.logo-title:last-child { | ||
color: #2185d0; | ||
} | ||
} | ||
form { | ||
height: 60%; | ||
background: #ffffff; | ||
padding: 20px 30px 0; | ||
|
||
ion-list.list { | ||
margin-bottom: 0; | ||
|
||
ion-item.item.item-input { | ||
padding: 0; | ||
margin-bottom: 20px; | ||
background: #fff; | ||
color: rgba(0, 0, 0, .87); | ||
border-radius: 5px; | ||
font-size: 18px; | ||
min-height: 55px; | ||
height: 55px; | ||
border: 1px solid rgba(34, 36, 38, .15) !important; | ||
box-shadow: none !important; | ||
|
||
ion-label.label { | ||
margin: 0 10px 0 0; | ||
padding: 13px 20px; | ||
background: #F0F0F0; | ||
border-right: 1px solid rgba(34, 36, 38, 0.15); | ||
|
||
ion-icon.icon { | ||
width: 15px; | ||
} | ||
} | ||
} | ||
ion-item.item.item-checkbox { | ||
padding: 0; | ||
margin: 0 auto; | ||
margin-bottom: 20px; | ||
background: #fff; | ||
color: rgba(0, 0, 0, .87); | ||
font-size: 15px; | ||
min-height: 25px; | ||
height: 25px; | ||
text-align: center; | ||
width: 150px; | ||
border: none !important; | ||
|
||
ion-checkbox.checkbox { | ||
margin: 0; | ||
} | ||
} | ||
} | ||
button.button.button-full { | ||
border-radius: 5px; | ||
background: #2185d0; | ||
height: 50px; | ||
font-size: 20px; | ||
margin-bottom: 20px; | ||
} | ||
p, a { | ||
color: rgba(0, 0, 0, .87); | ||
} | ||
p { | ||
width: 100%; | ||
text-align: center; | ||
font-size: 15px; | ||
line-height: 20px; | ||
margin: 0; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.