HeaderMenuItem.tsx 650 B

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