Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Conversation

@jffng
Copy link
Contributor

@jffng jffng commented Apr 15, 2021

This PR adds two block patterns and a few lines of CSS to adjust the padding of a nested container inside a media & text block.

Screen Shot 2021-04-15 at 12 10 42 PM

Screen Shot 2021-04-15 at 12 11 12 PM

Note I am waiting for access to the staging site so I can upload the illustrations and reference their img URLs in the pattern from there, so marking this as a draft for now.

@jffng jffng added this to the Quadrat v1 milestone Apr 15, 2021
@jffng jffng marked this pull request as ready for review April 15, 2021 18:37
@jffng
Copy link
Contributor Author

jffng commented Apr 15, 2021

With the media + text pattern, there is a little more space at the top than the bottom. I didn't want to add a spacer because it seemed heavy-handed, but maybe it needs it.

What do you think @beafialho ?

'title' => __( 'Alternating Grid of Latest Posts', 'quadrat-blocks' ),
'categories' => array( 'quadrat-blocks' ),
'content' => '<!-- wp:latest-posts {"displayPostContent":true,"columns":5,"className":"is-style-quadrat-alternating-grid"} /-->',
'title' => __( 'The Hosts', 'quadrat' ),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The pattern names could use some help.

Copy link
Collaborator

Choose a reason for hiding this comment

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

With the media + text pattern, there is a little more space at the top than the bottom. I didn't want to add a spacer because it seemed heavy-handed, but maybe it needs it.

What do you think @beafialho ?

I think it's fine leaving it as it is.

I added the patterns names on Figma:
Captura de ecrã 2021-04-16, às 15 21 10

@jffng jffng requested a review from a team April 15, 2021 18:39
'title' => __( 'Media & Text', 'quadrat' ),
'categories' => array( 'quadrat' ),
'content' => '<!-- wp:media-text {"mediaLink":"https://quadrat.mystagingwebsite.com/wp-content/uploads/2021/04/girls-illustration.png","mediaType":"image"} -->
<div class="wp-block-media-text alignwide is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="https://quadrat.mystagingwebsite.com/wp-content/uploads/2021/04/girls-illustration.png" alt=""/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph -->
Copy link
Contributor

Choose a reason for hiding this comment

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

We also need some alt text here I believe

@MaggieCabrera MaggieCabrera mentioned this pull request Apr 16, 2021
8 tasks
@MaggieCabrera MaggieCabrera linked an issue Apr 16, 2021 that may be closed by this pull request
8 tasks
@MaggieCabrera MaggieCabrera removed a link to an issue Apr 16, 2021
8 tasks
@MaggieCabrera
Copy link
Contributor

Partially addresses #3642

@jffng jffng merged commit 33f9c41 into make/quadrat Apr 16, 2021
@jffng jffng deleted the add/initial-quadrat-block-patterns branch April 16, 2021 15:37
@jffng
Copy link
Contributor Author

jffng commented Apr 16, 2021

scruffian pushed a commit that referenced this pull request Apr 23, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
scruffian pushed a commit that referenced this pull request Apr 23, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
scruffian pushed a commit that referenced this pull request Apr 26, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
jffng added a commit that referenced this pull request Apr 27, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
scruffian pushed a commit that referenced this pull request Apr 28, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
jffng added a commit that referenced this pull request May 4, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
pbking pushed a commit that referenced this pull request May 6, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
pbking pushed a commit that referenced this pull request May 6, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
scruffian pushed a commit that referenced this pull request May 6, 2021
* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.
jffng added a commit that referenced this pull request May 6, 2021
* Scaffolding a universal theme plus basic typography and color palette.

* fixed do_blocks routes and override index.html from BCB

* added header and footer templates

* changed query to post content block

* commented with the GB issue

