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

Component Request - SectionGallery #88

Closed
pghorpade opened this issue Jun 10, 2021 · 1 comment
Closed

Component Request - SectionGallery #88

pghorpade opened this issue Jun 10, 2021 · 1 comment

Comments

@pghorpade
Copy link
Contributor

pghorpade commented Jun 10, 2021

Component Description

This component is used on Exhibits Detail page to display gallery. It has open and closed state when clicked on +/- icons if multiple items exists. There is a hover state on the featured image.

Design

Please also see attached screenshots for quick reference.

Slots

None

Props

props: {
   // Do we need 'featureditem' or do we just pick the first element of 'items'?
    featuredItem: {
        // It is an object contains image or video url.
        type: Object,
        default: () => {}
    },
    items: {
        // array of objects [url, objectType[audio,video,image], meta: { to, category, title, dates, times, text, location }]
        type: Array,
        default: () => []
    },
    galleryTitle: {
        type: String,
        default: ""
    }
}

Developer Tips

Hover state on Featured Image:

background: radial-gradient(50% 50% at 50% 50%, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.555208) 85.42%, rgba(15, 15, 15, 0.65) 100%), url(Screen Shot 2021-02-16 at 7.18.45 PM.png);
  1. The carousel ModalLightbox component opens as a modal
  2. Keep track of the index of the item to display from the items prop, maybe as component-level state or in vuex but I think putting it in the URL as a ? parameter or # anchor would be best. If this stored value is either absent or invalid (e.g. `-1) the modal does not display.
  3. Listen for events lightbox-select-previous, lightbox-select-next, and lightbox-close from ModalLightbox and lightbox-select-item from SectionTeaserVertical, all of which update the item selected for the lightbox.
  4. component opens in a Modal by clicking on solid molecule image icon.
  5. A grid of SectionTeaserVertical opens/closes by clicking on +/- icons if multiple items exists, else if its just one video there will be play icon to play the video.
  6. When the user clicks the + icon, the solid-molecule is not visible. When the user clicks the - icon to close the SectionTeaserVertical grid, the solid-molecule will reappear.
  7. Use following icons (+/-, play icon for video, solid-molecule-image, solid-molecule-video)
  8. which audio and video player to use? Maybe jwplayer, or videojs.
  9. See SearchGeneric for event propagation.

Child components

  1. divider-general is used at the bottom.
  2. block-gallery-vertical is used in the section below the FeaturedImage when clicked on + icon to display the gallery view of all the items.
  3. ModalLightbox is shown when the user clicks the molecule button in the center of the featured image.
  4. icon Svgs

Screenshots

image

Hover state
image

Open state:
image

@aprigge
Copy link
Contributor

aprigge commented Nov 16, 2021

Will be done in #162

@aprigge aprigge closed this as completed Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants