Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Add pattern events - three columns with images and title (static)#185

Merged
juanfra merged 18 commits intoWordPress:trunkfrom
dballari:addpattern-events-3cols-images-title-v2
Sep 10, 2024
Merged

Add pattern events - three columns with images and title (static)#185
juanfra merged 18 commits intoWordPress:trunkfrom
dballari:addpattern-events-3cols-images-title-v2

Conversation

@dballari
Copy link
Contributor

@dballari dballari commented Sep 3, 2024

Description

Fixes #84 #84
Adding the ‘events three columns with images and titles’ pattern.

At first I implemented this pattern as a dynamic one using a Grid Custom Query Loop block, which is in another branch of my forked repo. The problem is the custom query has to be configured targeting the desired pieces of content (events). I guess for a default theme is better as an static pattern.

Screenshots

2024-09-03.09-26-36-addpattern-events-three-columns.mp4

Testing Instructions

  1. Create a page
  2. Add the pattern
  3. Confirm it looks like the design

@github-actions
Copy link

github-actions bot commented Sep 3, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @[email protected].

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: [email protected].

Co-authored-by: dballari <[email protected]>
Co-authored-by: juanfra <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: beafialho <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@carolinan
Copy link
Contributor

@beafialho Displaying the date above the headings is problematic because for example visitors who use screen readers and navigate by the headings will not access the information about the date; or the date will be associate with the heading before it.

Where do you want the date moved to?

@carolinan carolinan added the [Status] Needs Design Feedback Needs general design feedback. label Sep 10, 2024
*/

?>
<!-- wp:group {"metadata":{"categories":["featured"],"patternName":"twentytwentyfive/events-three-columns-images-and-titles","name":"Events three columns with event images and titles"},"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"blockGap":"0"}},"layout":{"type":"constrained"}} -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the metadata.

Copy link
Contributor

Choose a reason for hiding this comment

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

The outer group block needs to be full width, otherwise there is no left and right spacing when a background color is added.
Please set the top and bottom margin to 0, so that there is no extra spacing between full width sections:

image

<h3 class="wp-block-heading" style="padding-top:var(--wp--preset--spacing--20)">Tell your story</h3>
<!-- /wp:heading -->

<!-- wp:paragraph {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40"}}},"fontSize":"large"} -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Large is the default size for the paragraph, so it is not needed here. Remember to also remove the class name on the <p> tag below.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove it from all 3 paragraphs.

<!-- /wp:heading -->

<!-- wp:paragraph {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40"}}},"fontSize":"large"} -->
<p class="has-large-font-size" style="padding-top:var(--wp--preset--spacing--40)"><a href="#a">Event details</a></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there an a inside the href? Did you mean for this to be #?

@dballari
Copy link
Contributor Author

Hi @carolinan I made the correction to the pattern: removed metadata, make outer group fullwidth, set top and bottom margins to zero, use default size for event details paragraph and yes I meant # instead of #a (sorry).

You also mention the class of the paragraph, I guess is the events details paragraph, but there is no class rightnow. So I guess is ok.

I will wait for @beafialho's feedback to place the headings in the right place.

Thanks a lot! And sorry for the errors, it's my first PR to a WP repo.

By the way there are conflicts in the readme file due to the fact all of us add image licenses to it. Is it ok to make the PR like this? I guess the person in charge of merging it will solve them.

@beafialho
Copy link
Contributor

Thank you for working on this @dballari!

Let's move the date below the titles.

Just to note because I see you added top padding to the date. Since it's now moving below the title, that top padding should be removed. For right space between title and date, I suggest grouping them with a stack block and set block spacing to the first preset.

Captura de ecrã 2024-09-10, às 10 28 29

Copy link
Member

@juanfra juanfra left a comment

Choose a reason for hiding this comment

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

Thank you @dballari! I left some comments, adding to what Carolina and Bea mentioned.

By the way there are conflicts in the readme file due to the fact all of us add image licenses to it. Is it ok to make the PR like this? I guess the person in charge of merging it will solve them.

This can happen often. As you mentioned, in this particular case it is the readme.txt. The idea is that the contributor is the one that should be taking care of the conflicts, as it is the one knowing what the goal of the PR is, what's that it is solving and how it should work. Reviewers can probably catch problems, but ideally it is the contributor that's working on the PR the one that should be fixing the merge conflicts.

I'll take care of this first time, so that I maybe add some clarity on how it should be approached. Thanks again.

dballari and others added 4 commits September 10, 2024 18:39
Co-authored-by: Juan Aldasoro <[email protected]>
Co-authored-by: Juan Aldasoro <[email protected]>
Co-authored-by: Juan Aldasoro <[email protected]>
Copy link
Member

@juanfra juanfra left a comment

Choose a reason for hiding this comment

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

Thank you so much for your contribution @dballari

@juanfra juanfra merged commit 671968c into WordPress:trunk Sep 10, 2024
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.

Block Patterns - Events - Three columns with event images and title

4 participants