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

Commit 5bcce6b

Browse files
committed
DASHBOARD LIVE: TCO17 Broadcast
1 parent 83f454d commit 5bcce6b

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

app/directives/notification/notification.jade

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
.details {{config.details}}
77
i.expand.fa.fa-plus(ng-click="vm.toggle()")
88
.expanded(ng-show="vm.expanded", ng-style="{'background-image': 'url('+vm.loadImage(config.backgroundImage)+')'}")
9-
a.mask(href="{{config.redirectTo}}")
10-
 
119
.left(ng-style="{'height': (config.height || vm.defaultHeight) + 'px'}")
1210
.header {{config.headerExpand}}
1311
.details {{config.detailsExpand}}
1412
a.action(ng-show="config.redirectText && config.redirectTo", href="{{config.redirectTo}}") {{config.redirectText}}
15-
.right(ng-if="config.videoCode", ng-style="{'height': (config.height || vm.defaultHeight) + 'px'}")
13+
.right(ng-if="config.videoCode", ng-style="{'height': (config.videoHeight || config.height || vm.defaultHeight) + 'px'}")
1614
.btn-play(ng-hide="vm.loadVideo")
1715
i.fa.fa-play-circle-o(ng-click="vm.loadVideo=true;")
1816
div Play Video
19-
iframe(ng-if="vm.loadVideo" ng-src="{{vm.videoUrl(config.videoCode)}}", allowfullscreen, frameborder="0", width="100%" height="{{config.height||vm.defaultHeight}}")
17+
iframe(ng-if="vm.loadVideo" ng-src="{{vm.videoUrl(config.videoCode)}}", allowfullscreen, frameborder="0", width="100%" height="{{config.videoHeight || config.height||vm.defaultHeight}}")
2018
.live(ng-show="config.liveExpand") LIVE
2119
i.collapse.fa.fa-remove(ng-click="vm.toggle()")
+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
[
22
{
33
"header": "TCO17 Live Broadcast",
4-
"details": "TCO17 Finals Live Broadcast Schedule - Save the Date!",
5-
"headerExpand": "TCO17 Finals Live Broadcast Schedule - Save the Date!",
6-
"detailsExpand": "TCO17 Finals Live Broadcast Schedule - Save the Date! Watch the competitions live, staff and finalist interviews, and be a part of our flagship community event!",
4+
"details": "Watch now!",
75
"backgroundImage": "tco17-live-broadcast.jpg",
86
"redirectTo": "https://tco17.topcoder.com/videos",
97
"redirectText": "TCO17 Live Broadcast Schedule",
10-
"live": false,
11-
"liveExpand": false,
12-
"customTag": {
13-
"text": "Announcement"
14-
},
15-
"height": 760
8+
"live": true,
9+
"liveExpand": true,
10+
"height": 600,
11+
"videoCode": "http://player.twitch.tv/?channel=topcoder_official",
12+
"videoHeight": 480
1613
}
1714
]

assets/css/directives/notification.directive.scss

+13-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@
5454
}
5555
}
5656
.expanded{
57-
background-position: center;
58-
background-size: cover;
57+
background-color: $tc-black;
58+
background-position: 0 0;
59+
background-size: 50% 100%;
60+
background-repeat: no-repeat;
5961
color: $tc-black;
6062
display: flex;
6163
position: relative;
6264
@media screen and (max-width: 768px) {
65+
background-size: 100% 50%;
6366
flex-direction: column;
6467
}
6568
.mask{
@@ -71,8 +74,6 @@
7174
z-index: 1;
7275
}
7376
.left{
74-
padding-top: 70px;
75-
padding-right: 64px;
7677
flex: 1;
7778
height: 100%;
7879
position: relative;
@@ -93,8 +94,8 @@
9394
}
9495
.action{
9596
position: absolute;
96-
bottom: 40px;
97-
left: 60px;
97+
bottom: 100px;
98+
left: 150px;
9899
background-color: white;
99100
padding: 10px 20px;
100101
border-radius: 26px;
@@ -106,6 +107,12 @@
106107
display: flex;
107108
align-items: center;
108109
justify-content: space-around;
110+
margin-top: 80px;
111+
width: 50%;
112+
@media screen and (max-width: 768px) {
113+
margin-top: 0;
114+
width: 100%;
115+
}
109116
.btn-play{
110117
text-align: center;
111118
font-size: 26px;
37.8 KB
Loading

0 commit comments

Comments
 (0)