Skip to content

Commit

Permalink
Create Archive Template
Browse files Browse the repository at this point in the history
Initial pass on the archive template block structure.

There are some inline styles that need to be cleaned up, and there more fine adjustments that need to be made in the border setup.
  • Loading branch information
liviopv committed May 17, 2024
1 parent f84868b commit dbe0008
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions archivist/templates/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"style":{"color":{"background":"#edece8"},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"},"blockGap":"0px","margin":{"top":"0px","bottom":"0px"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group has-background" style="background-color:#edece8;margin-top:0px;margin-bottom:0px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)"><!-- wp:group {"style":{"spacing":{"blockGap":"0px"},"border":{"radius":"12px","color":"#131b1e"}},"layout":{"type":"default"}} -->
<div class="wp-block-group has-border-color" style="border-color:#131b1e;border-radius:12px"><!-- wp:group {"style":{"border":{"radius":{"topLeft":"12px","topRight":"12px"}},"color":{"background":"#131b1e"}},"layout":{"type":"default"}} -->
<div class="wp-block-group has-background" style="border-top-left-radius:12px;border-top-right-radius:12px;background-color:#131b1e"><!-- wp:group {"style":{"color":{"background":"#edece8"},"spacing":{"padding":{"right":"var:preset|spacing|60","left":"var:preset|spacing|60","top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"},"margin":{"top":"0"}},"border":{"radius":"12px"}},"layout":{"type":"default"}} -->
<div class="wp-block-group has-background" style="border-radius:12px;background-color:#edece8;margin-top:0;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--60)"><!-- wp:query-title {"type":"archive","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"right":"0","left":"0"}}}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"style":{"border":{"radius":"12px","width":"0px","style":"none"}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="border-style:none;border-width:0px;border-radius:12px"><!-- wp:query {"queryId":2,"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":"default"}} -->
<main class="wp-block-query"><!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"0","bottom":"0","left":"0","right":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"grid","columnCount":4}} -->
<!-- wp:group {"backgroundColor":"black","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-black-background-color has-background"><!-- wp:group {"style":{"border":{"radius":"12px","top":{"width":"2px"},"right":{"radius":"12px","width":"1px"},"bottom":{"width":"1px"},"left":{"radius":"12px","width":"1px"}},"color":{"background":"#edece8"},"dimensions":{"minHeight":"412px"}},"layout":{"type":"flex","orientation":"vertical","verticalAlignment":"bottom"}} -->
<div class="wp-block-group has-background" style="border-radius:12px;border-top-width:2px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;background-color:#edece8;min-height:412px"><!-- wp:post-date {"isLink":true,"style":{"typography":{"textTransform":"uppercase"}}} /-->

<!-- wp:post-title {"isLink":true} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:group --></main>
<!-- /wp:query --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->

<!-- wp:group {"layout":{"inherit":true,"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->

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

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

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

0 comments on commit dbe0008

Please sign in to comment.