From b2a51f5ede02fe95888271a80631bc8d646c31ea Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Wed, 21 Jul 2021 09:20:30 -0700 Subject: [PATCH] bring back nav bar --- src/pages/index.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index b502bd6..75ea311 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -23,29 +23,22 @@ const getDifferentRand = (range, lastNs, iterations = 0) => { return n; }; -const getButtonClasses = (isClient, colorMode = "vibrant") => { - const textColor = - colorMode === "vibrant" ? "text-vibrant-light" : "text-muted-light"; - const bgColor = colorMode === "vibrant" ? "bg-vibrant-dark" : "bg-muted-dark"; - return classnames( - "z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md hover:underline", - isClient && `${textColor} ${bgColor} blurred-or-opaque-bg-2`, - isClient && colorMode === "muted" ? `hover:bg-muted` : "" - ); -}; +const getNavClasses = (isClient) => + classnames("hover:underline mx-2 md:mx-3", isClient && "text-vibrant-light"); const Nav = ({ ar, isClient }) => ( ); +const getButtonClasses = (isClient) => + classnames( + "z-20 rounded-md text-md inline-block px-2 py-1 mt-1 md:py-2 md:px-3 md:my-1 mr-2 text-md hover:underline", + isClient && + `text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2` + ); + const ImageButtons = ({ isClient, image, shuffleImage }) => (