From d939976ce57dbd080ef9321df34429438de1e27b Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 31 Jan 2018 17:42:46 +0900 Subject: [PATCH] signup component & page commit --- .../component/signup/signup.component.html | 36 ++++++++++++++++-- .../component/signup/signup.component.scss | 37 +++++++++++++++++++ .../component/signup/signup.component.ts | 18 +++++++++ 3 files changed, 87 insertions(+), 4 deletions(-) diff --git a/src/app/packages/member/component/signup/signup.component.html b/src/app/packages/member/component/signup/signup.component.html index 6113177..e327025 100644 --- a/src/app/packages/member/component/signup/signup.component.html +++ b/src/app/packages/member/component/signup/signup.component.html @@ -1,9 +1,7 @@ - Signup - Register an account - + Signup -
+ @@ -18,6 +16,36 @@
{{ formErrors.password }}
+ + + +
+ {{ formErrors.pwConfirm }} +
+ + + +
+ {{ formErrors.name }} +
+ + + +
+ {{ formErrors.phone }} +
+ + + + +
+ {{ formErrors.company }} +
+
diff --git a/src/app/packages/member/component/signup/signup.component.scss b/src/app/packages/member/component/signup/signup.component.scss index e69de29..070c040 100644 --- a/src/app/packages/member/component/signup/signup.component.scss +++ b/src/app/packages/member/component/signup/signup.component.scss @@ -0,0 +1,37 @@ +$gray-lighter: #eceeef !default; +$image_path: "/assets/images/" !default; + +$prefix: 'signup'; + +.#{$prefix} { + + &-conainer { + min-height: 100%; + background-size: cover; + padding: 100px; + } + + &-main { + position: relative; + margin: 0 auto; + width: 500px; + } +} + +.full-width { + width: 100%; +} + +.help { + +} + +.is-danger { + +} + +.redirect { + font-size: 14px; + margin-left: 10px; + color: #00AAAA; +} diff --git a/src/app/packages/member/component/signup/signup.component.ts b/src/app/packages/member/component/signup/signup.component.ts index 37c129b..1421ef7 100644 --- a/src/app/packages/member/component/signup/signup.component.ts +++ b/src/app/packages/member/component/signup/signup.component.ts @@ -41,6 +41,24 @@ export class SignupComponent implements OnInit { Validators.maxLength(25) ] ], + 'pwConfirm': ['', [ + Validators.pattern('^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9]+)$'), + Validators.minLength(6), + Validators.maxLength(25) + ] + ], + 'name': ['', [ + Validators.required + ] + ], + 'phone': ['', [ + Validators.required + ] + ], + 'company': ['', [ + Validators.required + ] + ], }); }