refactored to include username and action buttons.
parent
f17ae8eda9
commit
092aa743e9
|
@ -1,17 +1,21 @@
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-toolbar>
|
<mat-toolbar>
|
||||||
<span>Login</span>
|
<span>Profile</span>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
<div fxLayout.gt-sm="row" fxLayout="column">
|
<mat-card-content fxLayout="row" fxLayout.lt-md="column" fxLayoutAlign="space-between center">
|
||||||
<mat-form-field fxFlex.gt-sm="50%" appearance="outline">
|
<div fxFlex>
|
||||||
<mat-label>Email Address</mat-label>
|
<div class="profile-text" fxLayout="row" fxLayoutAlign="start center">
|
||||||
<input
|
<span class="mat-subheading-2">Email:</span>
|
||||||
matInput
|
<p class="mat-body">{{account.emailAddress}}</p>
|
||||||
required
|
</div>
|
||||||
type="email"
|
<div fxLayout="row" fxLayoutAlign="start center">
|
||||||
value="{{account.emailAddress}}"
|
<span class="mat-subheading-2">Username:</span>
|
||||||
>
|
<p class="mat-body">{{account.username}}</p>
|
||||||
<mat-hint>Uniquely identifies your account</mat-hint>
|
</div>
|
||||||
</mat-form-field>
|
</div>
|
||||||
</div>
|
<div fxLayout="column" fxLayoutAlign="center">
|
||||||
|
<button mat-button>CHANGE USERNAME</button>
|
||||||
|
<button mat-button>CHANGE PASSWORD</button>
|
||||||
|
</div>
|
||||||
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
|
@ -1,9 +1,32 @@
|
||||||
|
@import "~@angular/material/theming";
|
||||||
|
@import "mycroft-colors";
|
||||||
|
@import "~src/stylesheets/components/buttons";
|
||||||
@import "~src/stylesheets/components/cards";
|
@import "~src/stylesheets/components/cards";
|
||||||
|
|
||||||
|
|
||||||
mat-card {
|
mat-card {
|
||||||
@include section-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
|
import { faEdit } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
import { Account } from '../profile.service';
|
import { Account } from '../profile.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -9,6 +11,7 @@ import { Account } from '../profile.service';
|
||||||
})
|
})
|
||||||
export class LoginComponent {
|
export class LoginComponent {
|
||||||
@Input() account: Account;
|
@Input() account: Account;
|
||||||
|
public editIcon = faEdit;
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue