Skip to content

Commit e4969f3

Browse files
Add a callout on the guides page.
1 parent d4068e6 commit e4969f3

File tree

4 files changed

+40
-22
lines changed

4 files changed

+40
-22
lines changed

source/wp-content/themes/wporg-main-2022/patterns/data-liberation-guides.php

+33-18
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@
77

88
?>
99

10-
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|80"}}},"layout":{"type":"default"}} -->
10+
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"layout":{"type":"constrained"}} -->
11+
<div class="wp-block-group alignwide" style="padding-right:var(--wp--preset--spacing--edge-space);padding-left:var(--wp--preset--spacing--edge-space)"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|60","bottom":"var:preset|spacing|80"}}},"layout":{"type":"default"}} -->
1112
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--80)"><!-- wp:heading {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|30","top":"0"}}}} -->
1213
<h2 class="wp-block-heading" style="margin-top:0;margin-bottom:var(--wp--preset--spacing--30)">Guides</h2>
1314
<!-- /wp:heading -->
1415

15-
<!-- wp:group {"align":"wide","className":"wporg-events__filters","style":{"spacing":{"margin":{"top":"40px","bottom":"40px"}}},"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
16-
<div class="wp-block-group alignwide wporg-events__filters" style="margin-top:40px;margin-bottom:40px">
17-
<!-- wp:group {"className":"wporg-events__filters__search","layout":{"type":"flex","flexWrap":"wrap"}} -->
18-
<div class="wp-block-group wporg-events__filters__search">
19-
<!-- wp:search {"showLabel":false,"placeholder":"Search guides...","width":100,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true,"className":"is-style-secondary-search-control"} /-->
16+
<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"40px","bottom":"40px"}}},"className":"wporg-events__filters","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
17+
<div class="wp-block-group alignwide wporg-events__filters" style="margin-top:40px;margin-bottom:40px"><!-- wp:group {"className":"wporg-events__filters__search","layout":{"type":"flex","flexWrap":"wrap"}} -->
18+
<div class="wp-block-group wporg-events__filters__search"><!-- wp:search {"showLabel":false,"placeholder":"Search guides...","width":100,"widthUnit":"%","buttonText":"Search","buttonPosition":"button-inside","buttonUseIcon":true,"className":"is-style-secondary-search-control"} /-->
2019

21-
<!-- wp:query {"queryId":0,"query":{"perPage":500,"pages":0,"offset":0,"postType":"and-handbook","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[]}} -->
22-
<!-- wp:wporg/query-total /-->
23-
<!-- /wp:query -->
24-
</div> <!-- /wp:group -->
20+
<!-- wp:query {"queryId":0,"query":{"perPage":500,"pages":0,"offset":0,"postType":"and-handbook","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[]}} -->
21+
<div class="wp-block-query"><!-- wp:wporg/query-total /--></div>
22+
<!-- /wp:query --></div>
23+
<!-- /wp:group -->
24+
25+
<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"className":"wporg-query-filters","layout":{"type":"flex","flexWrap":"nowrap"}} -->
26+
<div class="wp-block-group wporg-query-filters"><!-- wp:wporg/query-filter {"key":"format_type","multiple":false} /-->
2527

26-
<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"className":"wporg-query-filters","layout":{"type":"flex","flexWrap":"nowrap"}} -->
27-
<div class="wp-block-group wporg-query-filters">
28-
<!-- wp:wporg/query-filter {"key":"format_type","multiple":false} /-->
29-
<!-- wp:wporg/query-filter {"key":"event_type","multiple":true} /-->
30-
<!-- wp:wporg/query-filter {"key":"month","multiple":true} /-->
31-
<!-- wp:wporg/query-filter {"key":"country","multiple":true} /-->
32-
</div> <!-- /wp:group -->
28+
<!-- wp:wporg/query-filter {"key":"event_type"} /-->
3329

34-
</div> <!-- /wp:group -->
30+
<!-- wp:wporg/query-filter {"key":"month"} /-->
31+
32+
<!-- wp:wporg/query-filter {"key":"country"} /--></div>
33+
<!-- /wp:group --></div>
34+
<!-- /wp:group -->
3535

3636
<!-- wp:group {"style":{"border":{"bottom":{"color":"var:preset|color|light-grey-1","width":"1px"},"top":[],"right":[],"left":[]}},"layout":{"type":"default"}} -->
3737
<div class="wp-block-group" style="border-bottom-color:var(--wp--preset--color--light-grey-1);border-bottom-width:1px"><!-- wp:query {"queryId":2,"query":{"perPage":10,"pages":0,"offset":0,"postType":"and-handbook","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false},"layout":{"type":"default"}} -->
@@ -52,4 +52,19 @@
5252
<!-- /wp:query-pagination --></div>
5353
<!-- /wp:query --></div>
5454
<!-- /wp:group --></div>
55+
<!-- /wp:group --></div>
56+
<!-- /wp:group -->
57+
58+
<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"5rem","right":"var:preset|spacing|edge-space","bottom":"5rem","left":"var:preset|spacing|edge-space"}}},"backgroundColor":"blueberry-1","textColor":"white","layout":{"inherit":true,"type":"constrained"}} -->
59+
<div class="wp-block-group alignfull has-white-color has-blueberry-1-background-color has-text-color has-background has-link-color" id="get-started" style="padding-top:5rem;padding-right:var(--wp--preset--spacing--edge-space);padding-bottom:5rem;padding-left:var(--wp--preset--spacing--edge-space)"><!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap"}} -->
60+
<div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"layout":{"selfStretch":"fixed","flexSize":"65%"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"textColor":"white","fontSize":"heading-4","fontFamily":"eb-garamond"} -->
61+
<p class="has-white-color has-text-color has-link-color has-eb-garamond-font-family has-heading-4-font-size">Have a workflow, tool, or time to contribute? We'd love help to make the web more open.</p>
62+
<!-- /wp:paragraph -->
63+
64+
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"layout":{"selfStretch":"fill","flexSize":null}}} -->
65+
<div class="wp-block-buttons"><!-- wp:button {"className":"has-custom-width is-style-outline-on-dark"} -->
66+
<div class="wp-block-button has-custom-width is-style-outline-on-dark"><a class="wp-block-button__link wp-element-button" href="https://github.com/WordPress/move-to-wp/tree/trunk#how-to-contribute">Get Started</a></div>
67+
<!-- /wp:button --></div>
68+
<!-- /wp:buttons --></div>
69+
<!-- /wp:group --></div>
5570
<!-- /wp:group -->

