Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 2bc0055

Browse files
author
vikasrohit
committed
SUP-1792, [Registration] Apply mobile design
-- Applied mobile design
1 parent 3ee22df commit 2bc0055

File tree

4 files changed

+86
-54
lines changed

4 files changed

+86
-54
lines changed

app/account/register/register.jade

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
)
3636

3737
.form-errors
38-
p.form-error(ng-show="vm.registerForm.country.$error.required") Please choose a country from the list.
38+
p.form-error(ng-show="vm.registerForm.country.$error.required") Please choose a country from the list
39+
40+
.section-break
41+
hr
3942

4043
.validation-bar(ng-class="{ 'error-bar': (vm.registerForm.username.$error.usernameIsFree || vm.registerForm.username.$error.minlength || vm.registerForm.username.$error.maxlength), 'success-bar': (vm.registerForm.username.$valid && !vm.registerForm.username.$error.usernameIsFree) }")
4144
input-sticky-placeholder(sticky-placeholder="Username", ng-model="vm.username")
@@ -85,10 +88,10 @@
8588

8689
p(ng-class="{ 'has-symbol-or-number': (vm.registerForm.password.$dirty && !vm.registerForm.password.$error.hasSymbolOrNumber) }") At least one number or symbol
8790

88-
button(type="submit", tc-busy-button, tc-busy-when="vm.registering", ng-disabled="vm.registerForm.$invalid", ng-class="{'enabled-button': vm.registerForm.$valid}") Join
91+
section.terms
92+
p By clicking "Join," you agree to Topcoder's #[a(href="http://www.topcoder.com/community/how-it-works/terms/", target="_blank") Terms of Service] and #[a(href="http://www.topcoder.com/community/how-it-works/privacy-policy/", target="_blank") Privacy Policy]
8993

90-
section.terms
91-
p By clicking "Join," you agree to Topcoder's #[a(href="http://www.topcoder.com/community/how-it-works/terms/", target="_blank") Terms of Service] and #[a(href="http://www.topcoder.com/community/how-it-works/privacy-policy/", target="_blank") Privacy Policy]
94+
button(type="submit", tc-busy-button, tc-busy-when="vm.registering", ng-disabled="vm.registerForm.$invalid", ng-class="{'enabled-button': vm.registerForm.$valid}") Join
9295

9396
section.social
9497
p ------------ Or Register With ------------
@@ -104,7 +107,7 @@
104107
.ico(ng-click="vm.socialRegister('facebook')")
105108
p Facebook
106109

107-
.join-topcoder
108-
span Already a member?
109-
p.redirect
110-
a(ui-sref="login(vm.$stateParams)") Log in
110+
.join-topcoder
111+
span Already a member?
112+
p.redirect
113+
a(ui-sref="login(vm.$stateParams)") Log in

assets/css/account/account.scss

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@import '../partials/combined';
22

3-
43
.login-container, .register-container, .reset-password-container, .registered-successfully-container {
54
width: 560px;
65
margin: 120px auto 0 auto;
@@ -17,8 +16,6 @@
1716
display: flex;
1817
justify-content: center;
1918
align-items: center;
20-
/* TODO remove workarounds of -ve margin */
21-
margin-top: -66px;
2219
margin-bottom: 30px;
2320

2421
.arrow {
@@ -94,6 +91,7 @@
9491
// Social section
9592
.social {
9693
margin-top: 15px;
94+
margin-bottom: 40px;
9795

9896
p {
9997
color: #A3A3AE;
@@ -161,41 +159,10 @@
161159
}
162160
}
163161
}
164-
165-
.join-topcoder {
166-
display: flex;
167-
flex-flow: row wrap;
168-
margin-top: 10px;
169-
justify-content: center;
170-
171-
span {
172-
display: flex;
173-
align-items: center;
174-
}
175-
176-
.redirect {
177-
border: 1px solid #D1D3D4;
178-
background-color: white;
179-
border-radius : 4px;
180-
width: 111px;
181-
height: 30px;
182-
margin-left: 10px;
183-
display: flex;
184-
align-items: center;
185-
justify-content: center;
186-
@include sofia-pro-light;
187-
text-transform: uppercase;
188-
font-size: 12px;
189-
line-height: 14px;
190-
191-
a {
192-
text-decoration: none;
193-
}
194-
}
195-
}
196162
}
197163

198164
@media (max-width: 767px) {
165+
199166
.login-container, .register-container, .reset-password-container, .registered-successfully-container {
200167
width: 100%;
201168
margin: 0 auto;
@@ -205,8 +172,9 @@
205172
}
206173

207174
form {
208-
margin-left: 10px;
209-
margin-right: 10px;
175+
margin-left: 0px;
176+
padding: 0 20px;
177+
width: 100%;
210178

211179
input[type="text"],
212180
input[type="email"],
@@ -218,11 +186,11 @@
218186
}
219187

220188
.register-container {
221-
margin: 66px auto;
189+
margin: 0 auto;
222190
}
223191

224192
.registered-successfully-container {
225-
margin: 66px auto;
193+
margin: 0 auto;
226194
p.message {
227195
padding: 34px 30px 124px 30px;
228196
}

assets/css/account/register.scss

Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,13 @@
5858

5959
.terms {
6060
margin-top: 10px;
61-
margin-bottom: 10px;
61+
margin-bottom: 20px;
6262

6363
p {
6464
font-size: 12px;
6565
line-height: 15px;
6666
color: #A3A3AE;
6767
}
68-
69-
p:first-child {
70-
margin-bottom: 10px;
71-
}
7268
}
7369

7470
// Social section
@@ -82,7 +78,72 @@
8278
}
8379
}
8480

81+
.section-break {
82+
display: none;
83+
}
84+
}
85+
86+
.join-topcoder {
87+
display: flex;
88+
flex-flow: row wrap;
89+
margin-top: 20px;
90+
justify-content: center;
91+
position: absolute;
92+
top: 0px;
93+
right: 20px;
94+
95+
span {
96+
display: flex;
97+
align-items: center;
98+
}
99+
100+
.redirect {
101+
border: 1px solid #D1D3D4;
102+
background-color: white;
103+
border-radius : 4px;
104+
width: 66px;/* TODO as per design it should be 63px*/
105+
height: 30px;
106+
margin-left: 10px;
107+
display: flex;
108+
align-items: center;
109+
justify-content: center;
110+
@include sofia-pro-light;
111+
text-transform: uppercase;
112+
font-size: 12px;
113+
line-height: 14px;
114+
padding: 8px 12px;
115+
116+
a {
117+
text-decoration: none;
118+
@include sofia-pro-light;
119+
}
120+
}
121+
}
122+
123+
@media (max-width: 767px) {
124+
125+
.register-container {
126+
127+
form {
128+
129+
.first-last-names {
130+
display: flex;
131+
flex-direction: column;
132+
width: 100%;
133+
}
134+
.section-break {
135+
display: block;
136+
137+
hr {
138+
max-width: 180px;
139+
margin: 10px auto 20px auto;
140+
}
141+
}
142+
}
143+
}
144+
85145
.join-topcoder {
86-
margin-bottom: 15px;
146+
position: initial;
147+
margin-top: 30px;
87148
}
88149
}

assets/css/topcoder.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ body {
4747
}
4848

4949
.view-container {
50-
padding-bottom: 60px;
50+
padding-bottom: 30px;
5151
min-height: 480px;
5252
@media screen and (min-device-width: 768px) {
5353
min-width: 768px;

0 commit comments

Comments
 (0)