* Quadrat: Add new heading sizes and other small misc changes (#3649)

* Quadrat: Add new heading sizes

* Quadrat: Further work on Lists and Quotes

* Quadrat: Remove whitespace

* Quadrat: Add responsive Heading font-sizes

* Fix typo.

* Recompile.

* remove older deploy actions and adding quadrat deploy action (#3655)

* Add the hosts block pattern. (#3662)

* Add the hosts block pattern.

* Fix categories.

* Update img refs.

* Add alt text to media text pattern.

* Revise block pattern names.

* Add text domain.

* Quadrat: override BCB's templates with php ones (#3667)

* override BCB's templates with php ones

* Revert unrelated changes to Seedlet Blocks that are not in trunk.

* Quadrat: Add responsive Paragraph styles and start styling the Code b… (#3663)

* Quadrat: Add responsive Paragraph styles and start styling the Code block

* Quadrat: Remove Code block styling

* Revise heading max vw.

Co-authored-by: Jeff Ong <[email protected]>

* Quadrat: Add Latest episodes block pattern (#3665)

* added Latest episodes block pattern

* translatable strings

* staging url for media

* rebased, updated texts and adjusted paddings

* added a group with padding to the blocks

* Body line-height to 1.7.

Co-authored-by: Jeff Ong <[email protected]>

* Add menu locations to quadrat

* Remove disconnected changes

* Remove footer menu location

* rebuild theme.json

* Quadrat: Add Quote block styles

* Tightened up the line-height and lessened the space between quote and citation.

* Remove properties that already exist in the parent theme

* Remove quote sass include and rebuild.

* Quadrat: Add list styles

* Removed variable usage for list item style

* Updated list styles to be more correcter

* Try/header template part wrapped (#3714)

* Modified site-title styles to match comps

* Added a navigation rendering function to render the navigation block based on a classic data source, wrap the output in an HTML block to be inserted anywhere blocks are do_block()'ed

* Added a header template part that leverages the rendered navigation block markup

* Replaced usage of navigation block template with new template-part

* Added styles for header for proper layout unachievable with blocks.

* Quadrat: Style the Code block

* Remove unneeded declarations

* Removed font-changing settings on code block

* Quadrat: add cover pattern (#3676)

* Try using svg for block pattern.

* Try mask-image instead.

* move the svg to a before pseudoelement

* refactored the pseudoelements

* fix for the editor interaction when cover block is highlighted

* Add block pattern.

* Use a transparent div instead of svg. Simplify how color of the diamond is set.

* Rotate closer to the design.

* Use background image with svg and mix-blend-mode.

* made block pattern wide aligned

* created exceptions bof black and white

* changes to fit the design, lowered opacity on black and white versions

* Add autoprefixing to Quadrat

* removed error from rebase

* removed unnecessary z-index, linting

* z-index added

* Scope CSS to cover block.

* :: for consistency.

Co-authored-by: Maggie Cabrera <[email protected]>
Co-authored-by: Ben Dwyer <[email protected]>

* removes template hack

* Quadrat: Add Episode block pattern (#3695)

* create episode pattern

* added group wrapper for padding

* correct url for image

* typo

* update to use media and text

* changed the url of the image, added alt content and em tag

* remove unneeded class, added wrapper for bottom padding

* Scope the 0 padding to text content without a background.

* Remove group, add spacer. Fix local image ref.

Co-authored-by: Ben Dwyer <[email protected]>
Co-authored-by: Jeff Ong <[email protected]>

* Change colors used in theme.json from descreptive to semantic (#3725)

* Change colors used in theme.json from descreptive to semantic

* semanticizing the color

* formatting

* also changed the child theme.json

* Quadrat: Add table styles (#3719)

* Quadrat: Add styles for tables

* Add tbody for extra specificity

* Add a border to the top of the first row

* Remove text-align.

Co-authored-by: Jeff Ong <[email protected]>

* Allowing overflow of group-wrapped navigation (#3732)

* Update screenshot.png (#3735)

* Quadrat: Add page templates (#3721)

* Rebase trunk.

* Revise footer.

* Add CSS for the next/prev links

* Continue rebase.

* remove test code

* used gutenberg_block_template_part to load template parts on php templates

* Remove testing text

* alignment tweaks

* Add separate templates for page and post.

* Restore header wrapper that was accidentally removed in rebase.

* Template tweaks.

* Add page block template.

Co-authored-by: Jeff Ong <[email protected]>
Co-authored-by: Maggie Cabrera <[email protected]>

* Make index query inherit query string.

* Update screenshot.png (#3742)

* Quadrat: Add CSS for a featured image

* Quadrat: Headlines and Buttons Block Pattern (#3744)

* created block pattern

* padding rules for mobile

* added new class to all the group blocks

* Remove all padding from text content on mobile.

Co-authored-by: Jeff Ong <[email protected]>

* Change hover rules for buttons

* Add hover styles for buttons and links

* Remove background color from buttons. (#3752)

* Quadrat: Add the listen pattern

* refactor patterns to single files

* move utility classes to BCB

* refactor listen to the podcast

* Quadrat: Add a join pattern

* Make the pattern wide

* Check the class exists before calling it

* Make sure the plugin is loaded before adding the pattern

* Move the block pattern CSS to a new file

Co-authored-by: Maggie Cabrera <[email protected]>
Co-authored-by: Daniel Dudzic <[email protected]>
Co-authored-by: Jason Crist <[email protected]>
Co-authored-by: Ben Dwyer <[email protected]>
Co-authored-by: Kjell Reigstad <[email protected]>
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