From beffcd990cb73655ea97cc61727a9c1bde359b97 Mon Sep 17 00:00:00 2001 From: Ezekiel Aquino Date: Mon, 10 Dec 2018 19:13:52 +0100 Subject: WIP Updates dropdown menus --- .../website/ts/@next/components/dropdowns/mock.tsx | 5 + packages/website/ts/@next/components/header.tsx | 109 +++++++++++++++------ 2 files changed, 83 insertions(+), 31 deletions(-) create mode 100644 packages/website/ts/@next/components/dropdowns/mock.tsx (limited to 'packages/website/ts/@next') diff --git a/packages/website/ts/@next/components/dropdowns/mock.tsx b/packages/website/ts/@next/components/dropdowns/mock.tsx new file mode 100644 index 000000000..9ead533d6 --- /dev/null +++ b/packages/website/ts/@next/components/dropdowns/mock.tsx @@ -0,0 +1,5 @@ +import * as React from 'react'; + +export const Dropdown = () => ( +
Dropdown menu placeholder
+); diff --git a/packages/website/ts/@next/components/header.tsx b/packages/website/ts/@next/components/header.tsx index 144eb5eb2..99e634e18 100644 --- a/packages/website/ts/@next/components/header.tsx +++ b/packages/website/ts/@next/components/header.tsx @@ -7,6 +7,7 @@ import { colors } from 'ts/style/colors'; import { Button, ButtonWrap, Link } from 'ts/@next/components/button'; import { DevelopersDropDown } from 'ts/@next/components/dropdowns/developers_drop_down'; +import { Dropdown } from 'ts/@next/components/dropdowns/mock'; import { Hamburger } from 'ts/@next/components/hamburger'; import { Section, Wrap } from 'ts/@next/components/layout'; import { Logo } from 'ts/@next/components/logo'; @@ -38,8 +39,18 @@ const mobileProductLinks = [ const navItems: NavItem[] = [ { id: 'why', url: '/next/why', text: 'Why 0x' }, - { id: 'products', url: '/next/0x-instant', text: 'Products' }, - { id: 'developers', url: '#', text: 'Developers' }, + { + id: 'products', + url: '/next/0x-instant', + text: 'Products', + dropdownComponent: Dropdown, + }, + { + id: 'developers', + url: '#', + text: 'Developers', + dropdownComponent: Dropdown, + }, { id: 'about', url: '/next/about/mission', text: 'About' }, { id: 'blog', url: '#', text: 'Blog' }, ]; @@ -63,7 +74,6 @@ export class Header extends React.Component {