Skip to content

Commit

Permalink
Merge pull request #88 from diggyk/master
Browse files Browse the repository at this point in the history
Added loading indicator on home page
  • Loading branch information
jathanism committed Nov 5, 2015
2 parents de2c81b + 5b4e1bc commit 2645315
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hermes/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.3"
__version__ = "0.5.4"
28 changes: 27 additions & 1 deletion hermes/webapp/src/css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -923,18 +923,28 @@ a {
padding: 20px;
float: none;
margin-top: 2em;
background: @btn-color;
min-width: 250px;
&.ng-enter {
margin-top: 3em;
opacity: 0;
opacity: 0.25;
background: @med-gray;
-webkit-transition: 0.5s ease-out all;
-moz-transition: 0.5s ease-out all;
-ms-transition: 0.5s ease-out all;
-o-transition: 0.5s ease-out all;
transition: 0.5s ease-out all;;
-webkit-box-shadow: 0 0 5px 5px @med-gray;
-moz-box-shadow: 0 0 5px 5px @med-gray;
box-shadow: 0 0 5px 5px @med-gray;
}
&.ng-enter-active {
margin-top: 2em;
opacity: 1;
background: @btn-color;
-webkit-box-shadow: 0 0 0px 0px @med-gray;
-moz-box-shadow: 0 0 0px 0px @med-gray;
box-shadow: 0 0 0px 0px @med-gray;
}
}
.banner {
Expand Down Expand Up @@ -963,4 +973,20 @@ a {
font-size: 1.5em;
text-align: center;
}
.quest-info-holder {
text-align: center;
margin-top: 3em;
background: @med-gray;
padding: 20px;
opacity: 0.25;
display: inline-block;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
min-width: 250px;
color: @light-gray;
-webkit-box-shadow: 0 0 5px 5px @med-gray;
-moz-box-shadow: 0 0 5px 5px @med-gray;
box-shadow: 0 0 5px 5px @med-gray;
}
}
24 changes: 22 additions & 2 deletions hermes/webapp/src/templates/userHome.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,27 @@
<div class="col-md-12 banner" ng-if="ctrl.user">Hello {{ctrl.user}}</div>
</div>
<div class="row">
<div class="col-md-3 col-md-offset-3 quest-info"><button ng-if="ctrl.totalQuests != null" ng-click="ctrl.goToQuestsPage()">{{ctrl.totalQuests}} total open quests.<br/>{{ctrl.totalUserCreatedQuests}} created by you.</button></div>
<div class="col-md-3 labor-info"><button ng-if="ctrl.totalUserLabors != null" ng-click="ctrl.goToLaborsPage()">{{ctrl.totalLabors}} total open labors.<br/>{{ctrl.totalUserLabors}} {{ctrl.totalUserLabors == 1 ? "is" : "are"}} for you.</button></div>
<div class="col-md-3 col-md-offset-3 quest-info">
<button ng-if="ctrl.totalQuests != null"
ng-click="ctrl.goToQuestsPage()">{{ctrl.totalQuests}} total
open quests.<br/>{{ctrl.totalUserCreatedQuests}} created by
you.
</button>
<div ng-if="ctrl.totalQuests == null" class="quest-info-holder">
Loading<br/>
Info
</div>
</div>
<div class="col-md-3 labor-info">
<button ng-if="ctrl.totalUserLabors != null"
ng-click="ctrl.goToLaborsPage()">{{ctrl.totalLabors}} total
open labors.<br/>{{ctrl.totalUserLabors}}
{{ctrl.totalUserLabors == 1 ? "is" : "are"}} for you.
</button>
<div ng-if="ctrl.totalUserLabors == null" class="quest-info-holder">
Loading<br/>
Info
</div>
</div>
</div>
</div>

0 comments on commit 2645315

Please sign in to comment.