Enhanced Image Gallery (Paragraph Bundle Grid) with Interactive Lightbox Viewer Feature

Created on 2 March 2024, 9 months ago
Updated 27 June 2024, 5 months ago

Problem/Motivation

The image grid is a really nice component to show a gallery of images. It would be great if you can support some lightbox feature. Meaning when the user clicks on an image then a bigger version pops up. This would allow users to see more details on the image.

Steps to reproduce

Create an image grid with some images.

Proposed resolution

Add option for lightbox feature.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany gruberroland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gruberroland
  • Assigned to flashwebcenter
  • Status changed to Needs review 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX

    Hello,

    I'm glad to hear you've enjoyed the image grid component! Over the weekend, I put some focused effort into enhancing it with the lightbox feature you mentioned. This functionality has now been integrated into the development version.

    The lightbox feature allows users to click on any image within the grid to view a larger, more detailed version in a pop-up modal. The image style was set to 600 px, so I removed the fixed width and it uses the original size. You will need to update this image style your-site/admin/config/media/image-styles/manage/pb_image_grid.

    I've conducted initial testing to ensure the lightbox functions smoothly across different devices and browsers. This testing phase includes verifying the responsiveness of the modal, the clarity of the images in their enlarged state, and the seamless integration of this feature with the existing grid layout.

    Additionally, I'm in the process of testing various variables such as color schemes, image titles, and other metadata to ensure they're accurately represented within the lightbox view.

    Further testing and refinements will continue to ensure robust functionality and accessibility. Your feedback is invaluable, so please feel free to share any thoughts or suggestions as you explore this new feature.
    Here is on the demo site: https://unitedstarsofamerica.com/display-formats/paragraph-bundle-image-...

    Best wishes,
    Alaa

  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX
  • πŸ‡©πŸ‡ͺGermany gruberroland

    Great, thanks a lot for the super fast implementation! I really like it. :)

    There are a few things that could maybe improved:

    * The close button is in the top right corner of the image which makes it sometime hard to see. Maybe put it on top right of the page (outside of image). On your demo it looks fine but for application screenshots with several lines at this position it is a bit hard to see.
    * For next/previous buttons the rectangular bright background could be removed (and making the SVG brighter) to make them look more integrated.
    * The page loads all images in full resolution. Instead, the gallery images could be displayed as responsive images and only the popup image in full size.

  • Status changed to Fixed 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX

    Hello,

    • The close button is in the top right corner of the image which makes it sometime hard to see. Maybe put it on top right of the page (outside of image). On your demo it looks fine but for application screenshots with several lines at this position it is a bit hard to see. Done
    • For next/previous buttons the rectangular bright background could be removed (and making the SVG brighter) to make them look more integrated.Done
    • The page loads all images in full resolution. Instead, the gallery images could be displayed as responsive images and only the popup image in full size.Done

    The default image style PB Image Grid is for the thumb.
    A new image style was added for the clicked image PB Image Grid Full
    To use the new image style, just reinstall the module.

    https://unitedstarsofamerica.com/display-formats/paragraph-bundle-image-...

    Best wishes,
    Alaa

  • πŸ‡©πŸ‡ͺGermany gruberroland

    Perfect, this looks great now! :)

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • πŸ‡ΊπŸ‡ΈUnited States flashwebcenter Austin TX
Production build 0.71.5 2024