Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Add About me patterns #110

Merged
merged 23 commits into from
Oct 14, 2021
Merged

Add About me patterns #110

merged 23 commits into from
Oct 14, 2021

Conversation

scruffian
Copy link
Collaborator

Description
This adds the patterns from #15

Screenshots
localhost_4759__p=559

Testing Instructions

  1. Add each of the patterns from the block inserter
  2. You will need to set a site logo and have some pages to see all aspects of the patterns

@MaggieCabrera
Copy link
Collaborator

I think we should add .DS_Store to gitignore :D

Copy link
Collaborator

@jffng jffng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this!


<!-- wp:group {"style":{"spacing":{"padding":{"top":"4rem","bottom":"4rem"}}},"layout":{"wideSize":"1000px"}} -->
<div class="wp-block-group" style="padding-top:4rem;padding-bottom:4rem"><!-- wp:buttons {"contentJustification":"space-between"} -->
<div class="wp-block-buttons is-content-justification-space-between"><!-- wp:button {"width":25} -->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you set a width on a button, they don't wrap nicely on smaller screens:

Screen Shot 2021-10-14 at 10 13 58 AM

It's because of this line:

Screen Shot 2021-10-14 at 10 15 20 AM

It seems like this needs better defaults in Gutenberg, whether that's through flex-basis, min-width or otherwise.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recreated this one using columns, and it works much better.... except at middle breakpoints. I'm not sure what else to try. 😕 Might end up needing to revise this design.
buttons

inc/patterns/about-me-big-image-and-buttons.php Outdated Show resolved Hide resolved
inc/block-patterns.php Outdated Show resolved Hide resolved
@kjellr
Copy link
Collaborator

kjellr commented Oct 14, 2021

I just pushed responsive values for the text. I have some ideas for how to improve responsive behavior in general for some of these — I'll push some additional commits for that in a little bit.

@kjellr
Copy link
Collaborator

kjellr commented Oct 14, 2021

Ok I pushed a bunch of responsive cleanups. I also added alt text and did some general cleanup wherever I saw things looking weird. Should be ok for another review.

@kjellr
Copy link
Collaborator

kjellr commented Oct 14, 2021

I've also updated readme.txt with the credit lines for these images.

Copy link
Collaborator

@jffng jffng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice work with these, they are beautiful.

A couple comments, but I think these are ready to come in pending that issue with the cover block.

@@ -20,9 +20,19 @@ function twentytwentytwo_register_block_patterns() {
'twentytwentytwo-query',
array( 'label' => __( 'Twenty Twenty-Two Posts', 'twentytwentytwo' ) )
);
register_block_pattern_category(
'twentytwentytwo-about-me',
array( 'label' => __( 'Twenty Twenty-Two: About Me', 'twentytwentytwo' ) )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other pattern categories don't have colons:

Screen Shot 2021-10-14 at 3 06 08 PM

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should probably actually just place these in the "Pages" category that will be defined when #104 lands, so let's wait for that and just change this before we merge.

@kjellr kjellr merged commit c976341 into trunk Oct 14, 2021
@kjellr kjellr deleted the add/about-me-patterns branch October 14, 2021 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants