diff --git a/css/main.css b/css/main.css index e69de29bb..ae9d7f5d8 100644 --- a/css/main.css +++ b/css/main.css @@ -0,0 +1,3 @@ +body { + padding-top: 50px; +} diff --git a/index.html b/index.html index a42ce0ba0..b9672ef22 100644 --- a/index.html +++ b/index.html @@ -9,15 +9,37 @@ -
cosign
- Signin - Home + -
+
+
+
- @@ -40,6 +61,8 @@ + + diff --git a/js/app.js b/js/app.js index 4ca90b43c..824bf8a74 100644 --- a/js/app.js +++ b/js/app.js @@ -2,5 +2,9 @@ angular.module('cosign',[ 'ngRoute', - 'ui.bootstrap' + 'ui.bootstrap', + 'cosign.header' ]); + +angular.module('cosign.header', []); + diff --git a/js/controllers/header.js b/js/controllers/header.js new file mode 100644 index 000000000..231a80d17 --- /dev/null +++ b/js/controllers/header.js @@ -0,0 +1,15 @@ +'use strict'; + +angular.module('cosign.header').controller('HeaderController', + function($scope, $rootScope, $location) { + + $scope.init = function() { + $rootScope.isLogged = false; + }; + + $scope.signout = function() { + $rootScope.isLogged = false; + + $location.path('signin'); + }; + }); diff --git a/js/network.js b/js/network.js deleted file mode 100644 index 4e0ebcb16..000000000 --- a/js/network.js +++ /dev/null @@ -1,7 +0,0 @@ - -var cosign = angular.module('cosign', []); -cosign.service('network', function() { - this.f = function() { - return 2; - }; -}); diff --git a/js/services/network.js b/js/services/network.js new file mode 100644 index 000000000..52b0edc2e --- /dev/null +++ b/js/services/network.js @@ -0,0 +1,8 @@ +'use strict'; + +angular.module('cosign.network').factory('Network', + function() { + this.f = function() { + return 2; + }; +});