Template for starting apps, powered by Next.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
651 B

  1. import * as React from 'react'
  2. import styled from 'styled-components'
  3. import Link from '../Link'
  4. const BrandBase = styled(Link)({
  5. display: 'block',
  6. textDecoration: 'none',
  7. fontSize: '1.5rem',
  8. fontWeight: 'bold',
  9. fontStretch: '75%',
  10. textTransform: 'uppercase',
  11. width: '2rem',
  12. textAlign: 'center',
  13. '@media (min-width: 720px)': {
  14. width: '8rem',
  15. textAlign: 'left',
  16. },
  17. })
  18. const Hide = styled('span')({
  19. display: 'none',
  20. '@media (min-width: 720px)': {
  21. display: 'inline',
  22. },
  23. })
  24. const Brand: React.FC = () => {
  25. return (
  26. <BrandBase
  27. href={{
  28. pathname: '/',
  29. }}
  30. >
  31. B<Hide>rand</Hide>
  32. </BrandBase>
  33. )
  34. }
  35. export default Brand