Logo.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import Link from 'next/link'
  2. import theme from '../../styles/theme'
  3. const Logo = () => (
  4. <h1 className='logo'>
  5. <Link href='/'>
  6. <a>
  7. <span className='logo-circle'>u</span>
  8. <span className='logo-text'>fit</span>
  9. </a>
  10. </Link>
  11. <style jsx>
  12. {`
  13. .logo {
  14. margin: 10px auto;
  15. }
  16. .logo span {
  17. padding-top: 0.3em;
  18. font-size: 40px;
  19. }
  20. .logo-circle {
  21. position: relative;
  22. display: inline-block;
  23. text-align: right;
  24. width: 1.55em;
  25. height: 1.55em;
  26. background-color: ${theme.colors.logoRed};
  27. border-radius: 50%;
  28. font-weight: 900;
  29. padding-right: 0.1em;
  30. }
  31. .logo-circle::before {
  32. position: absolute;
  33. content: '';
  34. display: block;
  35. width: 0.2em;
  36. height: 0.2em;
  37. border-radius: 50%;
  38. background-color: white;
  39. right: 50%;
  40. bottom: 55%;
  41. }
  42. a {
  43. text-decoration: none;
  44. color: white;
  45. }
  46. .logo .logo-text {
  47. color: ${theme.colors.logoBlack};
  48. margin-left: 0em;
  49. }
  50. `}
  51. </style>
  52. </h1>
  53. )
  54. export default Logo