File tree 4 files changed +74
-19
lines changed
4 files changed +74
-19
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,13 @@ body {
48
48
flex-direction : column;
49
49
align-items : center;
50
50
padding : 0 ;
51
- gap : 8px ;
52
51
margin-bottom : 51px ;
53
52
}
54
53
54
+ .topcoder-logo {
55
+ margin-bottom : 8px ;
56
+ }
57
+
55
58
.header-text {
56
59
font-family : 'Barlow Condensed' ;
57
60
font-weight : 500 ;
78
81
width : 100% ;
79
82
display : flex;
80
83
flex-direction : column;
81
- gap : 12px ;
82
84
}
83
85
84
86
.message-wrapper {
@@ -126,20 +128,23 @@ body {
126
128
.digit-group {
127
129
display : flex;
128
130
flex-direction : row;
129
- gap : 12px ;
130
131
margin-bottom : 51px ;
131
132
}
132
133
134
+ .digit-group : not (: last-child ) {
135
+ margin-right : 12px ;
136
+ }
137
+
133
138
.digit-group input {
134
- width : 44 px ;
135
- height : 40 px ;
139
+ width : 38 px ;
140
+ height : 36 px ;
136
141
background-color : # FFFFFF ;
137
142
border : 1px solid # AAAAAA ;
138
143
line-height : 22px ;
139
144
text-align : center;
140
145
font-size : 14px ;
141
146
font-weight : 400 ;
142
- color : # 767676 ;
147
+ color : # 2A2A2A ;
143
148
border-radius : 4px ;
144
149
}
145
150
@@ -184,14 +189,57 @@ body {
184
189
background-clip : text;
185
190
}
186
191
192
+ @media (min-width : 1157px ) {
193
+ .info-mobile {
194
+ display : none;
195
+ }
196
+ }
197
+
187
198
@media (max-width : 1156px ) {
199
+ body {
200
+ background-color : # ffffff ;
201
+ }
202
+
203
+ .page-wrapper {
204
+ margin-top : 0 ;
205
+ }
206
+
188
207
.row {
189
208
background : white;
190
- width : 500 px ;
209
+ width : 375 px ;
191
210
min-height : auto;
192
211
}
193
212
213
+ .left-column {
214
+ width : 375px ;
215
+ }
216
+
194
217
.logo-column {
195
218
display : none;
196
219
}
220
+
221
+ .signin-column {
222
+ padding : 0px 32px 48px 32px ;
223
+ }
224
+
225
+ .signin-header {
226
+ padding-top : 110px ;
227
+ margin-bottom : 88px ;
228
+ }
229
+
230
+ .info {
231
+ padding : 112px 0 0 0 ;
232
+ margin-bottom : 34px ;
233
+ font-size : 14px ;
234
+ line-height : 20px ;
235
+ }
236
+
237
+ .digit-group {
238
+ margin-bottom : 34px ;
239
+ }
240
+
241
+ .digit-group input {
242
+ width : 35px ;
243
+ height : 36px ;
244
+ }
197
245
}
Original file line number Diff line number Diff line change 1
- var qs = ( function ( a ) {
1
+ const qs = ( function ( a ) {
2
2
if ( a == "" ) return { } ;
3
- var b = { } ;
4
- for ( var i = 0 ; i < a . length ; ++ i ) {
5
- var p = a [ i ] . split ( "=" , 2 ) ;
3
+ let b = { } ;
4
+ for ( let i = 0 ; i < a . length ; ++ i ) {
5
+ let p = a [ i ] . split ( "=" , 2 ) ;
6
6
if ( p . length == 1 ) b [ p [ 0 ] ] = "" ;
7
7
else b [ p [ 0 ] ] = decodeURIComponent ( p [ 1 ] . replace ( / \+ / g, " " ) ) ;
8
8
}
Original file line number Diff line number Diff line change 1
- var qs = ( function ( a ) {
1
+ const qs = ( function ( a ) {
2
2
if ( a == "" ) return { } ;
3
- var b = { } ;
4
- for ( var i = 0 ; i < a . length ; ++ i ) {
5
- var p = a [ i ] . split ( "=" , 2 ) ;
3
+ let b = { } ;
4
+ for ( let i = 0 ; i < a . length ; ++ i ) {
5
+ let p = a [ i ] . split ( "=" , 2 ) ;
6
6
if ( p . length == 1 ) b [ p [ 0 ] ] = "" ;
7
7
else b [ p [ 0 ] ] = decodeURIComponent ( p [ 1 ] . replace ( / \+ / g, " " ) ) ;
8
8
}
9
9
return b ;
10
10
} ) ( window . location . search . substr ( 1 ) . split ( "&" ) ) ;
11
11
12
+ const encode = function ( str ) {
13
+ str = str . replace ( / [ \x26 \x0A \< > ' " ] / g, function ( str ) { return "&#" + str . charCodeAt ( 0 ) + ";" } )
14
+ return String ( str ) . replace ( / [ ^ \w . ] / gi, function ( c ) {
15
+ return '&#' + c . charCodeAt ( 0 ) + ';' ;
16
+ } ) ;
17
+ }
18
+
12
19
$ ( document ) . ready ( function ( ) {
13
20
window . history . forward ( ) ;
14
21
let formAction = qs [ "formAction" ] || "#" ;
@@ -57,7 +64,7 @@ $(document).ready(function () {
57
64
}
58
65
const errorMessage = qs [ "message" ] ;
59
66
if ( errorMessage ) {
60
- $ ( "#error" ) . html ( errorMessage ) ;
67
+ $ ( "#error" ) . html ( encode ( errorMessage ) ) ;
61
68
$ ( "#error" ) . closest ( ".message-wrapper" ) . fadeIn ( ) ;
62
69
}
63
70
Original file line number Diff line number Diff line change 36
36
< img class ="topcoder-logo " src ="./images/topcoderlogo-black.png ">
37
37
< div class ="header-text "> Topcoder login</ div >
38
38
</ div >
39
- < div class ="info "> Please check the email you used to register your
40
- Topcoder account for an email with a < span class ="black "> 6 digit code</ span > .
41
- Enter the code below to login</ div >
39
+ < div class ="info "> Please check the email you used to register your< br >
40
+ Topcoder account for an email < br class =" info-mobile " > with a < span class ="black "> 6 digit code</ span > .< br >
41
+ < br class =" info-mobile " > Enter the code below to login</ div >
42
42
< div class ="messages ">
43
43
< div class ="message-wrapper ">
44
44
< div role ="alert " class ="message error ">
You can’t perform that action at this time.
0 commit comments