a8cteam51 / special-projects-blocks-monorepo

MIT License
8 stars 1 forks source link

Carousel Block #17

Open Nyiriland opened 4 months ago

Nyiriland commented 4 months ago

Overview

Allows you to scroll through a horizontal series of content, including:

There's 2 ways we could approach this:

  1. As its own new "Carousel" block
  2. As an extension to the Gallery and Query Loop blocks, which would require a plugin

We're choosing to focus on creating a new Carousel block so that it can be more easily surfaced within canonical blocks in the future, but could alter the approach if others think differently. (cc @jffng @tommusrhodus )

Scope

The following is a rough outline of the block:

Settings/options:

To be decided:

Accessibility

As with everything we build, a11y will be top of mind. This will include:

Block Editor

An idea we have is that once you insert the Carousel block, you'll get an option of 2 workflows (or 3, if you have Woo installed):

image

Front end examples

See below.

Work in progress

Happy Prime has been exploring some options with carousels, especially on Ernst, and are interested in taking on building out the approach outlined in this issue.

Here is the branch: https://github.com/a8cteam51/johan-ernst/tree/fix/142-carousel-animation And the PR (ongoing): https://github.com/a8cteam51/johan-ernst/pull/236

Nyiriland commented 4 months ago

Sample front-end layouts with options

From this Figma file

image image image
sagarnasit commented 1 month ago

Here is the branch: a8cteam51/johan-ernst@fix/142-carousel-animation And the PR (ongoing): a8cteam51/johan-ernst/pull/236

Hi @Nyiriland @dhanson-wp, I can't access the above links. Would you happen to have any updates on the carousel block's progress? I need a post-carousel block for the Blanes Museum.

Nyiriland commented 1 month ago

@sagarnasit Added you to that repo. I'm not sure where we're at with the progress on this block, I think it's been paused since we don't have resources to move it forward.

sagarnasit commented 3 weeks ago

I was able to achieve a post carousel using query block variation. https://github.com/a8cteam51/blanes-museum/tree/trunk/mu-plugins/blanes-museum-blocks-customizations/src/post-carousel-query-variation