Skip to content

Commit

Permalink
Excerpts: fixing after review
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueiamarino committed Sep 3, 2024
1 parent 486b422 commit db28653
Show file tree
Hide file tree
Showing 21 changed files with 164 additions and 366 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions excerpts/parts/header-home.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"2rem","right":"0rem","bottom":"2rem","left":"0rem"},"blockGap":"0px","margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0rem;margin-bottom:0rem;padding-top:2rem;padding-right:0rem;padding-bottom:2rem;padding-left:0rem"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"0px","top":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"flex","justifyContent":"space-between","verticalAlignment":"top"}} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60)"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"0px","top":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"flex","justifyContent":"space-between","verticalAlignment":"top"}} -->
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:group {"style":{"spacing":{"blockGap":"1rem"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":40,"shouldSyncIcon":false,"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}},"color":{"duotone":["#fafafa","#fafafa"]}}} /-->

<!-- wp:navigation {"textColor":"background","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"stretch","orientation":"vertical"}} /--></div>
<!-- /wp:group -->

<!-- wp:navigation {"textColor":"background","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"vertical"},"style":{"typography":{"lineHeight":1.4}},"fontSize":"small"} /--></div>
<!-- wp:navigation {"textColor":"background","overlayMenu":"never","style":{"typography":{"lineHeight":1.3999999999999999}},"fontSize":"small","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"vertical"}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
10 changes: 5 additions & 5 deletions excerpts/parts/header.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"2rem","right":"0rem","bottom":"2rem","left":"0rem"},"blockGap":"0px","margin":{"top":"0rem","bottom":"0rem"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0rem;margin-bottom:0rem;padding-top:2rem;padding-right:0rem;padding-bottom:2rem;padding-left:0rem"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"0px","top":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"flex","justifyContent":"space-between","verticalAlignment":"top"}} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"bottom":"0px","top":"0px","right":"0px","left":"0px"},"margin":{"top":"0px","bottom":"0px"},"blockGap":"0px"}},"layout":{"type":"flex","justifyContent":"space-between","verticalAlignment":"top"}} -->
<div class="wp-block-group alignfull" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:group {"style":{"spacing":{"blockGap":"1rem"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
<div class="wp-block-group"><!-- wp:site-logo {"width":48,"shouldSyncIcon":false,"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}},"color":[]}} /-->
<div class="wp-block-group"><!-- wp:site-logo {"width":40,"shouldSyncIcon":false,"style":{"spacing":{"padding":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"},"margin":{"top":"0rem","right":"0rem","bottom":"0rem","left":"0rem"}},"color":{"duotone":["#fafafa","#fafafa"]}}} /-->

<!-- wp:navigation {"textColor":"background","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"stretch","orientation":"vertical"},"style":{"typography":{"fontStyle":"normal","fontWeight":"500","lineHeight":"1","fontSize":"1.8rem"},"spacing":{"blockGap":"0.2rem"}}} /--></div>
<!-- wp:navigation {"textColor":"primary","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"stretch","orientation":"vertical"}} /--></div>
<!-- /wp:group -->

<!-- wp:navigation {"textColor":"background","overlayMenu":"never","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"vertical"},"style":{"typography":{"fontStyle":"normal","fontWeight":"500","lineHeight":"1","fontSize":"1.2rem"},"spacing":{"blockGap":"0.5rem"}}} /--></div>
<!-- wp:navigation {"textColor":"primary","overlayMenu":"never","style":{"typography":{"lineHeight":1.3999999999999999}},"fontSize":"small","layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"vertical"}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
48 changes: 1 addition & 47 deletions excerpts/parts/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,47 +1 @@
<!-- wp:group {"align":"full","style":{"spacing":{"blockGap":"5vh"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group alignfull"><!-- wp:group {"align":"full","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"space-between","justifyContent":"stretch"}} -->
<div class="wp-block-group alignfull"><!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Related Articles</h3>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"right","fontSize":"medium"} -->
<p class="has-text-align-right has-medium-font-size"><a href="/posts/">All articles</a></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group -->

<!-- wp:query {"queryId":21,"query":{"perPage":"4","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null},"align":"full","layout":{"type":"default"}} -->
<div class="wp-block-query alignfull"><!-- wp:post-template {"style":{"spacing":{"blockGap":"2.5vh"}},"layout":{"type":"default","columnCount":3}} -->
<!-- wp:post-title /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.5rem"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:post-terms {"term":"category"} /-->

<!-- wp:paragraph {"fontSize":"medium"} -->
<p class="has-medium-font-size">·</p>
<!-- /wp:paragraph -->

<!-- wp:post-date /--></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch","flexWrap":"wrap"}} -->
<div class="wp-block-group"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Get updates</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Spam-free subscription, we guarantee. This is just a friendly ping when new content is out.</p>
<!-- /wp:paragraph -->

<!-- wp:jetpack/contact-form {"subject":"[Texty] Posts","to":"[email protected]","className":"is-style-animated","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
<div class="wp-block-jetpack-contact-form is-style-animated" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px"><!-- wp:jetpack/field-name {"required":true,"requiredText":"(required)","borderRadius":4,"borderWidth":1,"labelFontSize":"1rem","fieldFontSize":"1rem","lineHeight":1,"labelLineHeight":1,"inputColor":"#111111","labelColor":"#111111","borderColor":"#111111"} /-->

<!-- wp:jetpack/field-email {"required":true,"requiredText":"(required)","borderRadius":4,"borderWidth":1,"labelFontSize":"1rem","fieldFontSize":"1rem","lineHeight":1,"labelLineHeight":1,"inputColor":"#111111","labelColor":"#111111","borderColor":"#111111"} /-->

<!-- wp:jetpack/button {"element":"button","text":"Subscribe","textColor":"background","backgroundColor":"primary","borderRadius":4,"width":"100%","lock":{"remove":true},"fontSize":"small"} /--></div>
<!-- /wp:jetpack/contact-form --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:pattern {"slug":"excerpts/sidebar"} /-->
12 changes: 6 additions & 6 deletions excerpts/patterns/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
?>
<!-- wp:template-part {"slug":"header","area":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"5vh","right":"1.5rem","bottom":"5vh","left":"1.5rem"},"margin":{"top":"0rem","bottom":"0rem"},"blockGap":"5vh"}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0rem;margin-bottom:0rem;padding-top:5vh;padding-right:1.5rem;padding-bottom:5vh;padding-left:1.5rem"><!-- wp:columns {"verticalAlignment":"top","align":"full","style":{"spacing":{"blockGap":{"top":"0rem"}}}} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|60","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"><!-- wp:columns {"verticalAlignment":"top","align":"full","style":{"spacing":{"blockGap":{"top":"0rem"}}}} -->
<div class="wp-block-columns alignfull are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"50%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:50%"><!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0%","bottom":"0px","left":"0px"},"margin":{"top":"0px","bottom":"4rem"},"blockGap":"2rem"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:4rem;padding-top:0px;padding-right:0%;padding-bottom:0px;padding-left:0px"><!-- wp:heading {"textAlign":"left","level":1,"align":"full"} -->
<h1 class="wp-block-heading alignfull has-text-align-left" id="oops-that-page-can-t-be-found"><?php echo __('Oops! Sorry.<br>No page in here...', 'excerpts');?></h1>
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:50%"><!-- wp:group {"layout":{"type":"flex","orientation":"vertical","justifyContent":"stretch"}} -->
<div class="wp-block-group"><!-- wp:heading {"textAlign":"left","level":1,"align":"full"} -->
<h1 class="wp-block-heading alignfull has-text-align-left" id="oops-that-page-can-t-be-found"><?php esc_html_e('Oops! Sorry. There\'s no page in here...', 'excerpts');?></h1>
<!-- /wp:heading -->

<!-- wp:paragraph {"align":"left"} -->
<p class="has-text-align-left"><?php echo __('It looks like nothing was found at this location. Maybe try a search?', 'excerpts');?></p>
<p class="has-text-align-left"><?php esc_html_e('It looks like nothing was found at this location. Maybe try a search?', 'excerpts');?></p>
<!-- /wp:paragraph -->

<!-- wp:group {"style":{"spacing":{"margin":{"bottom":"5vh"}}},"layout":{"type":"default"}} -->
Expand Down
12 changes: 6 additions & 6 deletions excerpts/patterns/archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
?>
<!-- wp:template-part {"slug":"header","area":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"5vh","right":"1.5rem","bottom":"5vh","left":"1.5rem"},"margin":{"top":"0rem","bottom":"0rem"},"blockGap":"5vh"}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="margin-top:0rem;margin-bottom:0rem;padding-top:5vh;padding-right:1.5rem;padding-bottom:5vh;padding-left:1.5rem"><!-- wp:columns {"verticalAlignment":"top","align":"full","style":{"spacing":{"blockGap":{"top":"0rem"}}}} -->
<div class="wp-block-columns alignfull are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
<!-- wp:group {"style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|60","bottom":"var:preset|spacing|60"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--50)"><!-- wp:columns {"verticalAlignment":"top","align":"wide","style":{"spacing":{"blockGap":{"top":"0rem"}}}} -->
<div class="wp-block-columns alignwide are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"70%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:70%"><!-- wp:query-title {"type":"archive","showPrefix":false} /-->

<!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","align":"wide","layout":{"type":"default"}} -->
Expand All @@ -23,13 +23,13 @@
<div class="wp-block-group alignfull" style="margin-top:2vh"><!-- wp:post-date {"format":"M j","fontSize":"large"} /-->

<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size"><?php echo __('·', 'excerpts');?></p>
<p class="has-large-font-size"><?php esc_html_e('·', 'excerpts');?></p>
<!-- /wp:paragraph -->

<!-- wp:post-terms {"term":"category","fontSize":"large"} /-->

<!-- wp:paragraph {"fontSize":"large"} -->
<p class="has-large-font-size"><?php echo __('·', 'excerpts');?></p>
<p class="has-large-font-size"><?php esc_html_e('·', 'excerpts');?></p>
<!-- /wp:paragraph -->

<!-- wp:post-time-to-read {"fontSize":"large"} /--></div>
Expand All @@ -53,7 +53,7 @@
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"top","width":"25%","style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:25%"><!-- wp:template-part {"slug":"about"} /--></div>
<div class="wp-block-column is-vertically-aligned-top" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;flex-basis:25%"><!-- wp:template-part {"slug":"sidebar","area":"uncategorized"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- /wp:group -->
Expand Down
Loading

0 comments on commit db28653

Please sign in to comment.