From f3195c748aa43281e4ccdd0677158ace90522e7d Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Sat, 19 Jun 2021 12:47:00 -0700 Subject: [PATCH] add homepage button to view image details and change back buttons to actually go back --- src/components/GalleryImage.js | 33 +++++++++++++++++++++------------ src/pages/index.js | 31 ++++++++++++++++++++++++++++--- src/pages/photogallery.js | 8 ++++++-- src/styles/global.css | 4 ++++ 4 files changed, 59 insertions(+), 17 deletions(-) diff --git a/src/components/GalleryImage.js b/src/components/GalleryImage.js index f5719bb..38dbe34 100644 --- a/src/components/GalleryImage.js +++ b/src/components/GalleryImage.js @@ -1,5 +1,5 @@ import React from 'react'; -import { graphql, Link } from 'gatsby'; +import { graphql, Link, navigate } from 'gatsby'; import { getAspectRatio, getMeta, @@ -39,7 +39,11 @@ const GalleryImage = ({ data }) => { style={getVibrantToHelmetSafeBodyStyle(vibrant)} /> - gallery +
@@ -58,28 +62,33 @@ const GalleryImage = ({ data }) => {
- {hasName(image) &&

{name}

} +

{image.base}

+ {hasName(image) &&

{name}

}

{meta.iptc.caption}

- {(locationString) &&
- + {(locationString) &&
+ {locationString}
} - {shutterSpeed &&
- + {shutterSpeed &&
+ + + {shutterSpeed}
} - {meta.exif.FNumber &&
- + {meta.exif.FNumber &&
+ f/{meta.exif.FNumber}
} - {meta.exif.ISO &&
- ISO - {meta.exif.ISO} + {meta.exif.ISO &&
+ + + + {meta.exif.ISO}
}
diff --git a/src/pages/index.js b/src/pages/index.js index 94f0299..7d9e456 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -115,15 +115,40 @@ const IndexPage = ({ data: { allFile: { edges } } }) => {
-
+
+ + + + {
- home +

Photo Gallery