ItemTeam.jsx 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import {Box, Grid, Typography} from "@mui/material";
  2. import imgNotFound from "../../img/catalog/imgNotFound.png";
  3. import romb from "../../img/our-team/romb.png";
  4. import Social from "../../components/SocialLink";
  5. import LocalPhoneIcon from "@mui/icons-material/LocalPhone";
  6. import EmailIcon from "@mui/icons-material/Email";
  7. export const ItemTeam = ({item: {img, name, spec, desc, links, phone, email}, breakpoint}) => {
  8. return (
  9. <Grid sx={{
  10. backgroundColor: '#fff',
  11. marginBottom: '50px'
  12. }}
  13. item xs={12} sm={5.5}
  14. >
  15. <Box>
  16. <img style={{maxWidth: '100%'}} src={img || imgNotFound} alt='face'/>
  17. </Box>
  18. <Box
  19. display='flex'
  20. flexDirection='column'
  21. justifyContent='center'
  22. alignItems='center'
  23. padding='50px'
  24. >
  25. <Typography
  26. textAlign='center'
  27. variant='h5'
  28. fontFamily='sarif'
  29. letterSpacing='7px'
  30. marginBottom='10px'
  31. >
  32. { name || 'no name' }
  33. </Typography>
  34. <img style={{
  35. width: '7px',
  36. maxHeight: '7px',
  37. }} src={romb} alt='item'/>
  38. <Typography
  39. textAlign='center'
  40. variant='body1'
  41. letterSpacing='5px'
  42. marginBottom='10px'
  43. marginTop='8px'
  44. color='#616161'
  45. >
  46. { spec || 'text' }
  47. </Typography>
  48. <Typography
  49. textAlign='center'
  50. variant='body2'
  51. marginBottom='30px'
  52. fontWeight='300'
  53. color='#616161'
  54. lineHeight='1.7em'
  55. >
  56. { desc || 'description' }
  57. </Typography>
  58. <Box marginBottom='30px'>
  59. {
  60. links.map(item => <Social key={item.url} Icon={item.icon} link={item.url}/>)
  61. }
  62. </Box>
  63. <Box
  64. display='flex'
  65. flexDirection={breakpoint ? 'column': 'row'}
  66. justifyContent='space-between'
  67. alignItems='center'
  68. width='100%'
  69. >
  70. <Typography
  71. variant='body2'
  72. fontWeight='400'
  73. color='#616161'
  74. display='flex'
  75. flexDirection='row'
  76. justifyContent='space-between'
  77. alignItems='center'
  78. marginBottom={breakpoint ? '15px': '0'}
  79. >
  80. <LocalPhoneIcon sx={{width: '15px', marginRight: '5px'}}/>
  81. { phone || 'phone' }
  82. </Typography>
  83. <Typography
  84. variant='body2'
  85. fontWeight='400'
  86. color="#616161"
  87. display='flex'
  88. flexDirection='row'
  89. justifyContent='space-between'
  90. alignItems='center'
  91. >
  92. <EmailIcon sx={{maxWidth: '15px', marginRight: '5px'}}/>
  93. { email || 'email' }
  94. </Typography>
  95. </Box>
  96. </Box>
  97. </Grid>
  98. )
  99. }