From aeb48015536ee347b91798a637c8e993a4889fd2 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 2 Jun 2021 09:27:41 -0500 Subject: add image placeholder, basic stats --- src/web/src/components/Users/User.js | 42 ++++++++++++++++++++++++++-------- src/web/src/components/Users/Users.css | 11 +++++++++ 2 files changed, 43 insertions(+), 10 deletions(-) (limited to 'src/web') diff --git a/src/web/src/components/Users/User.js b/src/web/src/components/Users/User.js index 2e597201..be1d6443 100644 --- a/src/web/src/components/Users/User.js +++ b/src/web/src/components/Users/User.js @@ -1,8 +1,13 @@ import { Item, - Image + Icon, + Divider, + Button } from 'semantic-ui-react'; +const ImagePlaceholder = () => + (
); + const User = ({ username, description, @@ -14,16 +19,33 @@ const User = ({ updatedAt, fetching }) => ( - - + <> + + {hasPicture ? + + : } + + + {username} + + Free Upload Slot: , Total Upload Slots: {uploadSlots}, Queue Length: {queueLength} + + + {description || 'No user info.'} + +
- - {username} - - {description} - - - +
+
+
+ +
+ +
+ ); export default User; \ No newline at end of file diff --git a/src/web/src/components/Users/Users.css b/src/web/src/components/Users/Users.css index a5c7b048..29e31f48 100644 --- a/src/web/src/components/Users/Users.css +++ b/src/web/src/components/Users/Users.css @@ -22,4 +22,15 @@ .users-user { margin-top: 15px !important; min-height: 78px; +} + +.users-picture-placeholder { + text-align: center; + padding-top: 10px !important; + opacity: .125; +} + +.ui.items > .item > .content > .description { + white-space: pre-wrap; + margin-top: 15px; } \ No newline at end of file -- cgit v1.2.3