Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support image galleries in featured data articles #49

Open
clnsmth opened this issue Mar 14, 2023 · 3 comments
Open

Support image galleries in featured data articles #49

clnsmth opened this issue Mar 14, 2023 · 3 comments
Labels
feature New feature

Comments

@clnsmth
Copy link
Collaborator

clnsmth commented Mar 14, 2023

Featured data authors have expressed interest in sharing a collection of images to help communicate data collection processes and other interesting aspects of a project. These interests align with our goals for the featured data series.

Currently, adding several images to a featured data article results in an image heavy page where the majority of the vertical scroll space is occupied by images and very little article text, which is unconventional to say the least. Typically, webpages use galleries to share an image collection, where the gallery is composed of clickable thumbnails that expand into full sized images.

One potential solution here is to implement a gallery with an HTML block, embedded in the content-x markdown, and referencing CSS to enable a flexible layout with consistently sized thumbnails. This latter feature is beneficial to article curators who would otherwise have to create a separate set of thumbnail images.

For example:

A couple shortcomings of this implementation to be aware of:

  • It is not possible to iterate through all images from the enlarged image window. The user must back out of the enlarged image to the main gallery and click on the next image to enlarge it. A more streamlined user experience would allow direct iteration from the enlarged viewport (see here for an example).
  • Individual image captions must be supplied in a single block of text below the image gallery.
@clnsmth
Copy link
Collaborator Author

clnsmth commented Mar 15, 2023

Relatedly, a set of contributing guidelines have been staged at PASTAplus/content-x@1d33882 and are ready to be merged if the proposed feature here is excepted, as is.

@clnsmth
Copy link
Collaborator Author

clnsmth commented Mar 15, 2023

During review, it was decided that some additional "bells and whistles" would be nice to include as time permits, specifically:

  1. Support navigation between fully enlarged images of a gallery in a manner consistent with a modal image gallery (lightbox).
  2. Support image specific captions. Note, the lightbox option above, supports this through use of the alt attribute of the HTML img tag.

@clnsmth
Copy link
Collaborator Author

clnsmth commented Mar 15, 2023

The related set of contributing guidelines has been added via PASTAplus/content-x#43.

@servilla servilla added the feature New feature label Oct 21, 2023
@servilla servilla added the EDI label Oct 31, 2023
@servilla servilla moved this to ToDos in Consolidated Issues Oct 31, 2023
@servilla servilla removed the EDI label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
Status: ToDo
Development

No branches or pull requests

2 participants