Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

AboutSection.js 975B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from "react";
  2. import PropTypes from "prop-types";
  3. import {
  4. AboutSectionContainer,
  5. AboutSectionImage,
  6. AboutSectionText,
  7. AboutSectionTextContainer,
  8. AboutSectionTitle,
  9. CheckButton,
  10. } from "./AboutSection.styled";
  11. const AboutSection = (props) => {
  12. console.log(props);
  13. return (
  14. <AboutSectionContainer reverse={props.reverse}>
  15. <AboutSectionTextContainer>
  16. <AboutSectionTitle reverse={props.reverse}>
  17. {props.title}
  18. </AboutSectionTitle>
  19. <AboutSectionText reverse={props.reverse}>
  20. {props.text}
  21. </AboutSectionText>
  22. </AboutSectionTextContainer>
  23. {props.reverse && <CheckButton />}
  24. <AboutSectionImage src={props.image} reverse={props.reverse} />
  25. </AboutSectionContainer>
  26. );
  27. };
  28. AboutSection.propTypes = {
  29. children: PropTypes.node,
  30. title: PropTypes.string,
  31. text: PropTypes.string,
  32. image: PropTypes.string,
  33. reverse: PropTypes.bool,
  34. };
  35. export default AboutSection;