Closed dirtystylus closed 3 years ago
Not a lot of Markdown image gallery solutions, current thinking is maybe just wrap a <div class="gallery">
tag around a bunch of images, and use CSS grid to just turn that into a grid.
The alternative is perhaps to do something like this Jekyll example, but with the Eleventy front matter
Here’s my thinking for an image grid:
max-width
for the container div for the images.gallery {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
Chris sent me this: https://medium-zoom.francoischalifour.com
Tried Medium Zoom and SmartPhoto
Both had issues. Medium Zoom scales based on the image proportions, so a cropped image won’t expand to full dimensions. You get some weird distortion coming out of a masonry-style CSS grid gallery
SmartPhoto seems to fall apart at small viewports. It looked quite bad on my iPhone SE
Maybe I don’t want a grid of images, in the end? It feels like maybe I should still link to a Flickr gallery for full sets? In which case maybe using the Medium Zoom approach on single, inline images feels like the way to go.
My thinking, currently: