diff --git a/src/components/GalleryImage/GalleryImage.js b/src/components/GalleryImage/GalleryImage.js index 5784441..57fae77 100644 --- a/src/components/GalleryImage/GalleryImage.js +++ b/src/components/GalleryImage/GalleryImage.js @@ -4,6 +4,8 @@ import { GatsbyImage, getImage } from "gatsby-plugin-image"; import { Helmet } from "react-helmet"; import classnames from "classnames"; +import ChevronLeft from '@spectrum-icons/workflow/ChevronLeft'; +import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import Calendar from "@spectrum-icons/workflow/Calendar"; import Stopwatch from "@spectrum-icons/workflow/Stopwatch"; import Exposure from "@spectrum-icons/workflow/Exposure"; @@ -36,6 +38,10 @@ const logKeyShortcut = (keyCode) => { } }; +const ArrowLinkClasses = `hover:underline text-vibrant-light hover:text-muted-light +lg:px-4 self-stretch flex items-center hover:bg-black/50 max-h-screen sticky top-0 +`; + const GalleryImage = ({ data, location: { @@ -166,9 +172,11 @@ const GalleryImage = ({ > gallery esc + +
{prevImage && ( - previous + )} +
+
setZoom((_zoom) => !_zoom)} + style={{ + maxWidth: `calc(max(calc(100vh - ${verticalPad}), 500px) * ${ar})`, + }} + > + {zoom ? ( + {name} + ) : ( + + )} +
+
+
+

+ {image.base} +

+ {hasName(image) && ( +

{name}

+ )} +

{meta.Caption}

+ { + try { + window.plausible("Download Wallpaper", { + props: { image: image.base }, + }); + } catch { + // do nothing + } + }} + > + Download wallpaper + +
+ { +
+ } +
+ } + title="date taken" + /> +
+ } + title="shutter speed" + /> + {meta.FNumber && ( + } + title="aperture" + /> + )} + } title="ISO" /> +
+ } + title="location" + /> + {(meta.Make || meta.Model) && ( + } + title="camera" + /> + )} + {(meta.LensModel || meta.FocalLength) && ( + } + title="lens" + /> + )} +
+
+
{nextImage && ( - next + )} - -
-
setZoom((_zoom) => !_zoom)} - style={{ - maxWidth: `calc(max(calc(100vh - ${verticalPad}), 500px) * ${ar})`, - }} - > - {zoom ? ( - {name} - ) : ( - - )} -
-
-
-

- {image.base} -

- {hasName(image) && ( -

{name}

- )} -

{meta.Caption}

- { - try { - window.plausible("Download Wallpaper", { - props: { image: image.base }, - }); - } catch { - // do nothing - } - }} - > - Download wallpaper - -
- { -
- } -
- } - title="date taken" - /> -
- } - title="shutter speed" - /> - {meta.FNumber && ( - } - title="aperture" - /> - )} - } title="ISO" /> -
- } - title="location" - /> - {(meta.Make || meta.Model) && ( - } - title="camera" - /> - )} - {(meta.LensModel || meta.FocalLength) && ( - } - title="lens" - /> - )} -
-
-
); diff --git a/src/components/GalleryImage/MetadataItem.js b/src/components/GalleryImage/MetadataItem.js index 89fe065..3ae3559 100644 --- a/src/components/GalleryImage/MetadataItem.js +++ b/src/components/GalleryImage/MetadataItem.js @@ -5,7 +5,7 @@ const MetadataItem = ({ icon, data, title }) =>
{title} - {data} + {data}
{icon}