Skip to content

Commit badf07d

Browse files
committed
adjusted profile three and removed profile five
1 parent 8e29f35 commit badf07d

File tree

9 files changed

+105
-301
lines changed

9 files changed

+105
-301
lines changed

src/app/app.imports.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { ProfileOnePage } from '../pages/profile/profile-one/profile-one';
1414
import { ProfileTwoPage } from '../pages/profile/profile-two/profile-two';
1515
import { ProfileThreePage } from '../pages/profile/profile-three/profile-three';
1616
import { ProfileFourPage } from '../pages/profile/profile-four/profile-four';
17-
import { ProfileFivePage } from '../pages/profile/profile-five/profile-five';
1817
import { ProfileSettingsPage } from '../pages/profile/profile-settings/profile-settings';
1918

2019
// Lists list
@@ -117,7 +116,6 @@ export const Pages = [
117116
ProfileTwoPage,
118117
ProfileThreePage,
119118
ProfileFourPage,
120-
ProfileFivePage,
121119
ProfileSettingsPage,
122120

123121
LoginListPage,

src/pages/profile/profile-five/profile-five.html

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/pages/profile/profile-five/profile-five.scss

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/pages/profile/profile-five/profile-five.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/pages/profile/profile-four/profile-four.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class ProfileFourPage {
5353
ionViewDidLoad() {
5454
console.log('Hello ProfileFour Page');
5555
}
56+
5657
follow() {
5758
this.following = !this.following;
5859
this.toastCtrl.create('Follow user clicked');

src/pages/profile/profile-three/profile-three.html

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,60 @@
77
<div class="card-profile">
88
<div class="card-profile_visual"></div>
99
<div class="card-profile_user-infos">
10-
<span class="infos_name">Emma Watson</span>
11-
<span class="infos_nick">@EmWatson</span>
10+
<span class="infos_name">{{user.name}}</span>
11+
<span class="infos_nick">{{user.twitter}}</span>
1212
<a href="#"></a>
1313
</div>
1414
<div class="card-profile_user-stats">
1515
<div class="stats-holder">
1616
<div class="user-stats">
1717
<strong>Tweets</strong>
18-
<span>1,337</span>
18+
<span>{{user.tweets}}</span>
1919
</div>
2020
<div class="user-stats">
2121
<strong>Following</strong>
22-
<span>561</span>
22+
<span>{{user.following}}</span>
2323
</div>
2424
<div class="user-stats">
2525
<strong>Followers</strong>
26-
<span>718</span>
26+
<span>{{user.followers}}</span>
2727
</div>
2828
</div>
2929
</div>
30+
<div id="posts">
31+
<ion-card *ngFor="let post of posts">
32+
<ion-item>
33+
<ion-avatar item-left>
34+
<img [src]="user.profileImage">
35+
</ion-avatar>
36+
<h2 class="sticky">{{user.name}}</h2>
37+
<p>{{post.date}}</p>
38+
</ion-item>
39+
<img [src]="post.postImageUrl" (click)="imageTapped(post)">
40+
<ion-card-content>
41+
<p>{{post.text}}</p>
42+
</ion-card-content>
43+
<ion-row>
44+
<ion-col>
45+
<button ion-button color="purple" clear small icon-left (click)="like(post)">
46+
<ion-icon name='thumbs-up'></ion-icon>
47+
{{post.likes}} Likes
48+
</button>
49+
</ion-col>
50+
<ion-col>
51+
<button ion-button color="purple" clear small icon-left (click)="comment(post)">
52+
<ion-icon name='text'></ion-icon>
53+
{{post.comments}} Comments
54+
</button>
55+
</ion-col>
56+
<ion-col center text-center>
57+
<p>
58+
{{post.timestamp}}
59+
</p>
60+
</ion-col>
61+
</ion-row>
62+
</ion-card>
63+
</div>
3064
</div>
3165
</ion-content>
3266

0 commit comments

Comments
 (0)