Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit b9148b4

Browse files
authored
Add new Product collections: featured collections pattern (#9388)
* Add new `Product collections: featured collections` pattern * Update image paths * Add buttons * Add colors to buttons * Change branded image
1 parent 00d7e64 commit b9148b4

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed
299 KB
Loading
435 KB
Loading
240 KB
Loading
165 KB
Loading
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?php
2+
/**
3+
* Title: Product Collections: Featured Collections
4+
* Slug: woocommerce-blocks/product-collections-featured-collections
5+
* Categories: WooCommerce
6+
*/
7+
?>
8+
9+
<!-- wp:columns {"align":"wide","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":{"top":"0","left":"0"}}}} -->
10+
<div class="wp-block-columns alignwide" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
11+
<!-- wp:column {"width":"50%","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}},"color":{"background":"#f3edd8"}},"layout":{"type":"constrained"}} -->
12+
<div class="wp-block-column has-background" style="background-color:#f3edd8;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px;flex-basis:50%">
13+
<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"color":{"text":"#000000"}},"fontSize":"x-large"} -->
14+
<h2 class="wp-block-heading has-text-color has-x-large-font-size" style="color:#000000;font-style:normal;font-weight:700">Tech gifts under $100</h2>
15+
<!-- /wp:heading -->
16+
17+
<!-- wp:buttons -->
18+
<div class="wp-block-buttons">
19+
<!-- wp:button {"style":{"spacing":{"padding":{"left":"18px","right":"18px","top":"9px","bottom":"9px"}},"typography":{"fontSize":"16px"},"color":{"background":"#000000","text":"#ffffff"}}} -->
20+
<div class="wp-block-button has-custom-font-size" style="font-size:16px">
21+
<a class="wp-block-button__link has-text-color has-background wp-element-button" style="color:#ffffff;background-color:#000000;padding-top:9px;padding-right:18px;padding-bottom:9px;padding-left:18px">Shop tech</a>
22+
</div>
23+
<!-- /wp:button -->
24+
</div>
25+
<!-- /wp:buttons -->
26+
27+
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
28+
<div class="wp-block-group">
29+
<!-- wp:image {"width":94,"height":108,"sizeSlug":"full","linkDestination":"none"} -->
30+
<figure class="wp-block-image size-full is-resized">
31+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-electronics-1.png', dirname( __FILE__ ) ) ); ?>" alt="" width="94" height="108" />
32+
</figure>
33+
<!-- /wp:image -->
34+
35+
<!-- wp:image {"width":80,"height":108,"sizeSlug":"full","linkDestination":"none"} -->
36+
<figure class="wp-block-image size-full is-resized">
37+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-apparel-7.png', dirname( __FILE__ ) ) ); ?>" alt="" width="80" height="108" />
38+
</figure>
39+
<!-- /wp:image -->
40+
</div>
41+
<!-- /wp:group -->
42+
</div>
43+
<!-- /wp:column -->
44+
45+
<!-- wp:column {"width":"50%","style":{"spacing":{"padding":{"top":"30px","right":"30px","bottom":"30px","left":"30px"}},"color":{"background":"#d8f2f3"}}} -->
46+
<div class="wp-block-column has-background" style="background-color:#d8f2f3;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px;flex-basis:50%">
47+
<!-- wp:heading {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"},"color":{"text":"#000000"}},"fontSize":"x-large"} -->
48+
<h2 class="wp-block-heading has-text-color has-x-large-font-size" style="color:#000000;font-style:normal;font-weight:700">For the gamers</h2>
49+
<!-- /wp:heading -->
50+
51+
<!-- wp:buttons -->
52+
<div class="wp-block-buttons">
53+
<!-- wp:button {"style":{"spacing":{"padding":{"left":"18px","right":"18px","top":"9px","bottom":"9px"}},"typography":{"fontSize":"16px"},"color":{"background":"#000000","text":"#ffffff"}}} -->
54+
<div class="wp-block-button has-custom-font-size" style="font-size:16px">
55+
<a class="wp-block-button__link has-text-color has-background wp-element-button" style="color:#ffffff;background-color:#000000;padding-top:9px;padding-right:18px;padding-bottom:9px;padding-left:18px">Shop games</a>
56+
</div>
57+
<!-- /wp:button -->
58+
</div>
59+
<!-- /wp:buttons -->
60+
61+
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"right"}} -->
62+
<div class="wp-block-group">
63+
<!-- wp:image {"width":100,"height":60,"sizeSlug":"full","linkDestination":"none"} -->
64+
<figure class="wp-block-image size-full is-resized">
65+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-electronics-3.png', dirname( __FILE__ ) ) ); ?>" alt="" width="100" height="60" />
66+
</figure>
67+
<!-- /wp:image -->
68+
69+
<!-- wp:image {"width":100,"height":100,"sizeSlug":"full","linkDestination":"none"} -->
70+
<figure class="wp-block-image size-full is-resized">
71+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-electronics-2.png', dirname( __FILE__ ) ) ); ?>" alt="" width="100" height="100" />
72+
</figure>
73+
<!-- /wp:image -->
74+
</div>
75+
<!-- /wp:group -->
76+
</div>
77+
<!-- /wp:column -->
78+
</div>
79+
<!-- /wp:columns -->

0 commit comments

Comments
 (0)