Next.js template
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProfileCard.jsx 1.0KB

1234567891011121314151617181920212223242526272829
  1. import Card from '@mui/material/Card';
  2. import CardContent from '@mui/material/CardContent';
  3. import CardMedia from '@mui/material/CardMedia';
  4. import Typography from '@mui/material/Typography';
  5. const ProfileCard = ({ profileData }) => {
  6. return (
  7. <Card sx={{ maxWidth: 345, marginX: 'auto', marginY: 25, boxShadow: 10 }}>
  8. <CardMedia
  9. component="img"
  10. height="140"
  11. image="https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png"
  12. alt="green iguana"
  13. />
  14. <CardContent>
  15. <Typography gutterBottom variant="h5" component="div">
  16. {profileData.name}
  17. </Typography>
  18. <Typography variant="body2" color="text.secondary">
  19. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
  20. quis odio in libero fringilla pellentesque aliquet et mi. Quisque
  21. maximus lectus a neque luctus, tempus auctor ipsum ultrices.
  22. </Typography>
  23. </CardContent>
  24. </Card>
  25. );
  26. };
  27. export default ProfileCard;