diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html index b2b709e..267060a 100644 --- a/src/app/components/profile/profile.component.html +++ b/src/app/components/profile/profile.component.html @@ -1,37 +1,67 @@ Profile
- - - - - - - - - - - - - - - - - - - - -
name: {{user.username}}
handle: {{user.handle}}
profile ID: {{user.userID}}
points: {{user.points}}
level: {{user.level}} ({{rankname}})
-

What does the level mean?

+
+ + +
+ {{user.username}} + {{user.handle}} +
+ + + +
name:
+ + + + +
handle:
+ + + + +
profileID:
+ + + + +
points:
+ + + + +
level:
+ + + + +
level name:
+ + +
{{user.username}}
{{user.handle}}
{{user.userID}}
{{user.points}}
{{user.level}}
{{rankname}}
+
+
+
+
+

What does the level mean?

There are different levels you can reach through green behaviour. Collect 100 points to level up! The levels are called:

-
    -
  1. - {{level.name}} -
  2. -
-

How to level up?

+ + + + + + + + + + + +
level {{level.level}} level name {{level.name}}
+
+

How to level up?

There is an always growing list of things you can do, to support your environment and earn points to level up at the same time. diff --git a/src/app/components/profile/profile.component.sass b/src/app/components/profile/profile.component.sass index b252bbf..c108503 100644 --- a/src/app/components/profile/profile.component.sass +++ b/src/app/components/profile/profile.component.sass @@ -6,9 +6,33 @@ max-width: 1200px margin: 0 auto +#profile-card-container + margin: 0 auto + width: 100% + max-width: 690px + .mat-table width: 100% max-width: 690px margin: 0 auto .mat-header-cell - padding-right: 0.5em \ No newline at end of file + padding-right: 0.5em + +.profile-picture + background-image: url(https://material.angular.io/assets/img/examples/shiba1.jpg) + background-size: cover + + +#profile-table + width: 100% + .mat-table + display: block + .mat-cell, + .mat-header-cell + align-items: center + display: flex + min-height: 48px + padding: 0 + flex: 1 + overflow: hidden + word-wrap: break-word diff --git a/src/app/components/profile/profile.component.ts b/src/app/components/profile/profile.component.ts index b39669d..6bb5708 100644 --- a/src/app/components/profile/profile.component.ts +++ b/src/app/components/profile/profile.component.ts @@ -15,15 +15,17 @@ import {MatTableDataSource} from '@angular/material/table'; }) export class ProfileComponent implements OnInit { - actionlist: Actionlist = new Actionlist(); + actionlist: Actionlist = new Actionlist() - levellist: Levellist = new Levellist(); + levellist: Levellist = new Levellist() user: User = new User() id : string - rankname: string; - profileNotFound : boolean = false; - displayedColumns = ['points', 'name']; - dataSource = new MatTableDataSource(this.actionlist.Actions); + rankname: string + profileNotFound : boolean = false + displayedColumns = ['points', 'name'] + dataSource = new MatTableDataSource(this.actionlist.Actions) + displayedLevelColumns = ['level', 'name'] + levelSource = this.levellist.levels constructor(private router: Router,private http: Http) { } @ViewChild(MatSort, {static: true}) sort: MatSort;