Add buzzwords link
This commit is contained in:
parent
fe7873b78c
commit
6d8e944b01
@ -5,43 +5,54 @@ 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'
|
||||
: 'text-gray-200'
|
||||
isClient
|
||||
? "text-muted-light bg-muted-dark hover:bg-muted blurred-or-opaque-bg-2"
|
||||
: "text-gray-200"
|
||||
);
|
||||
|
||||
const ActionButtons = ({ isClient, image, shuffleImage }) => (
|
||||
<div className="flex mx-6 mb-6">
|
||||
<Link
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="image-link"
|
||||
title="view image details"
|
||||
to={`/photogallery/${image.base}/`}
|
||||
>
|
||||
<span className="icon-offset">
|
||||
<ion-icon name="image"></ion-icon>
|
||||
</span>
|
||||
</Link>
|
||||
<button
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="shuffle-button"
|
||||
onClick={() => {
|
||||
shuffleImage(image);
|
||||
}}
|
||||
title="shuffle image"
|
||||
type="button"
|
||||
>
|
||||
<span className="icon-offset">
|
||||
<ion-icon name="shuffle"></ion-icon>
|
||||
</span>
|
||||
</button>
|
||||
<Link
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="photogallery-link"
|
||||
to="/photogallery/"
|
||||
>
|
||||
Photography Gallery
|
||||
</Link>
|
||||
<div className="flex flex-col">
|
||||
<div className="p-4 m-4 bg-buzzwordsPrimary bg-opacity-50 rounded-xl flex flex-col text-center">
|
||||
<h3>Try the game I'm making!</h3>
|
||||
<a
|
||||
className={getButtonClasses(isClient)}
|
||||
href="https://buzzwords.gg"
|
||||
>
|
||||
Buzzwords
|
||||
</a>
|
||||
</div>
|
||||
<div className="flex mx-6 mb-6">
|
||||
<Link
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="image-link"
|
||||
title="view image details"
|
||||
to={`/photogallery/${image.base}/`}
|
||||
>
|
||||
<span className="icon-offset">
|
||||
<ion-icon name="image"></ion-icon>
|
||||
</span>
|
||||
</Link>
|
||||
<button
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="shuffle-button"
|
||||
onClick={() => {
|
||||
shuffleImage(image);
|
||||
}}
|
||||
title="shuffle image"
|
||||
type="button"
|
||||
>
|
||||
<span className="icon-offset">
|
||||
<ion-icon name="shuffle"></ion-icon>
|
||||
</span>
|
||||
</button>
|
||||
<Link
|
||||
className={getButtonClasses(isClient, "muted")}
|
||||
id="photogallery-link"
|
||||
to="/photogallery/"
|
||||
>
|
||||
Photography Gallery
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
|
@ -39,6 +39,7 @@ module.exports = {
|
||||
'huge-2': 'max(7.8vw, 120px)'
|
||||
},
|
||||
colors: {
|
||||
buzzwordsPrimary: '#F6C54B',
|
||||
vibrant: {
|
||||
DEFAULT: ({ opacityVariable, opacityValue }) => {
|
||||
if (opacityValue !== undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user