Title.jsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import React from 'react';
  2. import {Box, Typography} from "@mui/material";
  3. import rom from "../img/our-team/romb.png";
  4. const Title = ({subtitle, title}) => {
  5. return (
  6. <Box
  7. display='flex'
  8. flexDirection='column'
  9. justifyContent='center'
  10. alignItems='center'
  11. >
  12. <Typography
  13. fontFamily='sarif'
  14. variant='h5'
  15. color='#000'
  16. letterSpacing='5px'
  17. textAlign='center'
  18. marginLeft='5px'
  19. marginBottom='10px'
  20. >
  21. {subtitle}
  22. </Typography>
  23. <img
  24. style={{
  25. width: '7px',
  26. maxHeight: '7px',
  27. }}
  28. src={rom}
  29. alt='item'
  30. />
  31. <Typography
  32. variant='h4'
  33. color='#000'
  34. letterSpacing='5px'
  35. textAlign='center'
  36. marginLeft='5px'
  37. marginTop='10px'
  38. >
  39. {title}
  40. </Typography>
  41. </Box>
  42. )
  43. }
  44. export default Title