-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathprofile_card.php
More file actions
70 lines (70 loc) · 2.14 KB
/
Copy pathprofile_card.php
File metadata and controls
70 lines (70 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<style type="text/css">
/*Profile card*/
.profile-card .profile-card-img-block{
float:left;
width:100%;
height:150px;
overflow:hidden;
}
.profile-card .profile-card-body{
position:relative;
}
.profile-card .profile {
position: absolute;
top: -62px;
left: 50%;
width:100px;
margin-left: -50px;
}
.profile-card .profile-card-img-block{
position:relative;
}
.profile-card .profile-card-img-block .btn-over-img{
position: absolute;
bottom: -10px;
right: -25px;
transform: translate(-50%, -300%);
-ms-transform: translate(-50%, -50%);
}
.profile-card .profile-card-img-block > .profile-info-box{
position:absolute;
width:100%;
height:100%;
color:#fff;
padding:20px;
text-align:center;
font-size:14px;
-webkit-transition: 1s ease;
transition: 1s ease;
opacity:0;
}
.profile-card .profile-card-img-block:hover > .profile-info-box{
border-radius: .25rem!important;
opacity:1;
-webkit-transition: all 1s ease;
transition: all 1s ease;
}
</style>
<div class="card profile-card shadow p-3 mb-4 bg-white rounded">
<div class="profile-card-img-block">
<div class="profile-info-box bg-primary">
<?php echo $user->getBio(); ?>
</div>
<img class='rounded cover-img' src='<?php echo $user->getCoverPic(); ?>'>
<a href="settings.php" class="btn-over-img btn btn-primary"><i class="fa fa-pencil"></i> Edit</a>
</div>
<div class="profile-card-body pt-5">
<a href="profile.php?profile_username=<?php echo $user->getUsername(); ?>" class="text-primary"><img src="<?php echo $user->getProfilePic(); ?>" alt="profile-image" class="profile border border-default padding-5-circle"/>
<center><h6><?php echo $user->getFirstAndLastName(); ?></h6></center></a>
<table class="table">
<tr>
<td><i class="fa fa-users"></i> Friends</td>
<td id='totalfriendCounts'><?php echo $user->getNumOfFriends(); ?></td>
</tr>
<tr>
<td><i class="fa fa-paperclip"></i> Posts</td>
<td id='totalpostsCounts'><?php echo $user->getNumOfPosts(); ?></td>
</tr>
</table>
</div>
</div>