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

Dashboard announcement 12 02 2018 #1269

Merged
merged 2 commits into from
Feb 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/directives/notification/notification.jade
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
.header {{config.headerExpand}}
.details {{config.detailsExpand}}
a.action(ng-show="config.redirectText && config.redirectTo", href="{{config.redirectTo}}") {{config.redirectText}}
.right(ng-if="config.videoCode", ng-style="{'height': (config.videoHeight || config.height || vm.defaultHeight) + 'px'}")
.right(ng-if="config.videoCode")
.btn-play(ng-hide="vm.loadVideo")
i.fa.fa-play-circle-o(ng-click="vm.loadVideo=true;")
div Play Video
27 changes: 12 additions & 15 deletions app/my-dashboard/notifications/news.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
[
{
"header": "Bonus Problem Writer Payments!",
"details": "February Special, Bonus Cash for Creating Algo Problems",
"headerExpand": "Bonus Problem Writer Payments!",
"detailsExpand": "The whole month of February can earn you bonus cash for writing Algorithm Problems. ",
"backgroundImageDesktop": "PW-desktop.jpg",
"backgroundImageTablet": "PW-tablet.jpg",
"backgroundImageMobile": "PW-mobile.jpg",
"redirectTo": "https://www.topcoder.com/blog/showing-some-love-problem-writers/",
"redirectText": "Read More",
"live": false,
"liveExpand": false,
"customTag": {
"text": "Announcement"
},
"videoCode": ""
"header": "QA",
"details": "Live Reveal of New Topcoder Track w/ Will Price",
"headerExpand": "QA Track Revealed",
"detailsExpand": "Join Nick as he interviews Will Price who will be introducing Topcoder's newest track. Spoiler Alert: You could win a TCO Trip!",
"backgroundImageDesktop": "DarkCircles-desktop.jpg",
"backgroundImageTablet": "DarkCircles-tablet.jpg",
"backgroundImageMobile": "DarkCircles-mobile.jpg",
"redirectTo": "https://www.topcoder.com/all-you-need-to-know-about-qa-challenges/",
"redirectText": "Learn More Here",
"live": true,
"liveExpand": true,
"videoCode": "https://www.youtube.com/embed/LF6rc40-TSo"
}
]
62 changes: 48 additions & 14 deletions assets/css/directives/notification.directive.scss
Original file line number Diff line number Diff line change
@@ -79,6 +79,16 @@ $desktop-width: 1024px;
color: $tc-black;
display: flex;
position: relative;

/* ======
With Video
======*/
@include mobile {
flex-direction: column;
padding: 20px;
align-items: center;
}

.notification-bg-desktop,
.notification-bg-tablet,
.notification-bg-mobile {
@@ -124,16 +134,20 @@ $desktop-width: 1024px;
height: 400px;
}
@include tablet {
height: 375px;
height: 325px;
display: flex;
flex-direction: column;
padding: 20px;
}
@include mobile {
height: 250px;
// Without video

// height: 250px;
display: flex;
flex-direction: column;
padding: 14px;
padding-top: 0;
margin-top: 0;
}
}
.header{
@@ -142,27 +156,35 @@ $desktop-width: 1024px;
margin-bottom: 14px;
color: #FFF;
@include desktop {
margin-top: 34px;
width: 50%;
margin-top: 75px;
width: 100%;
padding: 20px 0 13px 44px;
}
@include tablet {
font-size: 36px;
text-align: center;
margin-bottom: 90px;
/*
======
With Video
======*/
flex: 1;
text-align: center;
margin-top:50px;
margin-bottom:20px;

/*
======
With Logo
======
font-size: 36px;
flex: 1;
text-align: center;
*/

}
@include mobile {
font-size: 18px;
font-size: 20px;
text-align: center;
padding-top: 55px;
padding-top: 20px;
padding-bottom: 10px;
/*
======
@@ -180,16 +202,16 @@ $desktop-width: 1024px;
color: #FFF;
position: relative;
@include desktop {
max-width: 50%;
max-width: 100%;
padding-left: 44px;
font-size: 26px;
line-height: 31px;
margin-bottom: 55px;
}
@include tablet {
font-size: 25px;
line-height: 30px;
margin-bottom: 105px;
font-size: 22px;
line-height: 28px;
margin-bottom: 40px;
text-align: center;
/*
======
@@ -203,7 +225,7 @@ $desktop-width: 1024px;
}
@include mobile {
font-size: 14px;
margin-bottom: 55px;
margin-bottom: 25px;
text-align: center;
/*
======
@@ -242,9 +264,21 @@ $desktop-width: 1024px;
justify-content: space-around;
margin: 55px;
width: 50%;
@media screen and (max-width: 768px) {
@include desktop {
height: 350px;
}
@include tablet {
min-height: 250px;
margin: 10px;
margin-top: 65px;
margin-bottom: 20px;
}
@include mobile {
margin-top: 0;
width: 100%;
max-width: 450px;
min-height: 250px;
margin: 10px;
}
.btn-play{
text-align: center;
Binary file added assets/images/news/DarkCircles-desktop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/DarkCircles-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/DarkCircles-tablet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/news/PW-desktop.jpg
Binary file not shown.
Binary file removed assets/images/news/PW-mobile.jpg
Binary file not shown.
Binary file removed assets/images/news/PW-tablet.jpg
Binary file not shown.
Binary file added assets/images/news/tshirt-desktop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/tshirt-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/tshirt-tablet.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.