Skip to content

Commit

Permalink
Making things better
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislawMalinski committed Mar 27, 2024
1 parent 7b70556 commit 5544194
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/User/ProfileView/ProfileInfoTableAchievements.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function ProfileInfoTableAchievements(props) {
title={tooltipcontent}
followCursor
enterDelay={500}
leaveDelay={100}>
leaveDelay={100}
>
<div className='user-achivments-icon-container'>
<img
className='user-achivments-icon'
Expand Down
6 changes: 5 additions & 1 deletion src/User/ProfileView/ProfileView.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@
}

.user-info {
font-size: 20px;
font-size: 30%;
border: 3px solid black;
padding: 10px;
height: 100%;
}

.user-info .user-info-text {
color: aqua;
}

.user-info-table-container {
border: 3px solid black;
padding: 20px;
Expand Down
8 changes: 4 additions & 4 deletions src/User/ProfileView/ProfileView.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function ProfileView() {
</div>
<div className='cell row3col1 notcollapse'>
<div className='widget user-info'>
<p>Member since: {user.joined}</p>
<p>Last seen: {user.lastSeen}</p>
<p>Bots added: {user.botsAdded}</p>
<p>Tournaments created: {user.tournamentsCreated}</p>
<p>Member since: <p className='user-info-text'>{user.joined}</p></p>
<p>Last seen: <p className='user-info-text'>{user.lastSeen}</p></p>
<p>Bots added: <p className='user-info-text'>{user.botsAdded}</p></p>
<p>Tournaments created: <p className='user-info-text'>{user.tournamentsCreated}</p></p>
</div>
<div className='widget user-settings'>
<button className='settings-button'>User Settings</button>
Expand Down
6 changes: 4 additions & 2 deletions src/services/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ function getUser(request){
"id": request["playerId"],
"login": "RdmusR_97",
"rating": 1203,
"lastSeen": "2024-02-11T19:21:17.85",
"joined": "2024-02-06T19:21:17.85",
"lastSeen": "2024-02-11",
"joined": "2024-02-06",
"botsAdded": 5,
"tournamentsCreated": 3,
"photoURL": "https://img.freepik.com/free-vector/businessman-character-avatar-isolated_24877-60111.jpg?w=740&t=st=1709386522~exp=1709387122~hmac=612506df2e857afd82d8b64b5b44128ef42d1e046876d26074bb46b41abe1fb0"
}

Expand Down

0 comments on commit 5544194

Please sign in to comment.