Title.jsx 1.1 KB

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