Private
Public Access
1
0

add default avatar pic, w/o facebook profile

This commit is contained in:
2017-01-27 16:52:39 +01:00
parent a8ac13850b
commit 4a94855be9
7 changed files with 30 additions and 2 deletions

View File

@@ -242,12 +242,21 @@ main .user-list-filter button {
border-bottom-right-radius: 3px;
}
main .user-request-container {
display: flex;
align-items: center;
justify-content: center;
}
main .user-request-container .user-friend {
background: #ff0000;
width: 150px;
color: #403f3f;
padding: 10px;
margin: 10px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
main .user-request-container h1 {
@@ -261,8 +270,24 @@ main .user-request-container button {
font-weight: bold;
color: #ff0000;
border: 0;
padding: 5px;
padding: 15px 5px;
margin: 0 auto;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-transition: all 250ms ease-in-out;
-moz-transition: all 250ms ease-in-out;
-o-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
}
main .user-request-container button:hover {
background: #ffc38b;
-webkit-transition: all 250ms ease-in-out;
-moz-transition: all 250ms ease-in-out;
-o-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
}
@media screen and (max-width: 1200px) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -86,10 +86,13 @@ class MineUserList extends React.Component {
}
getProfilePicture(id) {
let avatarNbr = Math.floor(Math.random() * 5) + 1;
return id !== null ?
<img src={"http://graph.facebook.com/" + id + "/picture?type=square&width=130&height=130"}
alt="Facebook profile"/> :
"";
<img src={"/bundles/mineseeker/images/avatar/bg-avatar-default-" + avatarNbr + ".png"}
alt="Default avatar picture"/>;
}
clickChallengeFriend(isOnline, username) {