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 Typography from '@mui/material/Typography';
  4. import Image from 'next/image';
  5. const ProfileCard = ({ profileData }) => {
  6. return (
  7. <Card sx={{ maxWidth: 345, marginX: 'auto', marginY: 10, boxShadow: 10 }}>
  8. <Image
  9. src="https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png"
  10. alt="profile picture"
  11. width={600}
  12. height={500}
  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;