diff --git a/src/components/index/ActionButtons.js b/src/components/index/ActionButtons.js index 46f3e30..f8d0ad4 100644 --- a/src/components/index/ActionButtons.js +++ b/src/components/index/ActionButtons.js @@ -5,8 +5,9 @@ import { Link } from "gatsby"; 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` + isClient + ? 'text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2' + : 'text-gray-200' ); const ActionButtons = ({ isClient, image, shuffleImage }) => ( diff --git a/src/components/index/Nav.js b/src/components/index/Nav.js index 1c3a484..5d04625 100644 --- a/src/components/index/Nav.js +++ b/src/components/index/Nav.js @@ -2,7 +2,7 @@ import React from 'react'; import classnames from 'classnames'; const getNavClasses = (isClient) => - classnames("hover:underline mx-2 md:mx-3", isClient && "text-vibrant-light"); + classnames("hover:underline mx-2 md:mx-3", isClient ? "text-vibrant-light" : 'text-gray-200'); const Nav = ({ ar, isClient }) => (