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

Commit 80e77bc

Browse files
Merge pull request #1269 from appirio-tech/dashboard-Announcement-12-02-2018
Dashboard announcement 12 02 2018
2 parents d8e889b + 0cb5017 commit 80e77bc

File tree

12 files changed

+61
-30
lines changed

12 files changed

+61
-30
lines changed

app/directives/notification/notification.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
.header {{config.headerExpand}}
1414
.details {{config.detailsExpand}}
1515
a.action(ng-show="config.redirectText && config.redirectTo", href="{{config.redirectTo}}") {{config.redirectText}}
16-
.right(ng-if="config.videoCode", ng-style="{'height': (config.videoHeight || config.height || vm.defaultHeight) + 'px'}")
16+
.right(ng-if="config.videoCode")
1717
.btn-play(ng-hide="vm.loadVideo")
1818
i.fa.fa-play-circle-o(ng-click="vm.loadVideo=true;")
1919
div Play Video
Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
[
22
{
3-
"header": "Bonus Problem Writer Payments!",
4-
"details": "February Special, Bonus Cash for Creating Algo Problems",
5-
"headerExpand": "Bonus Problem Writer Payments!",
6-
"detailsExpand": "The whole month of February can earn you bonus cash for writing Algorithm Problems. ",
7-
"backgroundImageDesktop": "PW-desktop.jpg",
8-
"backgroundImageTablet": "PW-tablet.jpg",
9-
"backgroundImageMobile": "PW-mobile.jpg",
10-
"redirectTo": "https://www.topcoder.com/blog/showing-some-love-problem-writers/",
11-
"redirectText": "Read More",
12-
"live": false,
13-
"liveExpand": false,
14-
"customTag": {
15-
"text": "Announcement"
16-
},
17-
"videoCode": ""
3+
"header": "QA",
4+
"details": "Live Reveal of New Topcoder Track w/ Will Price",
5+
"headerExpand": "QA Track Revealed",
6+
"detailsExpand": "Join Nick as he interviews Will Price who will be introducing Topcoder's newest track. Spoiler Alert: You could win a TCO Trip!",
7+
"backgroundImageDesktop": "DarkCircles-desktop.jpg",
8+
"backgroundImageTablet": "DarkCircles-tablet.jpg",
9+
"backgroundImageMobile": "DarkCircles-mobile.jpg",
10+
"redirectTo": "https://www.topcoder.com/all-you-need-to-know-about-qa-challenges/",
11+
"redirectText": "Learn More Here",
12+
"live": true,
13+
"liveExpand": true,
14+
"videoCode": "https://www.youtube.com/embed/LF6rc40-TSo"
1815
}
1916
]

assets/css/directives/notification.directive.scss

Lines changed: 48 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ $desktop-width: 1024px;
7979
color: $tc-black;
8080
display: flex;
8181
position: relative;
82+
83+
/* ======
84+
With Video
85+
======*/
86+
@include mobile {
87+
flex-direction: column;
88+
padding: 20px;
89+
align-items: center;
90+
}
91+
8292
.notification-bg-desktop,
8393
.notification-bg-tablet,
8494
.notification-bg-mobile {
@@ -124,16 +134,20 @@ $desktop-width: 1024px;
124134
height: 400px;
125135
}
126136
@include tablet {
127-
height: 375px;
137+
height: 325px;
128138
display: flex;
129139
flex-direction: column;
130140
padding: 20px;
131141
}
132142
@include mobile {
133-
height: 250px;
143+
// Without video
144+
145+
// height: 250px;
134146
display: flex;
135147
flex-direction: column;
136148
padding: 14px;
149+
padding-top: 0;
150+
margin-top: 0;
137151
}
138152
}
139153
.header{
@@ -142,27 +156,35 @@ $desktop-width: 1024px;
142156
margin-bottom: 14px;
143157
color: #FFF;
144158
@include desktop {
145-
margin-top: 34px;
146-
width: 50%;
159+
margin-top: 75px;
160+
width: 100%;
147161
padding: 20px 0 13px 44px;
148162
}
149163
@include tablet {
150164
font-size: 36px;
151165
text-align: center;
152-
margin-bottom: 90px;
166+
/*
167+
======
168+
With Video
169+
======*/
170+
flex: 1;
171+
text-align: center;
172+
margin-top:50px;
173+
margin-bottom:20px;
174+
153175
/*
154176
======
155177
With Logo
156178
======
157-
font-size: 36px;
158179
flex: 1;
159180
text-align: center;
160181
*/
182+
161183
}
162184
@include mobile {
163-
font-size: 18px;
185+
font-size: 20px;
164186
text-align: center;
165-
padding-top: 55px;
187+
padding-top: 20px;
166188
padding-bottom: 10px;
167189
/*
168190
======
@@ -180,16 +202,16 @@ $desktop-width: 1024px;
180202
color: #FFF;
181203
position: relative;
182204
@include desktop {
183-
max-width: 50%;
205+
max-width: 100%;
184206
padding-left: 44px;
185207
font-size: 26px;
186208
line-height: 31px;
187209
margin-bottom: 55px;
188210
}
189211
@include tablet {
190-
font-size: 25px;
191-
line-height: 30px;
192-
margin-bottom: 105px;
212+
font-size: 22px;
213+
line-height: 28px;
214+
margin-bottom: 40px;
193215
text-align: center;
194216
/*
195217
======
@@ -203,7 +225,7 @@ $desktop-width: 1024px;
203225
}
204226
@include mobile {
205227
font-size: 14px;
206-
margin-bottom: 55px;
228+
margin-bottom: 25px;
207229
text-align: center;
208230
/*
209231
======
@@ -242,9 +264,21 @@ $desktop-width: 1024px;
242264
justify-content: space-around;
243265
margin: 55px;
244266
width: 50%;
245-
@media screen and (max-width: 768px) {
267+
@include desktop {
268+
height: 350px;
269+
}
270+
@include tablet {
271+
min-height: 250px;
272+
margin: 10px;
273+
margin-top: 65px;
274+
margin-bottom: 20px;
275+
}
276+
@include mobile {
246277
margin-top: 0;
247278
width: 100%;
279+
max-width: 450px;
280+
min-height: 250px;
281+
margin: 10px;
248282
}
249283
.btn-play{
250284
text-align: center;
261 KB
Loading
21.5 KB
Loading
161 KB
Loading

assets/images/news/PW-desktop.jpg

-267 KB
Binary file not shown.

assets/images/news/PW-mobile.jpg

-41.5 KB
Binary file not shown.

assets/images/news/PW-tablet.jpg

-186 KB
Binary file not shown.

assets/images/news/tshirt-desktop.jpg

188 KB
Loading

assets/images/news/tshirt-mobile.jpg

27.4 KB
Loading

assets/images/news/tshirt-tablet.jpg

111 KB
Loading

0 commit comments

Comments
 (0)