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ů.
 
 

44 řádky
1005 B

  1. /** @jsxRuntime classic */
  2. /** @jsx jsx */
  3. import { jsx, Box, Heading, Text } from 'theme-ui';
  4. const SectionHeading = ({ title, description, ...props }) => {
  5. return (
  6. <Box sx={styles.heading} {...props}>
  7. <Heading sx={styles.title}>{title}</Heading>
  8. <Text as="p" sx={styles.description}>
  9. {description}
  10. </Text>
  11. </Box>
  12. );
  13. };
  14. export default SectionHeading;
  15. const styles = {
  16. heading: {
  17. textAlign: 'center',
  18. maxWidth: 660,
  19. margin: ['0 auto 60px'],
  20. },
  21. title: {
  22. fontFamily: 'heading',
  23. fontWeight: 700,
  24. fontSize: [5, null, null, 26, null, 30, 9],
  25. lineHeight: [1.33, 1.33, 1.48],
  26. letterSpacing: ['-0.5px', null, null, null, null, null, '-1px'],
  27. img: {
  28. ml: ['15px'],
  29. position: 'relative',
  30. top: '8px',
  31. },
  32. },
  33. description: {
  34. color: 'heading',
  35. fontSize: [1, null, null, 2],
  36. lineHeight: [1.58, 1.58, 1.58, 2.2],
  37. maxWidth: ['none', 'none', 'none', 'none', 490],
  38. margin: '15px auto 0',
  39. },
  40. };