From 96d89ddade8c993dd0977c37a58eac60e9db383b Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 17 Dec 2018 11:07:00 +0100 Subject: Fix portal link --- packages/website/ts/@next/components/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/website/ts/@next/components/header.tsx') diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index fde549642..d5894f65a 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -89,7 +89,7 @@ class HeaderBase extends React.Component { Trade on 0x -- cgit From 312d864936a0f930a09dcb0739f0e498ea42feac Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Mon, 17 Dec 2018 17:31:06 +0100 Subject: Fixes mobile nav overflow on mobile --- packages/website/ts/@next/components/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/website/ts/@next/components/header.tsx') diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index d5894f65a..f6895d242 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -70,7 +70,7 @@ class HeaderBase extends React.Component { const { isNavToggled, toggleMobileNav, theme } = this.props; return ( - + -- cgit From 5e4defefb06ed886573abeb61ac5036836150f34 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Mon, 17 Dec 2018 18:06:30 +0100 Subject: Adds headroom instead for toggling nav visibility --- packages/website/ts/@next/components/header.tsx | 63 +++++++++++++------------ 1 file changed, 34 insertions(+), 29 deletions(-) (limited to 'packages/website/ts/@next/components/header.tsx') diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index f6895d242..035eebe53 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -4,6 +4,8 @@ import MediaQuery from 'react-responsive'; import { NavLink as ReactRouterLink } from 'react-router-dom'; import styled, { withTheme } from 'styled-components'; +import Headroom from 'react-headroom'; + import { Button } from 'ts/@next/components/button'; import { DropdownDevelopers } from 'ts/@next/components/dropdowns/dropdown_developers'; import { DropdownProducts } from 'ts/@next/components/dropdowns/dropdown_products'; @@ -70,35 +72,37 @@ class HeaderBase extends React.Component { const { isNavToggled, toggleMobileNav, theme } = this.props; return ( - - - - - - - - {_.map(navItems, (link, index) => ( - - ))} - - - - - Trade on 0x - - - - - - - + + + + + + + + + {_.map(navItems, (link, index) => ( + + ))} + + + + + Trade on 0x + + + + + + + + ); } } @@ -126,6 +130,7 @@ const NavItem = (props: { link: NavItemProps; key: string }) => { const StyledHeader = styled.header` padding: 30px; + background-color: ${props => props.theme.bgColor}; `; const LinkWrap = styled.li` -- cgit From fb623cf63b3c7474f4bfb4bc37dd4afa9ec51e89 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Mon, 17 Dec 2018 18:23:40 +0100 Subject: Untoggles nav on headroom unpin --- packages/website/ts/@next/components/header.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'packages/website/ts/@next/components/header.tsx') diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index 035eebe53..cc68739ed 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -68,11 +68,17 @@ const navItems: NavItemProps[] = [ ]; class HeaderBase extends React.Component { + public onUnpin = () => { + if (this.props.isNavToggled) { + this.props.toggleMobileNav(); + } + } + public render(): React.ReactNode { const { isNavToggled, toggleMobileNav, theme } = this.props; return ( - + -- cgit From 5209729eb1e3a0d0fef18bd2d03207cc2544c87d Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Mon, 17 Dec 2018 19:39:37 +0100 Subject: Increase header tolerances --- packages/website/ts/@next/components/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/website/ts/@next/components/header.tsx') diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index cc68739ed..544a7daf1 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -78,7 +78,7 @@ class HeaderBase extends React.Component { const { isNavToggled, toggleMobileNav, theme } = this.props; return ( - + -- cgit