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 +++++++++++----------- packages/website/ts/@next/components/newLayout.tsx | 2 + 2 files changed, 49 insertions(+), 44 deletions(-) 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 && + + } + + ); } } diff --git a/packages/website/ts/@next/components/newLayout.tsx b/packages/website/ts/@next/components/newLayout.tsx index fe0a290c5..3285ff877 100644 --- a/packages/website/ts/@next/components/newLayout.tsx +++ b/packages/website/ts/@next/components/newLayout.tsx @@ -69,6 +69,8 @@ export const Column = styled.div` `; export const FlexWrap = styled.div` + max-width: 1500px; + margin: 0 auto; padding: ${props => props.padding}; @media (min-width: ${props => props.flexBreakpoint || '768px'}) { -- cgit v1.2.3