diff --git a/client/src/components/UserList.js b/client/src/components/UserList.js index 999b13922..839cab298 100644 --- a/client/src/components/UserList.js +++ b/client/src/components/UserList.js @@ -30,7 +30,6 @@ import Slide from '@material-ui/core/Slide'; import UserProfile from './UserProfile'; // Images - import PortraitImage from '../img/portrait.jpg' const styles = theme => ({ @@ -106,7 +105,7 @@ class UserList extends Component { diff --git a/client/src/components/UserProfile.js b/client/src/components/UserProfile.js index 6c4fae91d..877142c32 100644 --- a/client/src/components/UserProfile.js +++ b/client/src/components/UserProfile.js @@ -7,6 +7,15 @@ import {getUserProfileQuery} from '../queries/queries' import { withStyles } from '@material-ui/core/styles' import Grid from '@material-ui/core/Grid' import Paper from '@material-ui/core/Paper' +import Card from '@material-ui/core/Card' +import CardActionArea from '@material-ui/core/CardActionArea' +import CardContent from '@material-ui/core/CardContent' +import CardMedia from '@material-ui/core/CardMedia' +import Typography from '@material-ui/core/Typography' +import Divider from '@material-ui/core/Divider' + +// Images +import PortraitImage from '../img/portrait.jpg' const styles = theme => ({ root: { @@ -15,7 +24,7 @@ const styles = theme => ({ margin: 2 }, card: { - maxWidth: 345, + maxWidth: 800, paddingTop: '30' }, media: { @@ -23,36 +32,57 @@ const styles = theme => ({ paddingTop: '56.25%', // 16:9, marginTop: '30' }, - horizontal: - { - display: 'inline', - margin: theme.spacing.unit - }, - appBar: { - position: 'relative' - }, - flex: { - flex: 1 - }, grid: { paddingTop: '30', marginTop: '30' + }, + typography: { + width: '100%', + marginTop: 20, + marginBottom: 20 } + }) class UserProfile extends Component { displayUserProfile () { const {user} = this.props.data + const { classes } = this.props if (user) { return ( -
-

{ user.alias }

-

{ user.firstName }

-

{ user.lastName }

-

{ user.role.name }

-
+ + + { + this.setState({ selected: user.id}) + } + }> + + + + + { user.firstName } { user.lastName } ( {user.alias} ) + + + + + { user.role.name } + + + + + I am a computer nerd passionate about crypto trading. I entered the crypto space in 2013 and since then I ve been participating in quite a few crypto open source projects. + + + + + ) } else { return (
No User selected...
)