From 4d13c5f831ac2b9b3e84a3c62ca1efa88f7d3ab2 Mon Sep 17 00:00:00 2001 From: Dustin Noyes Date: Tue, 21 Aug 2018 12:41:26 -0700 Subject: [PATCH 1/2] initial style commit --- .../{ionic.scss => ionic.css} | 54 ++- .../src/aws-amplify-ionic-module.ts | 2 +- .../authenticator.component.core.ts | 2 +- .../authenticator.component.ionic.ts | 78 +++-- .../confirm-sign-in-component.ionic.ts | 27 +- .../confirm-sign-up.component.ionic.ts | 46 ++- .../forgot-password.component.ionic.ts | 64 ++-- .../require-new-password.component.ionic.ts | 112 ++----- .../sign-in.component.ionic.ts | 58 ++-- .../sign-up.component.ionic.ts | 307 +++++++++++++++--- .../chatbot/chatbot.component.ionic.ts | 12 +- .../photo-picker.component.ionic.ts | 26 +- .../s3-album.component.ionic.ts | 21 +- .../s3-image.component.ionic.ts | 12 +- 14 files changed, 521 insertions(+), 300 deletions(-) rename packages/aws-amplify-angular/{ionic.scss => ionic.css} (73%) diff --git a/packages/aws-amplify-angular/ionic.scss b/packages/aws-amplify-angular/ionic.css similarity index 73% rename from packages/aws-amplify-angular/ionic.scss rename to packages/aws-amplify-angular/ionic.css index 05937ae33fe..cdf8542ae0c 100644 --- a/packages/aws-amplify-angular/ionic.scss +++ b/packages/aws-amplify-angular/ionic.css @@ -70,4 +70,56 @@ --ion-color-dark-contrast-rgb: 255,255,255; --ion-color-dark-shade: #1e1e1e; --ion-color-dark-tint: #383838; -} \ No newline at end of file +} + +:host { + --padding-start: 0px; +} + +.amplify-input-label-ionic { + height: 18px; + width: 280.32px; + color: #152939; + font-family: "Amazon Ember"; + font-size: 14px; + letter-spacing: 0.4px; + line-height: 18px; +} + +.amplify-input-ionic { + padding-top: 16px; + padding-bottom: 17px; + padding-right: 8px; + padding-bottom: 8px; +} + +.amplify-authenticator-ionic { + box-shadow: none !important; +} + +.amplify-form-button-ionic { + height: 50px; + width: 289px; +} + +.amplify-form-header-ionic { + width: 275px !important; + font-family: "Amazon Ember"; +} + +.amplify-phone-ionic-selection { + min-width: 100px; +}; + +.amplify-phone-ionic-input { + max-width: 264px; +} + +.amplify-interactions-container-ionic { + width: 430px !important; +} + +.amplify-form-input-interactions-ionic { + width: 100%; + margin: 0.5em 0; +} diff --git a/packages/aws-amplify-angular/src/aws-amplify-ionic-module.ts b/packages/aws-amplify-angular/src/aws-amplify-ionic-module.ts index e45e4591691..44311365e76 100644 --- a/packages/aws-amplify-angular/src/aws-amplify-ionic-module.ts +++ b/packages/aws-amplify-angular/src/aws-amplify-ionic-module.ts @@ -39,7 +39,7 @@ const components = [ entryComponents: [ ...components ], - providers: [ AmplifyService ], + providers: [ AmplifyService], schemas: [CUSTOM_ELEMENTS_SCHEMA], exports: [ ...components diff --git a/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.core.ts b/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.core.ts index 298029e9657..d7037230c53 100644 --- a/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.core.ts +++ b/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.core.ts @@ -49,7 +49,7 @@ const template = ` }) export class AuthenticatorComponentCore { authState: AuthState = { - state: 'loading', + state: 'signIn', user: null }; diff --git a/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.ionic.ts b/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.ionic.ts index 931b26599b9..7574bf5b882 100644 --- a/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.ionic.ts +++ b/packages/aws-amplify-angular/src/components/authenticator/authenticator/authenticator.component.ionic.ts @@ -4,48 +4,44 @@ import { AmplifyService, AuthState } from '../../../providers'; import { AuthenticatorComponentCore } from './authenticator.component.core'; const template = ` -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
+
+ + + + + + + + + + + + + +
-` +`; @Component({ selector: 'amplify-authenticator-ionic', diff --git a/packages/aws-amplify-angular/src/components/authenticator/confirm-sign-in-component/confirm-sign-in-component.ionic.ts b/packages/aws-amplify-angular/src/components/authenticator/confirm-sign-in-component/confirm-sign-in-component.ionic.ts index f1e1d8534d8..ce0fb680195 100644 --- a/packages/aws-amplify-angular/src/components/authenticator/confirm-sign-in-component/confirm-sign-in-component.ionic.ts +++ b/packages/aws-amplify-angular/src/components/authenticator/confirm-sign-in-component/confirm-sign-in-component.ionic.ts @@ -5,30 +5,27 @@ import { ConfirmSignInComponentCore } from './confirm-sign-in-component.core' const template = `
- -
- -
- +
Confirm your sign in code
- - Code + + Code * - Confirm +
+
+ Confirm Code +
+