From a81060d5b836aa753edba382e76ef5b6d3d2f758 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 21 Sep 2020 03:18:32 -0700 Subject: [PATCH] make the Dress to Impress text clickable oops, right, it was not part of the link! Now it is. Feels much better :) --- src/app/GlobalHeader.js | 111 +++++++++++++++++++--------------------- 1 file changed, 54 insertions(+), 57 deletions(-) diff --git a/src/app/GlobalHeader.js b/src/app/GlobalHeader.js index dc07b92..fd246a7 100644 --- a/src/app/GlobalHeader.js +++ b/src/app/GlobalHeader.js @@ -10,20 +10,9 @@ import HomeLinkIcon from "../images/home-link-icon.png"; import HomeLinkIcon2x from "../images/home-link-icon@2x.png"; function GlobalHeader() { - const { pathname } = useLocation(); - const isHomePage = pathname === "/"; - return ( - - - - + @@ -31,51 +20,73 @@ function GlobalHeader() { ); } -function HomeLink({ showArrow, ...props }) { +function HomeLink(props) { + const { pathname } = useLocation(); + const isHomePage = pathname === "/"; + return ( - + + + + + - + fontFamily="Delicious" + fontWeight="600" + fontSize="2xl" + display={{ base: "none", sm: "block" }} + opacity={isHomePage ? "0" : "1"} + transition="all 0.2s" + marginRight="2" + _groupHover={{ fontWeight: "900" }} + _groupFocus={{ fontWeight: "900" }} + > + Dress to Impress + ); } @@ -121,20 +132,6 @@ function UserNavBarSection() { } } -function DressToImpressTitle(props) { - return ( - - Dress to Impress - - ); -} - const NavButton = React.forwardRef(({ icon, ...props }, ref) => { const Component = icon ? IconButton : Button;