Merge pull request #2565 from cmgustavo/bug/ux-transition-splash
Fixes transition of splash and creating wallet
This commit is contained in:
commit
5b506cb361
4 changed files with 12 additions and 56 deletions
|
|
@ -13,8 +13,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body ng-cloak class="ng-cloak">
|
<body ng-cloak class="ng-cloak">
|
||||||
|
|
||||||
<div ui-view="splash"></div>
|
|
||||||
|
|
||||||
<div class="page"
|
<div class="page"
|
||||||
ng-controller="indexController as index"
|
ng-controller="indexController as index"
|
||||||
ng-swipe-disable-mouse
|
ng-swipe-disable-mouse
|
||||||
|
|
@ -37,7 +35,7 @@
|
||||||
|
|
||||||
|
|
||||||
<section
|
<section
|
||||||
ng-class="{'main': index.hasProfile, 'main-dark': !index.hasProfile, 'animation-left': index.swipeLeft,
|
ng-class="{'main': index.hasProfile, 'main-dark': mainDark, 'animation-left': index.swipeLeft,
|
||||||
'animation-right': index.swipeRight}"
|
'animation-right': index.swipeRight}"
|
||||||
ui-view="main"></section>
|
ui-view="main"></section>
|
||||||
<div ui-view="menu"></div>
|
<div ui-view="menu"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="panel text-center m15 splash">
|
<div class="text-center splash">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="medium-6 large-4 medium-centered small-centered large-centered columns">
|
<div class="medium-6 large-4 medium-centered small-centered large-centered columns">
|
||||||
<div class="m50b p20">
|
<div class="m50b p20">
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
<div class="line-b m20b"></div>
|
<div class="line-b m20b"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button ng-click="$root.go('createProfile')" class="button black expand radius " translate> START </button>
|
<div class="row columns start-button">
|
||||||
|
<button ng-click="$root.go('createProfile')" class="button black expand radius " translate> START </button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1079,18 +1079,9 @@ input.ng-invalid-match, input.ng-invalid-match:focus {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel.splash {
|
.splash .start-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 93.8%;
|
bottom: 0;
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel.splash button {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 1rem;
|
|
||||||
left: 1rem;
|
|
||||||
width: 90.5%;
|
|
||||||
z-index: 9999;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.preferences li {
|
.preferences li {
|
||||||
|
|
|
||||||
|
|
@ -21,49 +21,11 @@ angular
|
||||||
url: '/splash',
|
url: '/splash',
|
||||||
needProfile: false,
|
needProfile: false,
|
||||||
views: {
|
views: {
|
||||||
'splash': {
|
'main': {
|
||||||
template: '<div ui-view="steps"></div>',
|
|
||||||
controller: function($state) {
|
|
||||||
$state.transitionTo('splash.one');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('splash.one', {
|
|
||||||
views: {
|
|
||||||
'steps': {
|
|
||||||
templateUrl: 'views/splash/1.html'
|
templateUrl: 'views/splash/1.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('splash.two', {
|
|
||||||
views: {
|
|
||||||
'steps': {
|
|
||||||
templateUrl: 'views/splash/2.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('splash.three', {
|
|
||||||
views: {
|
|
||||||
'steps': {
|
|
||||||
templateUrl: 'views/splash/3.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('splash.four', {
|
|
||||||
views: {
|
|
||||||
'steps': {
|
|
||||||
templateUrl: 'views/splash/4.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('splash.five', {
|
|
||||||
views: {
|
|
||||||
'steps': {
|
|
||||||
templateUrl: 'views/splash/5.html'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.state('walletHome', {
|
.state('walletHome', {
|
||||||
url: '/',
|
url: '/',
|
||||||
walletShouldBeComplete: true,
|
walletShouldBeComplete: true,
|
||||||
|
|
@ -88,7 +50,10 @@ angular
|
||||||
needProfile: false,
|
needProfile: false,
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
templateUrl: 'views/createProfile.html'
|
templateUrl: 'views/createProfile.html',
|
||||||
|
controller: function($scope) {
|
||||||
|
$scope.mainDark = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue