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 (<>
{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',