Skip to content

Commit

Permalink
Add "Two centered paragraphs with button" pattern
Browse files Browse the repository at this point in the history
Add "Two centered paragraphs with button" pattern from woocommerce#5
  • Loading branch information
beafialho committed Feb 13, 2025
1 parent cdf8b7b commit 23fe907
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions woostarter/patterns/about-two-centered-paragraphs-button.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* Title: Two centered paragraphs with button
* Slug: woostarter/two-centered-paragraphs-button
* Categories: text, about
* Keywords: about, text
* Description: Two centered paragraphs with a button.
*

?>
<!-- wp:group {"metadata":{"categories":["intro"],"name":"2 centered paragraphs with button","patternName":"a8c/intro-two-column-with-image-and-content"},"align":"full","className":"alignfull is-style-default","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained","justifyContent":"center"}} -->
<div class="wp-block-group alignfull is-style-default" style="margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0"><!-- wp:spacer {"height":"var:preset|spacing|80"} -->
<div style="height:var(--wp--preset--spacing--80)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:spacer {"height":"var:preset|spacing|70"} -->
<div style="height:var(--wp--preset--spacing--70)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"align":"center","style":{"elements":{"link":{"color":{"text":"var:preset|color|theme-3"}}}},"textColor":"theme-3"} -->
<p class="has-text-align-center has-theme-3-color has-text-color has-link-color">We’re not happy with the<br>way things are made.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center">We want to make things<br>in a sustainable way.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"var:preset|spacing|60"} -->
<div style="height:var(--wp--preset--spacing--60)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
<div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button">Find out more</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->

<!-- wp:spacer {"height":"var:preset|spacing|60"} -->
<div style="height:var(--wp--preset--spacing--60)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
<!-- /wp:group -->

0 comments on commit 23fe907

Please sign in to comment.