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

Commit faf6391

Browse files
authored
Add product details pattern (#9408)
* Add product details pattern * Replace stars image
1 parent 62697ad commit faf6391

4 files changed

Lines changed: 139 additions & 0 deletions

File tree

122 KB
Loading
105 KB
Loading
259 KB
Loading
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<?php
2+
/**
3+
* Title: Product Details Pattern
4+
* Slug: woocommerce-blocks/product-details-pattern
5+
* Categories: WooCommerce
6+
*/
7+
?>
8+
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0","left":"0"}}}} -->
9+
<div class="wp-block-columns alignwide">
10+
<!-- wp:column {"style":{"spacing":{"padding":{"top":"0","right":"50px","bottom":"0","left":"0px"},"blockGap":"0px"}}} -->
11+
<div class="wp-block-column" style="padding-top:0;padding-right:50px;padding-bottom:0;padding-left:0px">
12+
<!-- wp:image {"id":1,"width":500,"height":723,"sizeSlug":"full","linkDestination":"none"} -->
13+
<figure class="wp-block-image size-full is-resized">
14+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-furniture-3.png', dirname( __FILE__ ) ) ); ?>" alt="" class="wp-image-1" width="500" height="723"/>
15+
</figure>
16+
<!-- /wp:image -->
17+
18+
<!-- wp:columns {"style":{"spacing":{"blockGap":{"top":"0","left":"0"},"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"margin":{"top":"0.2em","bottom":"0.2em"}}}} -->
19+
<div class="wp-block-columns" style="margin-top:0.2em;margin-bottom:0.2em;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0">
20+
<!-- wp:column {"width":"243px","style":{"spacing":{"padding":{"top":"0px","right":"5px","bottom":"0px","left":"0px"},"blockGap":"0"}},"layout":{"type":"default"}} -->
21+
<div class="wp-block-column" style="padding-top:0px;padding-right:5px;padding-bottom:0px;padding-left:0px;flex-basis:243px">
22+
<!-- wp:image {"id":1,"sizeSlug":"full","linkDestination":"none"} -->
23+
<figure class="wp-block-image size-full">
24+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-furniture-2.png', dirname( __FILE__ ) ) ); ?>" alt="" class="wp-image-1"/>
25+
</figure>
26+
<!-- /wp:image --></div>
27+
<!-- /wp:column -->
28+
29+
<!-- wp:column {"width":"244px","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"},"blockGap":"0px"}},"layout":{"type":"default"}} -->
30+
<div class="wp-block-column" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;flex-basis:244px">
31+
<!-- wp:image {"id":1,"sizeSlug":"full","linkDestination":"none"} -->
32+
<figure class="wp-block-image size-full">
33+
<img src="<?php echo esc_url( plugins_url( 'images/pattern-placeholders/product-furniture-1.png', dirname( __FILE__ ) ) ); ?>" alt="" class="wp-image-1"/>
34+
</figure>
35+
<!-- /wp:image --></div>
36+
<!-- /wp:column --></div>
37+
<!-- /wp:columns --></div>
38+
<!-- /wp:column -->
39+
40+
<!-- wp:column -->
41+
<div class="wp-block-column">
42+
<!-- wp:heading {"textColor":"foreground","fontSize":"x-large"} -->
43+
<h2 class="wp-block-heading has-foreground-color has-text-color has-x-large-font-size">Herriott 40" Solid Wood Console Table</h2>
44+
<!-- /wp:heading -->
45+
46+
<!-- wp:group {"style":{"spacing":{"padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"blockGap":"0px","margin":{"top":"10px","bottom":"0px"}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
47+
<div class="wp-block-group" style="margin-top:10px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
48+
<!-- wp:paragraph {"textColor":"luminous-vivid-amber"} -->
49+
<p class="has-luminous-vivid-amber-color has-text-color">★★★★</p>
50+
<!-- /wp:paragraph -->
51+
52+
<!-- wp:paragraph {"style":{"color":{"text":"#ffe8a4"},"spacing":{"margin":{"right":"5px"}}}} -->
53+
<p class="has-text-color" style="color:#ffe8a4;margin-right:5px">★</p>
54+
<!-- /wp:paragraph -->
55+
56+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.7em"}},"textColor":"foreground"} -->
57+
<p class="has-foreground-color has-text-color" style="font-size:0.7em"> <strong>4.2</strong>(1,079 reviews)</p>
58+
<!-- /wp:paragraph -->
59+
</div>
60+
<!-- /wp:group -->
61+
62+
<!-- wp:group {"style":{"spacing":{"blockGap":"8px","padding":{"top":"0px","right":"0px","bottom":"0px","left":"0px"},"margin":{"top":"2px","bottom":"0px"}}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
63+
<div class="wp-block-group" style="margin-top:2px;margin-bottom:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
64+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"1.2em"}},"textColor":"foreground"} -->
65+
<p class="has-foreground-color has-text-color" style="font-size:1.2em"><strong><sup><sub>$</sub></sup>158.99</strong></p>
66+
<!-- /wp:paragraph -->
67+
68+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.7em"},"layout":{"selfStretch":"fit","flexSize":null}},"textColor":"foreground"} -->
69+
<p class="has-foreground-color has-text-color" style="font-size:0.7em"><s>was $173.99</s></p>
70+
<!-- /wp:paragraph -->
71+
72+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.7em"}},"textColor":"vivid-red"} -->
73+
<p class="has-vivid-red-color has-text-color" style="font-size:0.7em"><strong>9% off</strong></p>
74+
<!-- /wp:paragraph --></div>
75+
<!-- /wp:group -->
76+
77+
<!-- wp:group {"style":{"spacing":{"blockGap":"0px","margin":{"top":"5px"}}},"layout":{"type":"constrained"}} -->
78+
<div class="wp-block-group" style="margin-top:5px">
79+
<!-- wp:paragraph {"style":{"color":{"text":"#00a510"},"typography":{"fontSize":"0.7em"},"spacing":{"margin":{"top":"0px","right":"0px","bottom":"0px","left":"0px"}}}} -->
80+
<p class="has-text-color" style="color:#00a510;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-size:0.7em"><strong>Free 2-Day Shipping</strong></p>
81+
<!-- /wp:paragraph --></div>
82+
<!-- /wp:group -->
83+
84+
<!-- wp:group {"layout":{"type":"constrained"}} -->
85+
<div class="wp-block-group">
86+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8em"}},"textColor":"foreground"} -->
87+
<p class="has-foreground-color has-text-color" style="font-size:0.8em">Crafted from solid wood with a rich walnut finish, this table exudes warmth and sophistication. The clean lines and minimalist design effortlessly complement a variety of interior styles, from modern to rustic. With its spacious tabletop, the Urban Loft Dining Table comfortably seats six guests, making it ideal for family dinners, social gatherings, and special occasions. The sturdy construction ensures lasting durability, while the easy-to-clean surface allows for hassle-free maintenance.</p>
88+
<!-- /wp:paragraph --></div>
89+
<!-- /wp:group -->
90+
91+
<!-- wp:group {"layout":{"type":"constrained"}} -->
92+
<div class="wp-block-group"><!-- wp:buttons -->
93+
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"foreground","textColor":"background"} -->
94+
<div class="wp-block-button">
95+
<a class="wp-block-button__link has-background-color has-foreground-background-color has-text-color has-background wp-element-button">Add to cart</a>
96+
</div>
97+
<!-- /wp:button --></div>
98+
<!-- /wp:buttons --></div>
99+
<!-- /wp:group -->
100+
101+
<!-- wp:group {"layout":{"type":"constrained"}} -->
102+
<div class="wp-block-group"><!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8em"}},"textColor":"foreground"} -->
103+
<p class="has-foreground-color has-text-color" style="font-size:0.8em"><strong>Features</strong></p>
104+
<!-- /wp:paragraph -->
105+
106+
<!-- wp:list {"style":{"spacing":{"margin":{"top":"10px","right":"0","bottom":"0","left":"0"}}},"textColor":"foreground"} -->
107+
<ul class="has-foreground-color has-text-color" style="margin-top:10px;margin-right:0;margin-bottom:0;margin-left:0">
108+
<!-- wp:list-item {"style":{"typography":{"fontSize":"0.8em"}}} -->
109+
<li style="font-size:0.8em">Top shelf weight capacity of 100 lbs</li>
110+
<!-- /wp:list-item -->
111+
112+
<!-- wp:list-item {"style":{"typography":{"fontSize":"0.8em"}}} -->
113+
<li style="font-size:0.8em">Drawer weight capacity of 50 lbs</li>
114+
<!-- /wp:list-item --></ul>
115+
<!-- /wp:list --></div>
116+
<!-- /wp:group -->
117+
118+
<!-- wp:group {"layout":{"type":"constrained"}} -->
119+
<div class="wp-block-group">
120+
<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.8em"}},"textColor":"foreground"} -->
121+
<p class="has-foreground-color has-text-color" style="font-size:0.8em"><strong>Weight and Dimensions</strong></p>
122+
<!-- /wp:paragraph -->
123+
124+
<!-- wp:table {"style":{"typography":{"fontSize":"0.7em"}},"backgroundColor":"background","textColor":"foreground","className":"is-style-stripes"} -->
125+
<figure class="wp-block-table is-style-stripes" style="font-size:0.7em">
126+
<table class="has-foreground-color has-background-background-color has-text-color has-background">
127+
<tbody>
128+
<tr><td>Overall</td><td>36.5'' H X 40'' W X 20'' D</td></tr>
129+
<tr><td>Drawer Interior</td><td>2'' H X 29.25'' W X 12.5'' D</td></tr>
130+
<tr><td>Countertop</td><td>40'' W X 20'' D</td></tr>
131+
<tr><td>Countertop Thickness</td><td>0.7'' H</td></tr>
132+
<tr><td>Overall Product Weight</td><td>39.6 lb.</td></tr>
133+
</tbody>
134+
</table>
135+
</figure>
136+
<!-- /wp:table --></div>
137+
<!-- /wp:group --></div>
138+
<!-- /wp:column --></div>
139+
<!-- /wp:columns -->

0 commit comments

Comments
 (0)