Skip to content

Commit

Permalink
Changes from WordPress Playground
Browse files Browse the repository at this point in the history
  • Loading branch information
beafialho committed May 20, 2024
1 parent 25ae970 commit 2086a0a
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 201 deletions.
12 changes: 5 additions & 7 deletions covr/parts/header.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","bottom":"0px","right":"20px","left":"20px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:0px;padding-right:20px;padding-bottom:0px;padding-left:20px"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"20px","top":"20px","right":"0px","left":"0px"},"blockGap":"10px"}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} -->
<div class="wp-block-group alignwide" style="padding-top:20px;padding-right:0px;padding-bottom:20px;padding-left:0px"><!-- wp:group {"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:group {"style":{"spacing":{"blockGap":"20px"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"center"}} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","bottom":"0px","right":"4vw","left":"4vw"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:0px;padding-right:4vw;padding-bottom:0px;padding-left:4vw"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"20px","top":"20px","right":"0px","left":"0px"},"blockGap":"10px"}},"layout":{"type":"flex","justifyContent":"space-between","flexWrap":"nowrap"}} -->
<div class="wp-block-group alignwide" style="padding-top:20px;padding-right:0px;padding-bottom:20px;padding-left:0px"><!-- wp:group {"style":{"spacing":{"blockGap":"2em"}},"layout":{"type":"flex"}} -->
<div class="wp-block-group"><!-- wp:site-title /-->

<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"}} /--></div>
<!-- /wp:group --></div>
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"left","orientation":"horizontal"},"style":{"spacing":{"blockGap":"1.4em"}}} /--></div>
<!-- /wp:group -->

<!-- wp:search {"showLabel":false,"placeholder":"Search by painting","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"radius":"100px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}}} /--></div>
<!-- wp:search {"showLabel":false,"placeholder":"Search by painting","buttonPosition":"button-inside","buttonUseIcon":true,"style":{"border":{"radius":"100px","top":{"style":"none","width":"0px"},"right":{"style":"none","width":"0px"},"bottom":{"style":"none","width":"0px"},"left":{"style":"none","width":"0px"}}},"fontSize":"small","fontFamily":"manrope"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
49 changes: 49 additions & 0 deletions covr/patterns/archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php
/**
* Title: archive
* Slug: covr/archive
* Categories: hidden
* Inserter: no
*/
?>
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"4vw","left":"4vw","top":"5vh","bottom":"0vh"},"blockGap":"1em"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:5vh;padding-right:4vw;padding-bottom:0vh;padding-left:4vw"><!-- wp:query-title {"type":"archive","align":"wide","fontSize":"large"} /-->

<!-- wp:term-description {"align":"wide"} /--></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"4vw","left":"4vw","top":"60px"},"blockGap":"20px"},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-background-color has-background" style="min-height:100vh;padding-top:60px;padding-right:4vw;padding-left:4vw"><!-- wp:query {"queryId":14,"query":{"perPage":20,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide"} -->
<div class="wp-block-query alignwide"><!-- wp:post-template {"style":{"spacing":{"blockGap":"2em"}},"layout":{"type":"grid","columnCount":3}} -->
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"4/3","align":"wide"} /-->

