Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ProfileCard.tsx 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  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. interface IProps {
  6. profileData: {
  7. name: string;
  8. };
  9. }
  10. const ProfileCard: React.FC<IProps> = ({ profileData }) => {
  11. return (
  12. <Card sx={{ maxWidth: 345, marginX: 'auto', marginY: 10, boxShadow: 10 }}>
  13. <Image
  14. src="https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png"
  15. alt="profile picture"
  16. width={600}
  17. height={500}
  18. />
  19. <CardContent>
  20. <Typography gutterBottom variant="h5" component="div">
  21. {profileData.name}
  22. </Typography>
  23. <Typography variant="body2" color="text.secondary">
  24. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
  25. quis odio in libero fringilla pellentesque aliquet et mi. Quisque
  26. maximus lectus a neque luctus, tempus auctor ipsum ultrices.
  27. </Typography>
  28. </CardContent>
  29. </Card>
  30. );
  31. };
  32. export default ProfileCard;