ItemTeam.jsx 3.6 KB

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