SettingsWelcome.js 521 B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import styled from 'styled-components';
  4. const Title = styled.h2`
  5. font-size: 28px;
  6. font-weight: 300;
  7. span {
  8. padding-bottom: 2px;
  9. border-bottom: 2px dotted #999;
  10. }
  11. @media only screen and (max-width: 768px) {
  12. font-size: 22px;
  13. }
  14. `;
  15. const SettingsWelcome = ({ user }) => (
  16. <Title>
  17. Welcome, <span>{user}</span>.
  18. </Title>
  19. );
  20. SettingsWelcome.propTypes = {
  21. user: PropTypes.string.isRequired,
  22. };
  23. export default SettingsWelcome;