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

Commit 32c28b3

Browse files
committed
Merge pull request #193 from appirio-tech/mobile-empty-state-ios
Finish mobile empty state on dashboard and add source sans pro fonts
2 parents 6cfa105 + d7b7039 commit 32c28b3

File tree

16 files changed

+117
-70
lines changed

16 files changed

+117
-70
lines changed

app/my-dashboard/programs/programs.controller.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@
2323
activate();
2424

2525
function activate() {
26-
2726
MemberCertService.getMemberRegistration(userId, CONSTANTS.SWIFT_PROGRAM_ID)
2827
.then(function(res) {
29-
if (res === undefined || res === null) {
28+
if (res == null) {
3029
vm.registered = false;
3130
vm.loading = false;
3231
} else {

app/my-dashboard/programs/programs.jade

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
.section-loading(ng-show="vm.loading")
22

33
section.ios(ng-hide="vm.loading")
4-
h1.section-title #[span iOS]: Show Your Skills
4+
.unregistered(ng-hide="vm.registered")
5+
img(src="/images/learn-and-improve.png", srcset="/images/learn-and-improve2x.png 2x")
56

6-
.unregistered(ng-hide="vm.registered || vm.loading")
77
.join-program
8-
.logo
9-
i.fa.fa-apple.fa-3x
8+
h3 #[span iOS]: Show Your Skills
109

11-
p iOS Dev Community
10+
h4 Take the first steps to stand out in the Community
1211

13-
.call-to-action(ng-click="vm.registerUser()")
14-
p Join Us
12+
p Experienced and proven iOS developers are in high-demand. Prove your skills by earning these iOS topcoder badges and gain exclusive access to iOS challenges and prize accelerators, special previews into content and releases, and special community-related events and info.
1513

16-
.registered(ng-show="vm.registered && !vm.loading")
14+
a View all the Details
15+
16+
//- .call-to-action(ng-click="vm.registerUser()")
17+
//- p Join Us
18+
19+
.registered(ng-show="vm.registered")
20+
h1.section-title #[span iOS]: Show Your Skills
1721

1822
.registered-badge
1923
i.fa.fa-apple.fa-3x

assets/css/account/account.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
flex-direction: column;
1010
text-align: center;
1111
justify-content: center;
12-
@include source-sans;
12+
@include source-sans-regular;
1313

1414
// Basic element stylings
1515
h1 {
@@ -33,7 +33,7 @@
3333
padding: 0;
3434
padding-left: 15px;
3535
border: 0;
36-
@include source-sans;
36+
@include source-sans-regular;
3737
font-size: 16px;
3838
color: #231F20;
3939
}

assets/css/directives/challenge-tiles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
min-height: 36px;
111111
margin-bottom: 25px;
112112
color: #3D3D3D;
113-
@include source-sans;
113+
@include source-sans-regular;
114114
font-size: 13px;
115115
line-height: 18px;
116116
}

assets/css/directives/toggle-password-with-tips.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toggle-password-with-tips {
1414
padding-right: 10px;
1515
border: 0;
1616

17-
@include source-sans;
17+
@include source-sans-regular;
1818
font-size: 16px;
1919
background-color: $white;
2020
color: #231F20;

assets/css/directives/toggle-password.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toggle-password {
1414
padding-right: 10px;
1515
border: 0;
1616

17-
@include source-sans;
17+
@include source-sans-regular;
1818
font-size: 16px;
1919
background-color: $white;
2020
color: #231F20;

assets/css/layout/footer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import '../partials/combined';
22

33
footer {
4-
@include source-sans;
4+
@include source-sans-regular;
55
background-color: $light-black;
66
color: $light-gray;
77
min-height: 150px;

assets/css/my-dashboard/my-dashboard.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
width: 100%;
1717
}
1818

19+
.programs {
20+
@media only screen and (max-width: 450px) {
21+
padding-top: 10px;
22+
}
23+
}
24+
1925
.section-title {
2026
@include sofia-pro-bold;
2127
font-size: 22px;

assets/css/my-dashboard/programs.scss

Lines changed: 43 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,63 @@
11
@import '../partials/combined';
22

33
.programs {
4-
min-width: 1242px;
5-
6-
.section-title {
7-
margin-bottom: 35px;
8-
9-
span {
10-
text-transform: none;
11-
}
4+
.section-loading {
5+
min-height: 500px;
126
}
137

14-
section.ios {
15-
min-height: 175px;
16-
}
8+
section.ios { min-height: 175px; }
179

18-
a {
19-
color: inherit;
20-
text-decoration: none;
10+
h1.section-title {
11+
span { text-transform: none; }
2112
}
2213

23-
.join-program {
24-
height: 175px;
25-
background-color: #e7e7e7;
14+
.unregistered {
2615
display: flex;
27-
flex-direction: row;
16+
flex-direction: column;
17+
align-items: center;
18+
width: 300px;
2819

29-
& > div {
30-
flex: 1;
31-
display: flex;
32-
text-align: center;
33-
align-items: center;
20+
img {
21+
width: 100%;
3422
}
23+
}
3524

36-
.logo {
37-
justify-content: center;
25+
.join-program {
26+
width: 260px;
27+
padding-bottom: 40px;
3828

39-
p {
40-
margin-left: 20px;
41-
}
29+
h3 {
30+
margin-top: 30px;
31+
@include sofia-pro-light;
32+
font-size: 23px;
33+
text-transform: uppercase;
34+
color: #3D3D3D;
35+
36+
span { text-transform: none; }
4237
}
4338

44-
.call-to-action {
45-
display: flex;
46-
flex-direction: row;
47-
justify-content: center;
39+
h4 {
40+
margin-top: 10px;
41+
@include source-sans-light;
42+
font-size: 18px;
43+
line-height: 24px;
44+
color: #A3A3AE;
45+
}
4846

49-
justify-content: space-around;
50-
@include source-sans-bold;
51-
color: #727272;
52-
font-size: 22px;
53-
cursor: pointer;
47+
p {
48+
margin-top: 20px;
49+
@include source-sans-regular;
50+
font-size: 13px;
51+
line-height: 26px;
52+
}
5453

55-
p {
56-
width: 255px;
57-
line-height: 1.2;
58-
border-radius: 5px;
59-
padding: 10px;
60-
background-color: $dark-gray;
61-
margin: 10px;
62-
color: $white;
63-
}
54+
a {
55+
display: block;
56+
margin-top: 30px;
57+
font-size: 13px;
58+
color: $primary-color;
59+
text-decoration: none;
60+
text-transform: uppercase;
6461
}
6562
}
6663

assets/css/partials/_fonts.scss

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@
164164
font-style: italic;
165165
}
166166

167+
/********** SOURCE SANS PRO **********/
168+
@font-face {
169+
font-family: 'Source Sans Pro';
170+
src: url('/fonts/SourceSansPro-Light-webfont.eot');
171+
src: url('/fonts/SourceSansPro-Light-webfont.eot?#iefix') format('embedded-opentype'),
172+
url('/fonts/SourceSansPro-Light-webfont.woff') format('woff'),
173+
url('/fonts/SourceSansPro-Light-webfont.ttf') format('truetype'),
174+
url('/fonts/SourceSansPro-Light-webfont.svg#webfont') format('svg');
175+
font-weight: 300;
176+
}
167177

168178
@font-face {
169179
font-family: 'Source Sans Pro';
@@ -174,3 +184,34 @@
174184
url('/fonts/SourceSansPro-Regular-webfont.svg#webfont') format('svg');
175185
font-weight: normal;
176186
}
187+
188+
@font-face {
189+
font-family: 'Source Sans Pro';
190+
src: url('/fonts/SourceSansPro-It-webfont.eot');
191+
src: url('/fonts/SourceSansPro-It-webfont.eot?#iefix') format('embedded-opentype'),
192+
url('/fonts/SourceSansPro-It-webfont.woff') format('woff'),
193+
url('/fonts/SourceSansPro-It-webfont.ttf') format('truetype'),
194+
url('/fonts/SourceSansPro-It-webfont.svg#webfont') format('svg');
195+
font-weight: normal;
196+
font-style: italic;
197+
}
198+
199+
@font-face {
200+
font-family: 'Source Sans Pro';
201+
src: url('/fonts/SourceSansPro-Semibold-webfont.eot');
202+
src: url('/fonts/SourceSansPro-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
203+
url('/fonts/SourceSansPro-Semibold-webfont.woff') format('woff'),
204+
url('/fonts/SourceSansPro-Semibold-webfont.ttf') format('truetype'),
205+
url('/fonts/SourceSansPro-Semibold-webfont.svg#webfont') format('svg');
206+
font-weight: 600;
207+
}
208+
209+
@font-face {
210+
font-family: 'Source Sans Pro';
211+
src: url('/fonts/SourceSansPro-Bold-webfont.eot');
212+
src: url('/fonts/SourceSansPro-Bold-webfont.eot?#iefix') format('embedded-opentype'),
213+
url('/fonts/SourceSansPro-Bold-webfont.woff') format('woff'),
214+
url('/fonts/SourceSansPro-Bold-webfont.ttf') format('truetype'),
215+
url('/fonts/SourceSansPro-Bold-webfont.svg#webfont') format('svg');
216+
font-weight: 700;
217+
}

assets/css/partials/_mixins.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
font-weight: 300;
4545
}
4646

47-
@mixin source-sans {
47+
@mixin source-sans-regular {
4848
font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
4949
font-weight: 400;
5050
}
@@ -241,7 +241,7 @@
241241
padding: 0;
242242
padding-left: 15px;
243243
border: 0;
244-
@include source-sans;
244+
@include source-sans-regular;
245245
font-size: 16px;
246246
color: #231F20;
247247
}

assets/css/peer-review/peer-review.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
h1 {
6060
@include ellipsis;
61-
@include source-sans;
61+
@include source-sans-regular;
6262
display: inline-block;
6363
vertical-align: middle;
6464
font-size: 38px;
@@ -70,7 +70,7 @@
7070
}
7171

7272
table.review-info {
73-
@include source-sans;
73+
@include source-sans-regular;
7474
margin-top: 15px;
7575
margin-left: 5px;
7676

@@ -106,7 +106,7 @@
106106
background-color: $white;
107107

108108
.scorecard {
109-
@include source-sans;
109+
@include source-sans-regular;
110110
color: $dark-gray;
111111

112112
h5.description {

assets/css/peer-review/reviewStatus.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
.review-status-container {
44
h1 {
5-
@include source-sans;
5+
@include source-sans-regular;
66
font-size: 38px;
77
color: $light-black;
88
margin-top: 11px;
@@ -69,7 +69,7 @@
6969
width: 100%;
7070
color: $dark-gray;
7171
text-align: center;
72-
@include source-sans;
72+
@include source-sans-regular;
7373

7474
thead {
7575
background-color: $table-head-gray;

assets/css/topcoder.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ html {
1212
}
1313

1414
body {
15-
@include source-sans;
15+
@include source-sans-regular;
1616
background-color: $ui-page-gray;
1717
}
1818

assets/images/learn-and-improve.png

156 KB
Loading

assets/images/learn-and-improve2x.png

685 KB
Loading

0 commit comments

Comments
 (0)