added motivational top messages for users
This commit is contained in:
parent
de2f43c2b4
commit
3ae58e76a8
@ -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">
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user