WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.48k stars 4.18k forks source link

Style book: creating landing page view #66517

Open ramonjd opened 3 days ago

ramonjd commented 3 days ago

Parent:

What

Create a new "landing page" view for the style book to display common theme blocks (and one day patterns 🤷🏻).

The requirements as stated in the parent issue are:

A “Landing” tab that would serve as the landing page of the stylebook: a page displaying only blocks that more commonly and immediately are able to represent the theme.

The landing page would be useful for the current iteration of the Site View, which does not currently feature tabs. It serves as a quick glanceable "poster view" for the site style guide:

poster-view

How

It will very much depend on the outcome of discussions in:

There are a few open questions:

Considerations

It's not yet certain how the landing view, which would presumably NOT contain a list of all blocks, would interact with a global styles panel in:

Perhaps the canvas's content could be dynamic, driven by navigation routes. For example, if the landing page is active and the user clicks on a block style, the canvas would load that block style.

Related

tellthemachines commented 3 days ago

It's not yet certain how the landing view, which would presumable NOT contain a list of all blocks, would interact with a global styles panel in #65619

I think the landing view would be ideal as a first glimpse of the stylebook when opening global styles! But given that #65619 also makes it possible to scroll specific blocks into view when looking at their global styles, we'd probably need a few different screens to switch between in that view.