Skip to content

Commit 3b52774

Browse files
committed
cleaned up styling for landscape mode
1 parent fc0aaf4 commit 3b52774

3 files changed

Lines changed: 29 additions & 16 deletions

File tree

src/pages/register/register.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
2828

2929
<form class="form" [formGroup]='validate' (ngSubmit)='submitReg()'>
3030
<ion-row justify-content-center>
31-
<ion-col col-10>
31+
<ion-col col-10 col-xl-7>
3232
<ion-item no-lines>
3333
<ion-input
3434
[(ngModel)]="registerUser.firstName"
@@ -47,7 +47,7 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
4747
</ion-row>
4848

4949
<ion-row justify-content-center>
50-
<ion-col col-10>
50+
<ion-col col-10 col-xl-7>
5151
<ion-item no-lines>
5252
<ion-input
5353
[(ngModel)]="registerUser.lastName"
@@ -65,7 +65,7 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
6565
</ion-row>
6666

6767
<ion-row justify-content-center>
68-
<ion-col col-10>
68+
<ion-col col-10 col-xl-7>
6969
<ion-item no-lines>
7070
<ion-input
7171
[(ngModel)]="registerUser.email"
@@ -84,7 +84,7 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
8484

8585
<div formGroupName="pass">
8686
<ion-row justify-content-center>
87-
<ion-col col-10>
87+
<ion-col col-10 col-xl-7>
8888
<ion-item no-lines>
8989
<ion-input
9090
class="inputs"
@@ -102,7 +102,7 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
102102
</ion-row>
103103

104104
<ion-row justify-content-center>
105-
<ion-col col-10>
105+
<ion-col col-10 col-xl-7>
106106
<ion-item no-lines>
107107
<ion-input
108108
class="inputs"
@@ -122,18 +122,21 @@ <h2 id="lifechange" text-center>It's a life change.</h2>
122122

123123

124124
<ion-row justify-content-center>
125-
<ion-col col-8>
125+
<ion-col col-8 col-xl-5>
126126
<button id="regButton" ion-button block [disabled]="!validate.valid" type="submit">REGISTER</button>
127127
</ion-col>
128128
</ion-row>
129129
</form>
130130

131131
<ion-row justify-content-center>
132132
<ion-col col-8>
133-
<div>
134-
<h3 text-center>Login if you already have an account.</h3>
135-
<button id="loginButton" ion-button block (click)="goLogin()">LOGIN</button>
136-
</div>
133+
<h3 text-center>Login if you already have an account.</h3>
134+
</ion-col>
135+
</ion-row>
136+
137+
<ion-row justify-content-center>
138+
<ion-col class="button-col" col-8 col-xl-5>
139+
<button id="loginButton" ion-button block (click)="goLogin()">LOGIN</button>
137140
</ion-col>
138141
</ion-row>
139142
</ion-grid>

src/pages/register/register.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ page-register {
4545
position: relative;
4646
border: 1px solid #e5e6e6;
4747
background-color: #f8f8f8;
48-
padding-left: 60px;
48+
padding-left: 10px;
4949
font-size: 25px;
5050
}
5151

@@ -90,12 +90,12 @@ page-register {
9090
max-width: 2800px;
9191
font-size: 3vw;
9292
}
93-
@media screen and (min-width:2300px) {
93+
/* @media screen and (min-width:2300px) {
9494
.message {
9595
font-size: 60px;
9696
margin: 5vh auto 5vh auto ;
9797
}
98-
}
98+
}
9999
100100
.input {
101101
margin: .4vw auto;
@@ -113,7 +113,7 @@ page-register {
113113
//margin-top:10px;
114114
outline: none;
115115
border:1px solid #cccccc
116-
}
116+
}
117117
::-webkit-input-placeholder {
118118
font-size: 3vw;
119119
color: rgb(136, 136, 136);
@@ -126,7 +126,7 @@ page-register {
126126
position: relative;
127127
top: -13px;
128128
}
129-
}
129+
} */
130130

131131
#register-button{
132132
text-align: center;
@@ -194,6 +194,16 @@ page-register {
194194
page-login .inputs {
195195
margin: auto;
196196
width: 70%;
197+
font-size: 25px;
198+
}
199+
200+
#loginButton {
201+
font-size: 25px;
202+
height: 2.1em;
203+
}
204+
#regButton{
205+
font-size: 25px;
206+
height: 2.1em;
197207
}
198208
}
199209

src/providers/user/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class UserProvider {
1717
}
1818

1919
sendReg(user) {
20-
console.log('sendReg() runs')
20+
console.log('sendReg() runs', user)
2121
return this.http.post(this.regUrl, user)
2222
}
2323

0 commit comments

Comments
 (0)