From 64c168eafc6abe6b7517f85a695e07b486c3b580 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Fri, 14 Dec 2018 11:10:01 +0100 Subject: Hides mobile nav on desktop, adds flexwrap maxwidth --- packages/website/ts/@next/components/mobileNav.tsx | 91 +++++++++++----------- 1 file changed, 47 insertions(+), 44 deletions(-) (limited to 'packages/website/ts/@next/components/mobileNav.tsx') diff --git a/packages/website/ts/@next/components/mobileNav.tsx b/packages/website/ts/@next/components/mobileNav.tsx index c19d4b587..4ae604c3f 100644 --- a/packages/website/ts/@next/components/mobileNav.tsx +++ b/packages/website/ts/@next/components/mobileNav.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import MediaQuery from 'react-responsive'; import styled from 'styled-components'; import {Link} from 'react-router-dom'; @@ -15,53 +16,55 @@ export class MobileNav extends React.PureComponent { const { isToggled, toggleMobileNav } = this.props; return ( - -
-

Products

+ + +
+

Products

-
    -
  • - - 0x instant - -
  • -
  • - - 0x Launch Kit - -
  • -
-
+
    +
  • + + 0x instant + +
  • +
  • + + 0x Launch Kit + +
  • +
+
-
- -
  • - - Why 0x - -
  • -
  • - - About - -
  • -
  • - - Products - -
  • -
  • - - Blog - -
  • -
    -
    +
    + +
  • + + Why 0x + +
  • +
  • + + About + +
  • +
  • + + Products + +
  • +
  • + + Blog + +
  • +
    +
    - {isToggled && - - } -
    + {isToggled && + + } + + ); } } -- cgit