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;