346 - Bitcoin.com Store banner on Home tab

This commit is contained in:
Sebastiaan Pasma 2018-05-22 17:43:12 +02:00
commit 082686def6
4 changed files with 21 additions and 0 deletions

View file

@ -155,6 +155,14 @@ angular.module('copayApp.controllers').controller('tabHomeController',
externalLinkService.open(url, optIn, title, message, okText, cancelText); externalLinkService.open(url, optIn, title, message, okText, cancelText);
}; };
$scope.openURL = function(url) {
if (platformInfo.isNW) {
require('nw.gui').Shell.openExternal( url );
} else {
window.open(url, '_system');
}
};
$scope.openNotificationModal = function(n) { $scope.openNotificationModal = function(n) {
wallet = profileService.getWallet(n.walletId); wallet = profileService.getWallet(n.walletId);

View file

@ -58,6 +58,13 @@
} }
} }
} }
&-banner {
padding: 0;
&__img {
width: 100%;
display: block;
}
}
} }
.wallet-coin-logo { .wallet-coin-logo {
vertical-align: middle; vertical-align: middle;

BIN
www/img/banner-store.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 642 KiB

View file

@ -85,6 +85,12 @@
</div> </div>
</div> </div>
<div class="list card card-banner">
<a ng-click="openURL('https://store.bitcoin.com/')">
<img class="card-banner__img" src="img/banner-store.png"/>
</a>
</div>
<div class="ng-hide list card" ng-show="walletsBtc[0] && bitpayCardItems.length>0" ng-include="'views/includes/bitpayCardsCard.html'"></div> <div class="ng-hide list card" ng-show="walletsBtc[0] && bitpayCardItems.length>0" ng-include="'views/includes/bitpayCardsCard.html'"></div>
<div class="ng-hide list card" ng-show="walletsBtc[0] && buyAndSellItems.length>0" ng-include="'views/includes/buyAndSellCard.html'"></div> <div class="ng-hide list card" ng-show="walletsBtc[0] && buyAndSellItems.length>0" ng-include="'views/includes/buyAndSellCard.html'"></div>
<div class="ng-hide list card" ng-show="homeIntegrations.length>0" ng-include="'views/includes/homeIntegrations.html'"></div> <div class="ng-hide list card" ng-show="homeIntegrations.length>0" ng-include="'views/includes/homeIntegrations.html'"></div>