This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from WordPress/graylaurenm-cta-grid-products-…
…link Create CTA: grid with products and link pattern, alt Co-authored-by: graylaurenm <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: juanfra <[email protected]> Co-authored-by: carolinan <[email protected]>
- Loading branch information
Showing
4 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,137 @@ | ||
<?php | ||
/** | ||
* Title: CTA: Grid layout with products and link | ||
* Slug: twentytwentyfive/cta-grid-products-link | ||
* Categories: call-to-action | ||
* Viewport width: 1400 | ||
* Description: A call to action featuring product images. | ||
* | ||
* @package WordPress | ||
* @subpackage Twenty_Twenty_Five | ||
* @since Twenty Twenty-Five 1.0 | ||
*/ | ||
|
||
?> | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|40"}},"layout":{"type":"default"}} --> | ||
<div class="wp-block-group alignwide"> | ||
<!-- wp:heading {"style":{"typography":{"fontSize":"11.58rem","letterSpacing":"-0.02em"}}} --> | ||
<h2 class="wp-block-heading" style="font-size:11.58rem;letter-spacing:-0.02em">Our online store.</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:group {"layout":{"type":"grid","columnCount":null,"minimumColumnWidth":"10rem"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/grid-flower-2.webp' ); ?>" alt="Black and white flower" style="aspect-ratio:1;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
|
||
<!-- wp:cover {"dimRatio":0,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"fontSize":"medium"} --> | ||
<div class="wp-block-cover is-light has-medium-font-size"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">Delivered every week</p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/image-from-rawpixel-id-8799918.webp' ); ?>" alt="Closeup of plantlife in the Malibu Canyon area" style="aspect-ratio:1;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
|
||
<!-- wp:cover {"overlayColor":"contrast","isUserOverlayColor":true,"style":{"dimensions":{"aspectRatio":"1"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover"><span aria-hidden="true" class="wp-block-cover__background has-contrast-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center","fontSize":"medium"} --> | ||
<p class="has-text-align-center has-medium-font-size"></p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:cover {"dimRatio":0,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"},"spacing":{"padding":{"top":"0","bottom":"0","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}}} --> | ||
<div class="wp-block-cover is-light" style="margin-top:0;margin-bottom:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"0","padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}},"fontSize":"medium","layout":{"type":"flex","orientation":"vertical","verticalAlignment":"center","justifyContent":"center"}} --> | ||
<div class="wp-block-group has-medium-font-size" style="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:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">Starting at</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"2.63rem"}}} --> | ||
<p class="has-text-align-center" style="font-size:2.63rem">$30</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">/month</p> | ||
<!-- /wp:paragraph --> | ||
</div> | ||
<!-- /wp:group --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/image-from-rawpixel-id-8802845.webp' ); ?>" alt="Flora of Akaka Falls State Park" style="aspect-ratio:1;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
|
||
<!-- wp:cover {"dimRatio":0,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"fontSize":"medium"} --> | ||
<div class="wp-block-cover is-light has-medium-font-size"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">Tailored to your needs</p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:cover {"dimRatio":0,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"fontSize":"medium"} --> | ||
<div class="wp-block-cover is-light has-medium-font-size"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">Free shipping</p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:cover {"overlayColor":"accent-2","isUserOverlayColor":true,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-accent-2-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center","fontSize":"medium"} --> | ||
<p class="has-text-align-center has-medium-font-size"></p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:cover {"dimRatio":0,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"fontSize":"medium"} --> | ||
<div class="wp-block-cover is-light has-medium-font-size"><span aria-hidden="true" class="wp-block-cover__background has-background-dim-0 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center"} --> | ||
<p class="has-text-align-center">Cancel anytime</p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:cover {"overlayColor":"accent-3","isUserOverlayColor":true,"style":{"dimensions":{"aspectRatio":"1"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover"><span aria-hidden="true" class="wp-block-cover__background has-accent-3-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center","fontSize":"medium"} --> | ||
<p class="has-text-align-center has-medium-font-size"></p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/botany-flowers.webp' ); ?>" alt="Botany flowers" style="aspect-ratio:1;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
|
||
<!-- wp:cover {"overlayColor":"accent-1","isUserOverlayColor":true,"isDark":false,"style":{"dimensions":{"aspectRatio":"1"}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-cover is-light"><span aria-hidden="true" class="wp-block-cover__background has-accent-1-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"> | ||
<!-- wp:paragraph {"align":"center","fontSize":"medium"} --> | ||
<p class="has-text-align-center has-medium-font-size"></p> | ||
<!-- /wp:paragraph --> | ||
</div></div> | ||
<!-- /wp:cover --> | ||
|
||
<!-- wp:image {"aspectRatio":"1","scale":"cover","sizeSlug":"large","linkDestination":"none"} --> | ||
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/images/image-from-rawpixel-id-2211732.webp' ); ?>" alt="Black and white flower" style="aspect-ratio:1;object-fit:cover"/></figure> | ||
<!-- /wp:image --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:buttons --> | ||
<div class="wp-block-buttons"> | ||
<!-- wp:button {"width":100} --> | ||
<div class="wp-block-button has-custom-width wp-block-button__width-100"><a class="wp-block-button__link wp-element-button">Shop now</a></div> | ||
<!-- /wp:button --> | ||
</div> | ||
<!-- /wp:buttons --> | ||
</div> | ||
<!-- /wp:group --> |
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