add default avatar pic, w/o facebook profile
This commit is contained in:
@@ -242,12 +242,21 @@ main .user-list-filter button {
|
|||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main .user-request-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
main .user-request-container .user-friend {
|
main .user-request-container .user-friend {
|
||||||
background: #ff0000;
|
background: #ff0000;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
color: #403f3f;
|
color: #403f3f;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
|
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main .user-request-container h1 {
|
main .user-request-container h1 {
|
||||||
@@ -261,8 +270,24 @@ main .user-request-container button {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 5px;
|
padding: 15px 5px;
|
||||||
margin: 0 auto;
|
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) {
|
@media screen and (max-width: 1200px) {
|
||||||
|
|||||||
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-1.png
Executable file
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-1.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-2.png
Executable file
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-2.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-3.png
Executable file
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-3.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-4.png
Executable file
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-4.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-5.png
Executable file
BIN
src/Mine/SeekerBundle/Resources/public/images/avatar/bg-avatar-default-5.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
@@ -86,10 +86,13 @@ class MineUserList extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getProfilePicture(id) {
|
getProfilePicture(id) {
|
||||||
|
let avatarNbr = Math.floor(Math.random() * 5) + 1;
|
||||||
|
|
||||||
return id !== null ?
|
return id !== null ?
|
||||||
<img src={"http://graph.facebook.com/" + id + "/picture?type=square&width=130&height=130"}
|
<img src={"http://graph.facebook.com/" + id + "/picture?type=square&width=130&height=130"}
|
||||||
alt="Facebook profile"/> :
|
alt="Facebook profile"/> :
|
||||||
"";
|
<img src={"/bundles/mineseeker/images/avatar/bg-avatar-default-" + avatarNbr + ".png"}
|
||||||
|
alt="Default avatar picture"/>;
|
||||||
}
|
}
|
||||||
|
|
||||||
clickChallengeFriend(isOnline, username) {
|
clickChallengeFriend(isOnline, username) {
|
||||||
|
|||||||
Reference in New Issue
Block a user