Merge branch 'master' of https://github.com/sagidayan/SE-Hub into UI

This commit is contained in:
Matan Bar Yosef 2015-06-16 18:31:01 +03:00
commit 191bbdc634
7 changed files with 57 additions and 2 deletions

View file

@ -70,7 +70,7 @@ def getUserByToken(token):
return bad_request("No User Found") return bad_request("No User Found")
@user_routes.route('/api/users/updateUser/<string:token>', methods=["GET"]) @user_routes.route('/api/users/updateUser/<string:token>', methods=["POST"])
@auto.doc() @auto.doc()
def updateUser(token): def updateUser(token):
""" """

View file

@ -1,3 +1,13 @@
@import url(http://fonts.googleapis.com/earlyaccess/alefhebrew.css);
body{
font-family: "Alef Hebrew",
Helvetica Neue,
Helvetica,
Arial,
sans-serif;
}
.menuBtn { .menuBtn {
background-color: transparent; background-color: transparent;
border: none; border: none;
@ -154,4 +164,10 @@ body.noscroll
border-left: 2px black solid; border-left: 2px black solid;
border-right: 2px black solid; border-right: 2px black solid;
border-radius: 1px black solid; border-radius: 1px black solid;
}*/ }*/
.gray-font{
color: #7f7f7f;
font-size: 300%;
text-shadow:#e0e0e0 1px 1px 0;
}

View file

@ -33,6 +33,10 @@ app.config(['$routeProvider', '$locationProvider',
.when('/register', { .when('/register', {
templateUrl: 'templates/views/register.html', templateUrl: 'templates/views/register.html',
controller: 'registerController' controller: 'registerController'
})
.when('/home', {
templateUrl: 'templates/views/home.html',
controller: 'homeController'
}); });
} }

View file

@ -0,0 +1,10 @@
/**
* Created by sagi on 6/16/15.
*/
angular.module('SeHub')
.controller('homeController', ['$scope', '$cookies', '$cookieStore', '$window', '$location', '$mdToast', '$mdDialog', 'apiService', '$rootScope', function ($scope, $cookies, $cookieStore, $window, $location, $mdToast, $mdDialog, apiService ,$rootScope)
{
}]);

View file

@ -17,7 +17,10 @@ angular.module('SeHub')
$scope.isInRegisterMode = true; $scope.isInRegisterMode = true;
$scope.loadingData = false; $scope.loadingData = false;
$location.path('/register') $location.path('/register')
}else{
$location.path('/home')
} }
}) })
$scope.loadingData = false; $scope.loadingData = false;

View file

@ -2,4 +2,25 @@
<div class="loader" ng-if="loadingData"> <div class="loader" ng-if="loadingData">
<md-progress-circular md-mode="indeterminate"></md-progress-circular> <md-progress-circular md-mode="indeterminate"></md-progress-circular>
</div> </div>
<md-content layout-padding>
<md-card class="gray-font">
<div layout="row">
<div class="spacer"></div>
<div>
<h1><i class="fa fa-graduation-cap"></i></h1>
</div>
<div class="spacer"></div>
</div>
<div layout="row">
<div class="spacer"></div>
<div>
<h1>Welcome To SE-Hub</h1>
<p>
This Is your Home Page
</p>
</div>
<div class="spacer"></div>
</div>
</md-card>
</md-content>
</div> </div>

View file

@ -68,6 +68,7 @@
<!-- Controllers --> <!-- Controllers -->
<script src="templates/js/controllers/mainController.js"></script> <script src="templates/js/controllers/mainController.js"></script>
<script src="templates/js/controllers/homeController.js"></script>
<script src="templates/js/controllers/registerController.js"></script> <script src="templates/js/controllers/registerController.js"></script>
</body> </body>