diff --git a/gatsby/package.json b/gatsby/package.json index 39ff4d1..7c3ebf3 100644 --- a/gatsby/package.json +++ b/gatsby/package.json @@ -14,7 +14,7 @@ "serve": "gatsby serve", "clean": "gatsby clean", "lint-fix": "eslint --fix --ext .jsx,.js src", - "deploy": "yarn build && rsync -azP --delete public/ chuckdries@droplet.chuckdries.com:www/personal-website-staging" + "deploy": "yarn build && rsync -rzP --delete public/ chuckdries@droplet.chuckdries.com:www/personal-website-staging" }, "dependencies": { "@mdx-js/mdx": "^1.6.22", diff --git a/gatsby/src/components/GalleryImage.js b/gatsby/src/components/GalleryImage.js index c2ae7c7..d989e8a 100644 --- a/gatsby/src/components/GalleryImage.js +++ b/gatsby/src/components/GalleryImage.js @@ -27,6 +27,8 @@ 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'; + console.log(ar, orientationClasses); const shutterSpeed = React.useMemo(() => getShutterFractionFromExposureTime(meta.exif.ExposureTime || 0), [meta]); return (<> @@ -37,8 +39,8 @@ const GalleryImage = ({ data }) => { /> gallery -
-
1 ? 'flex-col' : 'flex-row-reverse')} style={{ margin: '0 5vw' }}> +
+
{ // minHeight: '500px', }} />
-
+
{hasName(image) &&

{name}

}

{meta.iptc.caption}

diff --git a/gatsby/tailwind.config.js b/gatsby/tailwind.config.js index 3a3657b..656503f 100644 --- a/gatsby/tailwind.config.js +++ b/gatsby/tailwind.config.js @@ -10,6 +10,8 @@ module.exports = { 'lg': '1024px', 'xl': '1280px', '2xl': '1536px', + 'portrait': {'raw': '(orientation: portrait)'}, + 'landscape': {'raw': '(orientation: landscape)'}, }, spacing: { '0': '0px',