diff --git a/gatsby/gatsby-node.js b/gatsby/gatsby-node.js index e36a1e0..8222741 100644 --- a/gatsby/gatsby-node.js +++ b/gatsby/gatsby-node.js @@ -38,20 +38,11 @@ function transformMetaToNodeData(exifData, iptcData, vibrantData) { } } - // console.log('asdf', JSON.stringify(vibrantData.Vibrant.getTitleTextColor())); - const vibrant = R.map((swatch) => ({ rgb: swatch.getRgb(), titleTextColor: swatch.getTitleTextColor(), bodyTextColor: swatch.getBodyTextColor(), }) - // ({ - // // rgb: swatch.getRgb(), - // // hsl: swatch.getHsl(), - // // hex: swatch.getHex(), - // // // titleTextColor: swatch.getTitleTextColor(), - // // // bodyTextColor: swatch.getBodyTextColor(), - // }) , vibrantData); return { diff --git a/gatsby/src/components/GalleryImage.js b/gatsby/src/components/GalleryImage.js index d989e8a..fd6fa17 100644 --- a/gatsby/src/components/GalleryImage.js +++ b/gatsby/src/components/GalleryImage.js @@ -27,7 +27,7 @@ const GalleryImage = ({ data }) => { const meta = getMeta(image); const vibrant = getVibrant(image, true); - const orientationClasses = ar > 1 ? 'flex-col' : 'landscape:flex-row-reverse portrait:flex-col'; + const orientationClasses = ar > 1 ? 'flex-col mx-auto' : 'portrait:mx-auto landscape:mx-4 landscape:flex-row-reverse portrait:flex-col'; console.log(ar, orientationClasses); const shutterSpeed = React.useMemo(() => getShutterFractionFromExposureTime(meta.exif.ExposureTime || 0), [meta]); return (<> @@ -40,7 +40,7 @@ const GalleryImage = ({ data }) => { gallery