source/wp-content/themes/wporg-main-2022/patterns/data-liberation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"5rem","right":"var:preset|spacing|edge-space","bottom":"5rem","left":"var:preset|spacing|edge-space"}}},"backgroundColor":"blueberry-1","textColor":"white","layout":{"inherit":true,"type":"constrained"}} -->
8989
<div class="wp-block-group alignfull has-white-color has-blueberry-1-background-color has-text-color has-background has-link-color" id="get-started" style="padding-top:5rem;padding-right:var(--wp--preset--spacing--edge-space);padding-bottom:5rem;padding-left:var(--wp--preset--spacing--edge-space)"><!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap"}} -->
9090
<div class="wp-block-group alignwide"><!-- wp:paragraph {"style":{"layout":{"selfStretch":"fixed","flexSize":"65%"},"elements":{"link":{"color":{"text":"var:preset|color|white"}}}},"textColor":"white","fontSize":"heading-4","fontFamily":"eb-garamond"} -->
91-
<p class="has-white-color has-text-color has-link-color has-eb-garamond-font-family has-heading-4-font-size">Have a workflow, tool, or time to contribute? We\'d love help to make the web more open.</p>
91+
<p class="has-white-color has-text-color has-link-color has-eb-garamond-font-family has-heading-4-font-size">Have a workflow, tool, or time to contribute? We'd love help to make the web more open.</p>
9292
<!-- /wp:paragraph -->
9393

9494
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"layout":{"selfStretch":"fill","flexSize":null}}} -->

source/wp-content/themes/wporg-main-2022/templates/archive-and-handbook.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
<!-- wp:pattern {"slug":"wporg-main-2022/nav-data-liberation"} /-->
44

5-
<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0px","padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"className":"entry-content","layout":{"inherit":true,"type":"constrained"}} -->
6-
<main class="wp-block-group entry-content" style="padding-right:var(--wp--preset--spacing--edge-space);padding-left:var(--wp--preset--spacing--edge-space)">
5+
6+
<!-- wp:group {"tagName":"main","style":{"spacing":{"blockGap":"0px"}},"className":"entry-content","layout":{"inherit":true,"type":"constrained"}} -->
7+
<main class="wp-block-group entry-content"><!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"right":"var:preset|spacing|edge-space","left":"var:preset|spacing|edge-space"}}},"layout":{"type":"constrained"}} -->
78
<!-- wp:pattern {"slug":"wporg-main-2022/data-liberation-guides"} /-->
89
</main>
910
<!-- /wp:group -->
1011

1112
<!-- wp:wporg/global-footer /-->
13+
14+

source/wp-content/themes/wporg-main-2022/templates/single-and-handbook.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- wp:wporg/global-header {"style":{"border":{"bottom":{"color":"var:preset|color|white-opacity-15","style":"solid","width":"1px"}}}} /-->
1+
<!-- wp:wporg/global-header {"style":{"border":{"bottom":{"color":"var:preset|color|white-opacity-15","style":"solid","width":"1px"}}}} /-->
22

33
<!-- wp:pattern {"slug":"wporg-main-2022/nav-data-liberation-single"} /-->
44

0 commit comments

Comments
 (0)