This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pattern for split hero product banner.
This adds a new pattern for a hero product banner with a 50/50 split, heading and CTA on left and product image on right. Uses the Media + Text block.
- Loading branch information
1 parent
3aa30e4
commit 0cf7915
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Title: WooCommerce Hero Product - Split | ||
* Slug: woocommerce-blocks/hero-product-split | ||
* Categories: WooCommerce | ||
*/ | ||
?> | ||
|
||
<!-- wp:group {"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:media-text {"align":"full","mediaPosition":"right","mediaId":718,"mediaLink":"http://woo-dev.test/https-unsplash-com-photos-qjqqaq1ctdm/","mediaType":"image","mediaSizeSlug":"full","imageFill":false,"backgroundColor":"contrast","textColor":"base"} --> | ||
<div class="wp-block-media-text alignfull has-media-on-the-right is-stacked-on-mobile has-base-color has-contrast-background-color has-text-color has-background"> | ||
<div class="wp-block-media-text__content"><!-- wp:heading --> | ||
<h2 class="wp-block-heading">Get cozy this fall with<br>flannel shirts</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:buttons {"style":{"spacing":{"margin":{"bottom":"var:preset|spacing|40"}}}} --> | ||
<div class="wp-block-buttons" style="margin-bottom:var(--wp--preset--spacing--40)"> | ||
<!-- wp:button --> | ||
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Shop now</a></div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
|
||
<figure class="wp-block-media-text__media"> | ||
<img src="http://woo-dev.test/wp-content/uploads/2023/04/pattern-product-split-e1682368228386-1024x861.jpg" alt="" class="wp-image-718 size-full"/> | ||
</figure> | ||
</div> | ||
<!-- /wp:media-text --> | ||
</div> | ||
<!-- /wp:group --> |