import * as React from 'react'; import styled from 'styled-components'; import {Link} from 'react-router-dom'; import {WrapGrid} from 'ts/@next/components/newLayout'; export class MobileNav extends React.PureComponent { public render(): React.Node { const { isToggled, toggleMobileNav } = this.props; return (

Products

  • 0x instant
  • 0x Launch Kit
  • Why 0x
  • About
  • Products
  • Blog
  • {isToggled && }
    ); } } const Wrap = styled.nav` width: 100%; height: 357px; background-color: ${props => props.theme.mobileNavBgUpper}; color: ${props => props.theme.mobileNavColor}; transition: transform 0.5s; transform: translate3d(0, ${props => props.isToggled ? 0 : '-100%'}, 0); position: fixed; display: flex; flex-direction: column; justify-content: flex-end; z-index: 20; top: 0; left: 0; font-size: 20px; a { padding: 15px 0; display: block; color: inherit; } h4 { font-size: 14px; opacity: 0.5; } `; const Overlay = styled.div` position: absolute; width: 100vw; height: 100vh; top: 100%; background: transparent; cursor: pointer; `; const Section = styled.div` width: 100%; padding: 15px 30px; background-color: ${props => props.isDark && props.theme.mobileNavBgLower}; `; const List = styled.ul` li { float: ${props => props.inline && 'left'}'' } `; const Grid = styled(WrapGrid)` li { width: 50%; flex-shrink: 0; } `;