Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
feat(.com): add public block alert for .com migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore3 committed Jun 18, 2018
1 parent 5280349 commit b03d457
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/partials/public.pug
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.login-pg(ng-class="{'display-block': isUIOverflow}")
include ./bc-logo-header
testnet-warning
.banners-container
testnet-warning
block-alert.public-block-alert-overrides(ng-if="showPublicBanner" config="publicBannerConfig")
.overflow-scroll.flex-justify.flex-center
.flex-center.flex-justify.flex-column
.flex.flex-justify
Expand Down
15 changes: 14 additions & 1 deletion assets/css/modules/_signin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,23 @@ div.login-form {
height: 100%;
position: relative;
background-color: $blue;
testnet-warning {
.banners-container {
top: 100px;
position: relative;
}
.public-block-alert-overrides {
.block-alert {
border: none;
padding: 10px 40px;
}
* {
margin: 0px !important;
}
span, p {
font-weight: 300 !important;
margin-bottom: 10px !important;
}
}
nav {
position: fixed;
width: 100%;
Expand Down
5 changes: 5 additions & 0 deletions assets/js/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ function AppRouter ($stateProvider, $urlRouterProvider) {
$scope.rootURL = env.rootURL;
$scope.versionMyWallet = env.versionMyWallet;
$scope.versionFrontend = env.versionFrontend;

$scope.publicBannerConfig = ComMigration.isOnDotCom()
? env.web.serviceAlert.publicDotCom
: env.web.serviceAlert.publicDotInfo
$scope.showPublicBanner = $scope.publicBannerConfig != null
});

let overflows = ['/reset-2fa'];
Expand Down
19 changes: 19 additions & 0 deletions rootApp/Resources/wallet-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@
},
"web": {
"serviceAlert": {
"__publicDotInfo": {
"type": "info",
"header": {
"en": "We’re packing our bags and preparing to move…domains!"
},
"sections": [
{
"body": {
"en": "To make way for our new and exciting products coming this year, we’re saying hello to our new home. Your Blockchain Wallet will soon be changing URLs as it's combined with our company site, blockchain.com."
}
}
],
"action": {
"title": {
"en": "Read more about what to expect here."
},
"link": "https://www.example.com/"
}
},
"__global": {
"type": "warning",
"hideType": "collapse",
Expand Down

0 comments on commit b03d457

Please sign in to comment.