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

AS#125999129126033, 1 Million users hero banner on Dashboard #797

Merged
merged 2 commits into from
May 9, 2016
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
4 changes: 2 additions & 2 deletions app/directives/tc-banner/tc-banner.jade
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.tc-banner-placeholder(class="{{vm.theme}}")
.image
img(ng-src="{{vm.img}}")
.title(ng-bind="vm.title")
.title(ng-bind="vm.title", ng-show="vm.title !== null")
.content(ng-transclude, ng-show="transcluded")
.description(ng-bind-html="vm.description")
.description(ng-bind-html="vm.description", ng-show="vm.description !== null")
.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
2 changes: 2 additions & 0 deletions app/my-dashboard/my-dashboard.jade
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

//- .ttl
//- tc-banner(theme="black", banner-name="ttl")
.one-million
tc-banner(theme="black", banner-name="1million")

.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'
}]
},
'1million': {
title: null,
img: require('../../assets/images/1M-banner-hero.png'),
description: null,
ctas: [{
title: 'Learn More',
url: 'https://www.topcoder.com/blog/1-million-members-strong/',
cssClass: 'tc-btn tc-btn-s'
}]
}
// Commenting out instead of deleting in case there is
// another one with a similar format soon
Expand Down
22 changes: 20 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, .ttl, .community-updates {
.challenges, .srms, .programs, .tco, .ttl, .one-million, .community-updates {
@include module-l;
margin-top: 1px;
width: 100%;
Expand All @@ -34,7 +34,25 @@
}
}

.challenges, .srms, .programs, .tco, .ttl, .community-updates {
.one-million {
.tc-banner-placeholder {
background: none $tc-gray-90;
.image {
img {
width: auto;
}
}

.ctas {
// specific css override to reduce the gap between image and ctas
// ideally we should have separate title, image and description
// however, here we have all 3 in single image
margin-top: 0px;
}
}
}

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

Expand Down
Binary file added assets/images/1M-banner-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.