From 092aa743e9492728f8adb6228d3d58b39d6655f9 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Thu, 21 Feb 2019 19:14:31 -0600 Subject: [PATCH] refactored to include username and action buttons. --- .../app/profile/login/login.component.html | 30 +++++++++++-------- .../app/profile/login/login.component.scss | 27 +++++++++++++++-- .../src/app/profile/login/login.component.ts | 3 ++ 3 files changed, 45 insertions(+), 15 deletions(-) diff --git a/projects/account/src/app/profile/login/login.component.html b/projects/account/src/app/profile/login/login.component.html index f9c3def..45f5f9f 100644 --- a/projects/account/src/app/profile/login/login.component.html +++ b/projects/account/src/app/profile/login/login.component.html @@ -1,17 +1,21 @@ - Login + Profile -
- - Email Address - - Uniquely identifies your account - -
+ +
+
+ Email: +

{{account.emailAddress}}

+
+
+ Username: +

{{account.username}}

+
+
+
+ + +
+
diff --git a/projects/account/src/app/profile/login/login.component.scss b/projects/account/src/app/profile/login/login.component.scss index e07e674..ba24334 100644 --- a/projects/account/src/app/profile/login/login.component.scss +++ b/projects/account/src/app/profile/login/login.component.scss @@ -1,9 +1,32 @@ +@import "~@angular/material/theming"; +@import "mycroft-colors"; +@import "~src/stylesheets/components/buttons"; @import "~src/stylesheets/components/cards"; + mat-card { @include section-card; - margin-left: auto; - margin-right: auto; + + mat-card-content { + margin-left: 16px; + margin-right: 8px; + + .mat-subheading-2 { + color: mat-color($mycroft-accent, A700); + font-weight: bold; + margin: 8px; + min-width: 120px; + } + .mat-body { + margin: 0; + min-width: 200px; + } + + button { + @include action-button-primary; + margin: 8px; + } + } } diff --git a/projects/account/src/app/profile/login/login.component.ts b/projects/account/src/app/profile/login/login.component.ts index b368fa5..5f1bdb1 100644 --- a/projects/account/src/app/profile/login/login.component.ts +++ b/projects/account/src/app/profile/login/login.component.ts @@ -1,5 +1,7 @@ import { Component, Input } from '@angular/core'; +import { faEdit } from '@fortawesome/free-solid-svg-icons'; + import { Account } from '../profile.service'; @Component({ @@ -9,6 +11,7 @@ import { Account } from '../profile.service'; }) export class LoginComponent { @Input() account: Account; + public editIcon = faEdit; constructor() { } }