added motivational top messages for users

This commit is contained in:
arzynik 2013-09-23 15:46:43 -07:00
parent de2f43c2b4
commit 3ae58e76a8
3 changed files with 12 additions and 1 deletions

View File

@ -7,10 +7,13 @@
</div>
<div ng-show="restaurants">
<div class="home-welcome home-tagline main-content-readable" ng-class="{'home-welcome-user': account.user.id_user}">
<div class="home-welcome home-tagline main-content-readable" ng-class="{'home-welcome-anony-hasuser': account.user.id_user}">
<h1 ng-bind-html-unsafe="slogan"></h1>
<h2 ng-bind-html-unsafe="tagline"></h2>
</div>
<div class="home-welcome home-tagline main-content-readable home-welcome-user" ng-show="account.user.id_user">
<h1 ng-bind-html-unsafe="motivationText"></h1>
</div>
<div class="content-padder-before"></div>
<div class="content-padder">

View File

@ -2863,6 +2863,11 @@ h1.about-header {
@media(max-width:767px) {
.home-welcome-anony-hasuser {
display: none;
}
}
@media(min-width:768px) {
.home-welcome-user {
display: none;
}

View File

@ -100,6 +100,9 @@ NGApp.controller( 'RestaurantsCtrl', function ( $scope, $rootScope, $http, $loca
$location.path( '/' );
return;
}
var motivationText = ['You are awesome','You are loved','You are beautiful','You\'re at the top of your game'];
$scope.motivationText = motivationText[Math.floor(Math.random() * motivationText.length)];
var restaurants = RestaurantsService;