HeaderMenuItem.js 748 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import styled from 'styled-components';
  4. import { fadeIn } from '../../helpers/animations';
  5. const ListItem = styled.li`
  6. margin-left: 32px;
  7. animation: ${fadeIn} 0.8s ease;
  8. @media only screen and (max-width: 488px) {
  9. margin-left: 16px;
  10. font-size: 13px;
  11. }
  12. `;
  13. const ListLink = styled.div`
  14. & > a {
  15. padding-bottom: 1px;
  16. color: inherit;
  17. text-decoration: none;
  18. }
  19. & > a:hover {
  20. color: #2196f3;
  21. border-bottom: 1px dotted #2196f3;
  22. }
  23. `;
  24. const HeaderMenuItem = ({ children }) => (
  25. <ListItem>
  26. <ListLink>{children}</ListLink>
  27. </ListItem>
  28. );
  29. HeaderMenuItem.propTypes = {
  30. children: PropTypes.node.isRequired,
  31. };
  32. export default HeaderMenuItem;