-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
695ced6
commit 0db0928
Showing
5 changed files
with
41 additions
and
25 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
ContactsManager/app/contacts/contact-card/contact-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="mdl-card__media"> | ||
<img [src]="'app/assets/images/' + contact.image" /> | ||
</div> | ||
<div class="mdl-card__title"> | ||
<h4 class="mdl-card__title-text">{{contact.name}}</h4> | ||
</div> | ||
<div class="mdl-card__supporting-text"> | ||
<span class="mdl-typography--font-light mdl-typography--subhead"> | ||
{{contact.address}}, {{contact.city}}, {{contact.state}} {{contact.zip}} | ||
</span> | ||
</div> | ||
<div class="mdl-card__supporting-text"> | ||
<span class="mdl-typography--font-light mdl-typography--subhead"> | ||
{{contact.email}} | ||
</span> | ||
</div> | ||
<div class="mdl-card__actions"> | ||
<a [href]="'http:https://twitter.com/' + contact.twitter" class="mdl-button mdl-js-button mdl-typography--text-uppercase" target="_blank"> | ||
@{{contact.twitter}} <i class="material-icons">chevron_right</i> | ||
</a> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
ContactsManager/app/contacts/contact-card/contact-card.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, Input } from 'angular2/core'; | ||
import { Contact } from '../contact'; | ||
|
||
@Component({ | ||
selector: 'contact-card', | ||
templateUrl: 'app/contacts/contact-card/contact-card.component.html', | ||
styles: [` | ||
.mdl-card img { | ||
width: 100%; | ||
} | ||
`] | ||
}) | ||
export class ContactCarComponent { | ||
@Input() contact: Contact; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,6 @@ | |
} | ||
|
||
|
||
.mdl-card img { | ||
width: 100%; | ||
} | ||
|
||
|
||
/*.mdl-card { | ||
width: 320px; | ||
height: 320px; | ||
|
21 changes: 2 additions & 19 deletions
21
ContactsManager/app/contacts/display-contacts/display-contacts.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
<div class="mdl-grid"> | ||
<div class="mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--3dp" *ngFor="#contact of contactsList"> | ||
<div class="mdl-card__media"> | ||
<img [src]="'app/assets/images/' + contact.image"/> | ||
</div> | ||
<div class="mdl-card__title"> | ||
<h4 class="mdl-card__title-text">{{contact.name}}</h4> | ||
</div> | ||
<div class="mdl-card__supporting-text"> | ||
<span class="mdl-typography--font-light mdl-typography--subhead">{{contact.address}}, {{contact.city}}, {{contact.state}} {{contact.zip}}</span> | ||
</div> | ||
<div class="mdl-card__supporting-text"> | ||
<span class="mdl-typography--font-light mdl-typography--subhead">{{contact.email}}</span> | ||
</div> | ||
<div class="mdl-card__actions"> | ||
<a class="android-link mdl-button mdl-js-button mdl-typography--text-uppercase" [href]="'http:https://twitter.com/' + contact.twitter" target="_blank"> | ||
@{{contact.twitter}} | ||
<i class="material-icons">chevron_right</i> | ||
</a> | ||
</div> | ||
<div *ngFor="#contact of contactsList" class="mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone mdl-card mdl-shadow--3dp"> | ||
<contact-card [contact]="contact"></contact-card> | ||
</div> | ||
</div> |
4 changes: 3 additions & 1 deletion
4
ContactsManager/app/contacts/display-contacts/display-contacts.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters