From 0066315a2d4f2036f49b8a191cd4c16e672b030d Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Thu, 27 Jan 2022 11:49:14 -0800 Subject: [PATCH] hamburger menu on mobile --- components/Layouts/LandingPageLayout.tsx | 60 +++++++++++++++++++++++- pages/features.tsx | 1 + pages/philosophy.tsx | 1 + 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/components/Layouts/LandingPageLayout.tsx b/components/Layouts/LandingPageLayout.tsx index e94ce54..aba8caf 100644 --- a/components/Layouts/LandingPageLayout.tsx +++ b/components/Layouts/LandingPageLayout.tsx @@ -1,7 +1,8 @@ +import { Dropdown, Menu } from "antd"; import Link from "next/link"; import { useRouter } from "next/router"; import { useState } from "react"; -import { FaAngleRight } from "react-icons/fa"; +import { FaAngleRight, FaGripHorizontal } from "react-icons/fa"; import { useAuth } from "../../contexts/authContext"; import MainLogo from "../MainLogo"; @@ -36,13 +37,64 @@ export default function LangingPageLayout({ children }) { ); + const mobileMenu = ( + + + window.open(LandingPageNavigation.product, "_self")}> + Product + + + + Features + + + + Pricing + + + + Philosophy + + + + + {currUser ? ( + + + + ) : ( + <> + + + + + + + + + )} + + ); + return (
{/* header */}
- + window.open(LandingPageNavigation.product, "_self") @@ -111,6 +163,10 @@ export default function LangingPageLayout({ children }) { )} + + + +
{children} diff --git a/pages/features.tsx b/pages/features.tsx index 4f09a61..2530fe2 100644 --- a/pages/features.tsx +++ b/pages/features.tsx @@ -14,6 +14,7 @@ export default function Features() { return ( + FEATURES Your WFH Hub diff --git a/pages/philosophy.tsx b/pages/philosophy.tsx index 8d4a956..e48760a 100644 --- a/pages/philosophy.tsx +++ b/pages/philosophy.tsx @@ -26,6 +26,7 @@ export default function Philosophy() { return ( + PHILOSOPHY We live in a distracted world.{" "}