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

Design bundled Template Part patterns #31231

Closed
kjellr opened this issue Apr 27, 2021 · 10 comments
Closed

Design bundled Template Part patterns #31231

kjellr opened this issue Apr 27, 2021 · 10 comments
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Needs design efforts. [Type] Discussion For issues that are high-level and not yet ready to implement.

Comments

@kjellr
Copy link
Contributor

kjellr commented Apr 27, 2021

Paired with the work in #31155, we should consider exploring various patterns for Template Parts. Let's use this thread to brainstorm possible designs.

Like the Query patterns explored in #30508, these patterns would likely be bundled with Gutenberg for a short time, and then would shift over to the Pattern Directory.

As per #29159, these would map to a few categories:

  • Headers
  • Footers
  • General
@kjellr kjellr added Needs Design Needs design efforts. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Discussion For issues that are high-level and not yet ready to implement. labels Apr 27, 2021
@kjellr kjellr changed the title Explore Template Part patterns Design Template Part patterns Apr 27, 2021
@kjellr kjellr changed the title Design Template Part patterns Design bundled Template Part patterns Apr 27, 2021
@carolinan
Copy link
Contributor

I think this needs to be solved first because if the template part block itself has styling options it will change how the pattern looks.
#30732

@kjellr
Copy link
Contributor Author

kjellr commented May 4, 2021

To get this started, I spent a little time on potential Header & Footer patterns. These are thematically based on the new patterns, however most of the blocks here would use dynamic blocks and would reflect the actual site they're previewed on.

I ran into a few issues while creating these:

The footer patterns could use the most work — I think it would be helpful to include an option that uses a typical blog footer with latest posts, categories/tags, etc.

Header

header

Footer

Screen Shot 2021-05-05 at 11 24 55

@carolinan
Copy link
Contributor

Yeah aligning a paragraph and site title to create a copyright or credit text in the footer isn't possible without additional CSS to force them to be inline.

@mtias
Copy link
Member

mtias commented May 5, 2021

This a great start!

@kjellr
Copy link
Contributor Author

kjellr commented May 6, 2021

Adding a couple more issues that I ran into, specifically around getting these to work responsively:

@carolinan
Copy link
Contributor

For general template parts, it would be great to be able to use post meta information in template parts.
But it is not possible to place post date, post title, post author, tags etc in a template part because it will only show the information for the current item, it does not use context so it can not be used in a loop.

@Sandstromer
Copy link

gutenberg-pattern-header

Blocks used in this pattern

gutenberg-pattern-header-blocks-view

@carolinan
Copy link
Contributor

I think it would be good to have social icons in at least one of the footers?

@kjellr
Copy link
Contributor Author

kjellr commented May 11, 2021

I think it would be good to have social icons in at least one of the footers?

Yeah, definitely. I realized I didn't include a site tagline in any of the headers either. 😄 I'll iterate a bit as I try building these out.

@mtias
Copy link
Member

mtias commented Jun 29, 2023

This is in place already.

@mtias mtias closed this as completed Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Needs design efforts. [Type] Discussion For issues that are high-level and not yet ready to implement.
Projects
None yet
Development

No branches or pull requests

4 participants