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

16. Component Request - Media Gallery - Flexible Page Block #162

Open
jendiamond opened this issue Sep 17, 2021 · 0 comments
Open

16. Component Request - Media Gallery - Flexible Page Block #162

jendiamond opened this issue Sep 17, 2021 · 0 comments
Assignees

Comments

@jendiamond
Copy link
Member

jendiamond commented Sep 17, 2021

Component Description

This component is used to create of a gallery using any combination of video, audio and image files. The user can choose whether to hide the gallery behind a single image, or display all of the gallery images. When a user clicks on media in a gallery, they go into a light box view.

If only one image is in the Media Gallery, there is no dropdown behavior.

This component is used in these entries:

General Content Page Workshop
Event Series Article
Landing Page Event
Resource Exhibit
Endowment -

Design

Please also see attached screenshots for quick reference.

Design System:

Props

The fields the block object takes. ( the fields in gray are required )
block: { image: { image, altText, captionTitle, captionText, },
video: { videoFile, externalVideo, captionTitle, captionText, coverImage },
audio: { audio, captionTitle, captionText, coverImage }

Audio file" "` }

props: {
    block: {
        type: Object,
        default: () => {}
    },
}

Developer Tips

Create a component called: components/Flexible/MediaGallery.vue

<template lang="html">
    build this here
</template>

<script>
export default {
    props: {
        // TODO Shape props here
    },
}
</script>

<style lang="css" scoped>
.media-gallery {
    // Styles
}
</style>

Add case here: components/FlexibleBlocks.vue

function convertName(typeHandle) {
    let output = `flexible-${typeHandle}`
    switch (typeHandle) {
        case "ctaBlockContentWidth":
            output = "flexible-cta"
            break

        case "mediaGallery":
            output = "flexible-media-gallery"
            break
    }
    return _kebabCase(output)
}

Screenshots

Screen Shot 2021-09-21 at 8 00 15 PM

@jendiamond jendiamond changed the title Component Request - Video Content Width - Flexible Page Block 14. Component Request - Video Content Width - Flexible Page Block Sep 17, 2021
@jendiamond jendiamond changed the title 14. Component Request - Video Content Width - Flexible Page Block 14. Component Request - Simple card (3-up) - Flexible Page Block Sep 17, 2021
@jendiamond jendiamond changed the title 14. Component Request - Simple card (3-up) - Flexible Page Block 16. Component Request - Media Gallery - Flexible Page Block Sep 18, 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