<!-- wp:group {"style":{"spacing":{"blockGap":"0.6em"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"},":hover":{"color":{"text":"var:preset|color|foreground"}}}}},"textColor":"primary"} /-->

<!-- wp:post-terms {"term":"category"} /--></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- /wp:post-template -->

<!-- wp:paragraph -->
<p><?php echo __('', 'covr');?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:query -->

<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"40px","bottom":"40px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="padding-top:40px;padding-bottom:40px"><!-- wp:query-pagination {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
22 changes: 22 additions & 0 deletions covr/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ Covr is a beautifully crafted theme that boasts a clean and modern design, speci

== Changelog ==

= 1.0.5 =
* Lossless image optimization (#7671)

= 1.0.5 =
* Optimize images (#7671)

= 1.0.4 =
* Updates from theme export (#7560)

= 1.0.3 =
* Multiple Block Themes: Fix Cursor When Hovering Links (#7479)

Expand Down Expand Up @@ -39,3 +48,16 @@ This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

This theme bundles the following third-party resources:

Manrope Font
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is available with an FAQ at http://scripts.sil.org/OFL
License URL: http://scripts.sil.org/OFL
-- End of Manrope Font credits --

Image for theme screenshot, Credit Jan Brueghel The Elder, Flowers in a Wan-Li Vase (c. 1610 - 1615)
License: Public Domain
License URL: https://creativecommons.org/public-domain/pdm/
Source: https://artvee.com/dl/flowers-in-a-wan-li-vase-2#00
Binary file modified covr/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions covr/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Description: Covr is a simple and straightforward theme designed for a sleek pre
Requires at least: 5.8
Tested up to: 6.2
Requires PHP: 5.7
Version: 1.0.3
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: covr
Tags: blog, photography, portfolio, grid-layout, one-column, two-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, full-site-editing, rtl-language-support, template-editing, theme-options, threaded-comments, translation-ready, fullwidth, photography, art
Tags: blog, photography, portfolio, grid-layout, one-column, two-columns, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, full-site-editing, rtl-language-support, template-editing, theme-options, threaded-comments, translation-ready
*/

/*
Expand Down
1 change: 1 addition & 0 deletions covr/templates/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:pattern {"slug":"covr/archive"} /-->
30 changes: 24 additions & 6 deletions covr/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"20px","left":"20px","top":"80px"},"blockGap":"20px"},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-background-color has-background" style="min-height:100vh;padding-top:80px;padding-right:20px;padding-left:20px"><!-- wp:query {"queryId":14,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"displayLayout":{"type":"flex","columns":3},"align":"wide"} -->
<div class="wp-block-query alignwide"><!-- wp:post-template -->
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"auto","align":"wide"} /-->
<!-- wp:group {"style":{"spacing":{"padding":{"right":"4vw","left":"4vw","top":"60px"},"blockGap":"20px"},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-background-color has-background" style="min-height:100vh;padding-top:60px;padding-right:4vw;padding-left:4vw"><!-- wp:query {"queryId":14,"query":{"perPage":20,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"align":"wide"} -->
<div class="wp-block-query alignwide"><!-- wp:post-template {"style":{"spacing":{"blockGap":"2em"}},"layout":{"type":"grid","columnCount":3}} -->
<!-- wp:post-featured-image {"isLink":true,"aspectRatio":"4/3","align":"wide"} /-->

<!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"},":hover":{"color":{"text":"var:preset|color|foreground"}}}}},"textColor":"primary"} /-->
<!-- /wp:post-template --></div>
<!-- wp:group {"style":{"spacing":{"blockGap":"0.6em"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"},":hover":{"color":{"text":"var:preset|color|foreground"}}}}},"textColor":"primary"} /-->

<!-- wp:post-terms {"term":"category"} /--></div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- /wp:post-template -->

<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"40px","bottom":"40px"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="padding-top:40px;padding-bottom:40px"><!-- wp:query-pagination {"align":"wide","layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->

Expand Down
15 changes: 15 additions & 0 deletions covr/templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"align":"full","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"4vh","padding":{"top":"6vh","bottom":"3vh"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="padding-top:6vh;padding-bottom:3vh"><!-- wp:post-featured-image /-->

<!-- wp:post-title {"fontSize":"x-large"} /--></div>
<!-- /wp:group -->

<!-- wp:group {"lock":{"move":false,"remove":true},"align":"full","style":{"spacing":{"padding":{"right":"4vw","left":"4vw"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-right:4vw;padding-left:4vw"><!-- wp:post-content {"align":"full","layout":{"type":"constrained"}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
24 changes: 12 additions & 12 deletions covr/templates/search.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"80px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:80px"><!-- wp:query {"queryId":22,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","layout":{"type":"constrained"}} -->
<main class="wp-block-query"><!-- wp:post-template {"align":"wide"} -->
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":{"top":"20px","left":"20px"},"padding":{"top":"20px","right":"20px","bottom":"20px","left":"20px"}},"border":{"radius":"20px"}},"backgroundColor":"tertiary"} -->
<div class="wp-block-columns are-vertically-aligned-center has-tertiary-background-color has-background" style="border-radius:20px;padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px"><!-- wp:column {"verticalAlignment":"center","width":"10%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:10%"><!-- wp:post-featured-image {"aspectRatio":"1","height":""} /--></div>
<!-- /wp:column -->
<!-- wp:group {"style":{"spacing":{"padding":{"right":"4vw","left":"4vw","top":"5vh","bottom":"0vh"},"blockGap":"1em"}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group" style="padding-top:5vh;padding-right:4vw;padding-bottom:0vh;padding-left:4vw"><!-- wp:query-title {"type":"search","align":"wide"} /--></div>
<!-- /wp:group -->

<!-- wp:column {"verticalAlignment":"center","width":"90%"} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"80px","right":"4vw","left":"4vw"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:80px;padding-right:4vw;padding-left:4vw"><!-- wp:query {"queryId":22,"query":{"perPage":20,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"tagName":"main","layout":{"type":"constrained"}} -->
<main class="wp-block-query"><!-- wp:post-template {"align":"wide","style":{"spacing":{"blockGap":"0em"}}} -->
<!-- wp:columns {"verticalAlignment":"center","style":{"spacing":{"blockGap":{"top":"30px","left":"30px"},"padding":{"top":"20px","right":"20px","bottom":"20px","left":"20px"}},"border":{"radius":"20px"}},"backgroundColor":"tertiary"} -->
<div class="wp-block-columns are-vertically-aligned-center has-tertiary-background-color has-background" style="border-radius:20px;padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px"><!-- wp:column {"verticalAlignment":"center","width":"90%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:90%"><!-- wp:group {"style":{"spacing":{"blockGap":"20px"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group"><!-- wp:post-title {"isLink":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|primary"}}}},"textColor":"primary","fontSize":"small"} /-->

<!-- wp:post-terms {"term":"category"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:column -->

<!-- wp:column {"verticalAlignment":"center","width":"7%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:7%"><!-- wp:post-featured-image {"aspectRatio":"1","height":"80px"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:spacer {"height":"10px"} -->
<div style="height:10px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- /wp:post-template -->

<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"40px","bottom":"40px"}}},"layout":{"type":"constrained"}} -->
Expand Down
18 changes: 3 additions & 15 deletions covr/templates/single.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"spacing":{"padding":{"right":"20px","left":"20px","top":"80px"},"blockGap":"20px"},"dimensions":{"minHeight":"100vh"}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-background-color has-background" style="min-height:100vh;padding-top:80px;padding-right:20px;padding-left:20px"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"40px","left":"40px"}}}} -->
<!-- wp:group {"style":{"spacing":{"padding":{"top":"80px"},"blockGap":"20px"},"dimensions":{"minHeight":"0vh"}},"backgroundColor":"background","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-background-background-color has-background" style="min-height:0vh;padding-top:80px"><!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"40px","left":"40px"}}}} -->
<div class="wp-block-columns alignwide"><!-- wp:column -->
<div class="wp-block-column"><!-- wp:post-featured-image {"align":"wide"} /--></div>
<!-- /wp:column -->
Expand All @@ -13,15 +13,7 @@

<!-- wp:template-part {"slug":"post-meta","align":"wide"} /-->

<!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"66.66%"} -->
<div class="wp-block-column" style="flex-basis:66.66%"><!-- wp:post-excerpt /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"33.33%"} -->
<div class="wp-block-column" style="flex-basis:33.33%"></div>
<!-- /wp:column --></div>
<!-- /wp:columns --></div>
<!-- wp:post-content /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

Expand All @@ -34,8 +26,4 @@
<!-- /wp:columns --></div>
<!-- /wp:group -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
Loading

0 comments on commit 2086a0a

Please sign in to comment.