From ffc3e3a4cd8ced85c3515b668036885e8ff6140d Mon Sep 17 00:00:00 2001 From: youbertt Date: Thu, 11 Jul 2019 23:03:57 +0200 Subject: [PATCH] CT # ToolBar + Sign Modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Chipo toolbar Réalisation Modal Sign in --- src/app/app.component.css | 8 ++-- src/app/app.component.html | 90 ++++++++++++++++++++++++++++++++++++-- src/app/app.component.ts | 15 +++++-- src/app/app.module.ts | 10 ++++- 4 files changed, 113 insertions(+), 10 deletions(-) diff --git a/src/app/app.component.css b/src/app/app.component.css index 50b0158..067be35 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -22,9 +22,6 @@ p-toolbar { border:none; } - - - p-toolbar .ui-button { background-color: transparent ; opacity: 1; @@ -32,3 +29,8 @@ p-toolbar .ui-button { border: none; } +p-dialog div > * { + margin: auto !important; +} + + diff --git a/src/app/app.component.html b/src/app/app.component.html index 7a70cd6..8a60a68 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -12,15 +12,14 @@ - - + - + Log In @@ -38,6 +37,91 @@ + + + + Sign In + + +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+ +
+
+
+ + +
+
+ +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+ + + + +
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3658f5e..06b41b6 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -12,8 +12,11 @@ export class AppComponent implements OnInit{ items : MenuItem[]; - public Connected : false; - display: boolean = false; + connected : boolean = false; + displayLogInModal: boolean = false; + displaySignInModal: boolean = false; + displayPersonalField: boolean = false; + birthday: Date; constructor(){} ngOnInit(){ @@ -26,8 +29,14 @@ export class AppComponent implements OnInit{ public logIn() { - this.display = true; + this.displayLogInModal = true; + this.connected = true; console.log('helloooo'); // change route -> /login } + public signUp() + { + this.displaySignInModal = true; + + } } diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 4b10c23..bbf9c40 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -16,6 +16,10 @@ import { ButtonModule } from 'primeng/button'; import { SplitButtonModule } from 'primeng/splitbutton'; import {DialogModule} from 'primeng/dialog'; import {InputTextModule} from 'primeng/inputtext'; +import {CalendarModule} from 'primeng/calendar'; +import { FormsModule } from '@angular/forms'; + + @@ -40,7 +44,11 @@ import {InputTextModule} from 'primeng/inputtext'; ButtonModule, SplitButtonModule, DialogModule, - InputTextModule + InputTextModule, + CalendarModule, + FormsModule, + + ],