Skip to content

Commit b5cd6d2

Browse files
committed
Register page - without design yet. #202
1 parent 42265d3 commit b5cd6d2

File tree

10 files changed

+75
-5
lines changed

10 files changed

+75
-5
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
.LoginForm-inputContainer{
22
margin-top: 10px;
33
margin-bottom: 0px;
4-
margin-left: 8px;
54
width: 80%;
5+
min-width: 300px;
66
}
77

88
.LoginForm-submit{
99
margin-bottom: 40px;
10+
margin-left: 0;
1011
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div>
2+
<md-input-container>
3+
<label>Name</label>
4+
<input type="text" ng-model="vm.name">
5+
</md-input-container>
6+
</div>
7+
8+
<div>
9+
<md-input-container>
10+
<label>Email</label>
11+
<input type="email" ng-model="vm.email">
12+
</md-input-container>
13+
</div>
14+
15+
<div>
16+
<md-input-container>
17+
<label>Password</label>
18+
<input type="password" ng-model="vm.password">
19+
</md-input-container>
20+
</div>
21+
22+
<md-button type="submit" class="md-primary md-raised">Register</md-button>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class RegisterFormController{
2+
constructor(){
3+
'ngInject';
4+
5+
this.name = '';
6+
this.email = '';
7+
this.password = '';
8+
}
9+
}
10+
11+
export const RegisterFormComponent = {
12+
templateUrl: './views/app/components/register-form/register-form.component.html',
13+
controller: RegisterFormController,
14+
controllerAs: 'vm',
15+
bindings: {}
16+
}
17+
18+

angular/app/components/register-form/register-form.less

Whitespace-only changes.

angular/app/pages/login/login.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.Login-formContainer{
2+
margin-top: 40px;
3+
margin-bottom: 40px;
4+
}
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<md-content class="Page-container">
22
<div flex="80" flex-offset="10">
3-
<h1>Login</h1>
3+
<div class="Login-formContainer md-whiteframe-z1" layout="column" layout-align="center center">
4+
<h1 class="md-headline">Login</h1>
45

5-
<login-form></login-form>
6+
<login-form></login-form>
7+
8+
</div>
69
</div>
710
</md-content>

angular/app/pages/register/register.less

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<md-content class="Page-container">
2+
<div flex="80" flex-offset="10">
3+
<div class="md-whiteframe-z1" layout="column" layout-align="center center">
4+
<h1 class="md-headline">Register</h1>
5+
6+
<register-form></register-form>
7+
8+
</div>
9+
</div>
10+
</md-content>

angular/config/RoutesConfig.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,14 @@ export function RoutesConfig($stateProvider, $urlRouterProvider) {
3737
templateUrl: getView('login')
3838
}
3939
}
40-
});
40+
})
41+
.state('app.register', {
42+
url: '/register',
43+
data: {},
44+
views: {
45+
'main@': {
46+
templateUrl: getView('register')
47+
}
48+
}
49+
});
4150
}

angular/index.components.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import {LoginFormComponent} from './app/components/login-form/login-form.component';
2+
import {RegisterFormComponent} from './app/components/register-form/register-form.component';
23

3-
angular.module('app.components').component('loginForm', LoginFormComponent);
4+
angular.module('app.components')
5+
.component('loginForm', LoginFormComponent)
6+
.component('registerForm', RegisterFormComponent);

0 commit comments

Comments
 (0)