About.js 446 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import styled from 'styled-components';
  4. import { withTranslation } from '../i18n';
  5. const Text = styled.div`
  6. padding: 15px;
  7. display: inline-block;
  8. color: #000;
  9. font: 50px menlo, monaco, monospace;
  10. `;
  11. const About = ({
  12. t,
  13. }) => (
  14. <Text>
  15. {t('title')}
  16. </Text>
  17. );
  18. About.propTypes = {
  19. t: PropTypes.func.isRequired,
  20. };
  21. export default withTranslation('home')(About);