AllenYuan

Untitled

May 26th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import PropTypes from 'prop-types';
  4. import Buttons from './Buttons';
  5. import Why from './Why';
  6. import Sponsors from './Sponsors';
  7. import { HeadContainerDiv, HeadlineDiv, DescriptionDiv, BottomTextDiv } from './Styled';
  8.  
  9. const Home = ({ strings }) => {
  10. console.log('home args', strings);
  11. return (<div>
  12. <HeadContainerDiv>
  13. <HeadlineDiv>
  14. {strings.app_name}
  15. </HeadlineDiv>
  16. <DescriptionDiv>
  17. {strings.app_description}
  18. </DescriptionDiv>
  19. <Buttons />
  20. </HeadContainerDiv>
  21. <Why />
  22. <Sponsors />
  23. <BottomTextDiv>
  24. {strings.home_background_by}
  25. <a href="//www.artstation.com/artist/mikeazevedo" target="_blank" rel="noopener noreferrer"> Mike Azevedo</a>
  26. </BottomTextDiv>
  27. </div>);
  28. }
  29.  
  30. Home.propTypes = {
  31. strings: PropTypes.shape({}),
  32. };
  33.  
  34. const mapStateToProps = state => ({
  35. content: state.content,
  36. strings: state.app.strings,
  37. });
  38.  
  39. export default connect(mapStateToProps)(Home);
Add Comment
Please, Sign In to add comment