|
| 1 | +<ion-header> |
| 2 | + <ion-navbar no-border-bottom> |
| 3 | + <ion-title> |
| 4 | + Segments |
| 5 | + </ion-title> |
| 6 | + </ion-navbar> |
| 7 | + |
| 8 | + <ion-toolbar no-border-top> |
| 9 | + <ion-segment [(ngModel)]="authType"> |
| 10 | + <ion-segment-button value="login"> |
| 11 | + Sign in |
| 12 | + </ion-segment-button> |
| 13 | + <ion-segment-button value="register"> |
| 14 | + Register |
| 15 | + </ion-segment-button> |
| 16 | + <!--<ion-segment-button value="ducklings">--> |
| 17 | + <!--Ducklings--> |
| 18 | + <!--</ion-segment-button>--> |
| 19 | + </ion-segment> |
| 20 | + </ion-toolbar> |
| 21 | +</ion-header> |
| 22 | + |
| 23 | +<ion-content> |
| 24 | + <div [ngSwitch]="authType"> |
| 25 | + <ion-list *ngSwitchCase="'login'"> |
| 26 | + <ion-item> |
| 27 | + <ion-label floating> |
| 28 | + <ion-icon name="mail" padding-right="5px"></ion-icon> |
| 29 | + E-mail |
| 30 | + </ion-label> |
| 31 | + <ion-input type="text" clearInput></ion-input> |
| 32 | + </ion-item> |
| 33 | + |
| 34 | + <ion-item> |
| 35 | + <ion-label floating> |
| 36 | + <ion-icon name="lock" padding-right="5px"></ion-icon> |
| 37 | + Password |
| 38 | + </ion-label> |
| 39 | + <ion-input type="password" clearInput></ion-input> |
| 40 | + </ion-item> |
| 41 | + |
| 42 | + <div padding> |
| 43 | + <button ion-button color="primary" block>Log in</button> |
| 44 | + |
| 45 | + <div padding> |
| 46 | + <button clear ion-button small color="primary" block>Forgot password?</button> |
| 47 | + </div> |
| 48 | + </div> |
| 49 | + </ion-list> |
| 50 | + |
| 51 | + <ion-list *ngSwitchCase="'register'"> |
| 52 | + <ion-item> |
| 53 | + <ion-label floating> |
| 54 | + <ion-icon name="contact" padding-right="5px"></ion-icon> |
| 55 | + Name |
| 56 | + </ion-label> |
| 57 | + <ion-input type="text" clearInput></ion-input> |
| 58 | + </ion-item> |
| 59 | + |
| 60 | + <ion-item> |
| 61 | + <ion-label floating> |
| 62 | + <ion-icon name="mail" padding-right="5px"></ion-icon> |
| 63 | + E-mail |
| 64 | + </ion-label> |
| 65 | + <ion-input type="text" clearInput></ion-input> |
| 66 | + </ion-item> |
| 67 | + |
| 68 | + <ion-item> |
| 69 | + <ion-label floating> |
| 70 | + <ion-icon name="lock" padding-right="5px"></ion-icon> |
| 71 | + Password |
| 72 | + </ion-label> |
| 73 | + <ion-input type="password" clearInput></ion-input> |
| 74 | + </ion-item> |
| 75 | + |
| 76 | + <div padding> |
| 77 | + <button ion-button color="primary" block>Register</button> |
| 78 | + |
| 79 | + <div padding> |
| 80 | + <ion-buttons> |
| 81 | + <button ion-button icon-only clear block> |
| 82 | + <ion-icon name="finger-print"></ion-icon> |
| 83 | + </button> |
| 84 | + </ion-buttons> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + |
| 88 | + </ion-list> |
| 89 | + |
| 90 | + </div> |
| 91 | +</ion-content> |
0 commit comments