Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

FeatureItem.jsx 652B

1234567891011121314151617181920212223242526272829
  1. import { Container, Typography } from '@mui/material';
  2. import { useTranslation } from 'next-i18next';
  3. import Image from 'next/image';
  4. const FeatureItem = ({ image, alt, description }) => {
  5. const { t } = useTranslation('home');
  6. return (
  7. <Container
  8. sx={{
  9. textAlign: 'center',
  10. display: 'flex',
  11. flexDirection: 'column',
  12. marginTop: { xs: '50px' },
  13. }}
  14. >
  15. <Image src={image} alt={alt} width={100} height={100} />
  16. <Typography
  17. sx={{
  18. mt: 6,
  19. px: 6,
  20. }}
  21. >
  22. {t(description)}
  23. </Typography>
  24. </Container>
  25. );
  26. };
  27. export default FeatureItem;