Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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/tc-banner/tc-banner.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
img(ng-src="{{vm.img}}")
.title(ng-bind="vm.title")
.content(ng-transclude, ng-show="transcluded")
.description(ng-bind="vm.description")
.description(ng-bind-html="vm.description")
.ctas
.cta(ng-repeat="link in vm.ctas")
a(class="{{link.cssClass}}", title="{{link.title}}", ng-href="{{link.url}}", ng-if="link.url") {{link.title}}
Expand Down
3 changes: 3 additions & 0 deletions app/my-dashboard/my-dashboard.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

.challenges(id="challenges", ui-view="my-challenges")

.ttl
tc-banner(theme="black", banner-name="ttl")

.tco
tc-banner(theme="black", banner-name="tco16")

Expand Down
10 changes: 10 additions & 0 deletions app/services/bannerDataService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ import angular from 'angular'
url: 'http://tco16.topcoder.com/latest/overview/',
cssClass: 'tc-btn tc-btn-s tco-cta'
}]
},
'ttl': {
title: 'Episode #3 | Featuring Jesse D’Amato Ford',
img: require('../../assets/images/team-live-logo.png'),
description: 'APR 15 / 10:30am EST / Live on <a href="https://plus.google.com/events/c86vvsum04lmq3bnd0bqp719img"> #GoogleHangoutOnAir</a>',
ctas: [{
title: 'Tune In',
url: 'https://plus.google.com/events/c86vvsum04lmq3bnd0bqp719img',
cssClass: 'tc-btn tc-btn-s'
}]
}
}
}
Expand Down
15 changes: 13 additions & 2 deletions assets/css/my-dashboard/my-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
background-color: $white;
}

.challenges, .srms, .programs, .tco, .community-updates {
.challenges, .srms, .programs, .tco, .ttl, .community-updates {
@include module-l;
margin-top: 1px;
width: 100%;
Expand All @@ -23,7 +23,18 @@
}
}

.challenges, .srms, .programs, .tco, .community-updates {
.ttl {
.tc-banner-placeholder {
background: url(../../images/team-live-bg.png) repeat;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we require the image?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, webpack (via css-loader) would automatically require the image for import and url tags. I can see the hashed image url in developer tools. Please let me know if my understanding about this is wrong here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh you're totally right :)

.image {
img {
width: auto;
}
}
}
}

.challenges, .srms, .programs, .tco, .ttl, .community-updates {
padding-top: 0px;
}

Expand Down
Binary file added assets/images/team-live-bg.png
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/team-live-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.