added material design and rank names to social container
parent
d135cc74ba
commit
78932fb17c
@ -1,12 +1,22 @@
|
|||||||
<div id="header">
|
<!--<div id="header">
|
||||||
<span class="title">Friends</span>
|
<span class="title">Friends</span>
|
||||||
<button id="new" type="submit"><span><i class="fa fa-plus fa-3x" aria-hidden="true"></i></span></button>
|
<button id="new" type="submit"><span><i class="fa fa-plus fa-3x" aria-hidden="true"></i></span></button>
|
||||||
<button id="invitations" type="submit"><span><i class="fa fa-envelope-o fa-3x" aria-hidden="true"></i></span></button>
|
<button id="invitations" type="submit"><span><i class="fa fa-envelope-o fa-3x" aria-hidden="true"></i></span></button>
|
||||||
</div>
|
</div>-->
|
||||||
<div id="friendslist">
|
<mat-toolbar><span>Friends</span></mat-toolbar>
|
||||||
<div class="frienditem" *ngFor="let friend of friends"
|
<div id="friendlist">
|
||||||
|
<!--<div class="frienditem" *ngFor="let friend of friends"
|
||||||
[class.selected]="friend === selectedFriend" (click)="showFriendProfile(friend)">
|
[class.selected]="friend === selectedFriend" (click)="showFriendProfile(friend)">
|
||||||
<div class="picture">Pic</div>
|
<div class="picture">Pic</div>
|
||||||
<div class="name"><span>{{friend.name}}</span></div>
|
<div class="name"><span>{{friend.name}}</span></div>
|
||||||
</div>
|
</div>-->
|
||||||
|
<mat-card class="friend-card" *ngFor="let friend of friends"
|
||||||
|
[class.selected]="friend === selectedFriend" (click)="showFriendProfile(friend)"
|
||||||
|
tabindex="0">
|
||||||
|
<mat-card-header>
|
||||||
|
<div mat-card-avatar class="profile-picture"></div>
|
||||||
|
<mat-card-title>{{friend.name}}</mat-card-title>
|
||||||
|
<mat-card-subtitle>{{friend.rankname}}</mat-card-subtitle>
|
||||||
|
</mat-card-header>
|
||||||
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,12 +1,20 @@
|
|||||||
<div id="header">
|
<!--<div id="header">
|
||||||
<span class="title">Groups</span>
|
<span class="title">Groups</span>
|
||||||
<button id="new" type="submit"><span><i class="fa fa-plus fa-3x" aria-hidden="true"></i></span></button>
|
<button id="new" type="submit"><span><i class="fa fa-plus fa-3x" aria-hidden="true"></i></span></button>
|
||||||
<button id="invitations" type="submit"><span><i class="fa fa-envelope-o fa-3x" aria-hidden="true"></i></span></button>
|
<button id="invitations" type="submit"><span><i class="fa fa-envelope-o fa-3x" aria-hidden="true"></i></span></button>
|
||||||
</div>
|
</div>-->
|
||||||
<div id="groupslist">
|
<mat-toolbar><span>Groups</span></mat-toolbar>
|
||||||
<div class="groupitem" *ngFor="let group of groups"
|
<div id="grouplist">
|
||||||
|
<!--<div class="groupitem" *ngFor="let group of groups"
|
||||||
[class.selected]="group === selectedGroup" (click)="showGroup(group)">
|
[class.selected]="group === selectedGroup" (click)="showGroup(group)">
|
||||||
<div class="picture">Pic</div>
|
<div class="picture">Pic</div>
|
||||||
<div class="name"><span>{{group.name}}</span></div>
|
<div class="name"><span>{{group.name}}</span></div>
|
||||||
</div>
|
</div>-->
|
||||||
|
<mat-card class="group-card" *ngFor="let group of groups"
|
||||||
|
[class.selected]="group === selectedGroup" (click)="showGroup(group)">
|
||||||
|
<mat-card-header>
|
||||||
|
<div mat-card-avatar class="group-picture"></div>
|
||||||
|
<mat-card-title>{{group.name}}</mat-card-title>
|
||||||
|
</mat-card-header>
|
||||||
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
|
import { Levellist } from 'src/app/models/levellist';
|
||||||
|
|
||||||
export class FriendInfo {
|
export class FriendInfo {
|
||||||
|
levellist: Levellist = new Levellist();
|
||||||
id: number
|
id: number
|
||||||
name: string
|
name: string
|
||||||
|
rankname: string
|
||||||
|
|
||||||
constructor(pId: number, pName: string) {
|
constructor(pId: number, pName: string, pLevel: number) {
|
||||||
this.id = pId
|
this.id = pId
|
||||||
this.name = pName
|
this.name = pName
|
||||||
|
this.rankname = this.levellist.getLevelName(pLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue