diff --git a/src/pages/index.js b/src/pages/index.js index 79a9f4c..fd9c676 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -24,56 +24,63 @@ const getDifferentRand = (range, lastNs, iterations = 0) => { return n; }; -const NavLink = ({ href, children, isClient }) => ( - - {children} - -); +const getButtonClasses = (isClient, colorMode = 'vibrant') => + classnames( + "z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md hover:underline", + isClient && + `text-muted-light bg-${colorMode}-dark blurred-or-opaque-bg-2`, + isClient && colorMode === 'muted' ? `hover:bg-muted` : '' + ); -const Nav = ({ isClient, ar }) => ( +const Nav = ({ ar, isClient }) => ( @@ -82,11 +89,7 @@ const Nav = ({ isClient, ar }) => ( const ImageButtons = ({ isClient, image, shuffleImage }) => (
( @@ -208,6 +203,7 @@ const IndexPage = ({ const vibrant = getVibrant(image); const ar = getAspectRatio(image); console.log("bg", image.base); + return ( <> @@ -217,7 +213,6 @@ const IndexPage = ({ style={getVibrantToHelmetSafeBodyStyle(vibrant)} /> - {/* WIP: ipad portrait hits md breakpoint, looks bad */}