Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Title: Custom Call-to-Action Pattern
* Slug: frost/custom-cta
* Categories: frost-general, featured
* Viewport Width: 1280
*/
?>
<!-- wp:cover {"dimRatio":70,"overlayColor":"contrast","minHeight":600,"minHeightUnit":"px","contentPosition":"center center","align":"full","style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}},"color":{"duotone":["#000000","#ffffff"]}}} -->
<div class="wp-block-cover alignfull" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;min-height:600px"><span aria-hidden="true" class="wp-block-cover__background has-contrast-background-color has-background-dim-70 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"textColor":"base","layout":{"type":"constrained","justifyContent":"center"}} -->
<div class="wp-block-group alignfull has-base-color has-text-color" style="padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)"><!-- wp:group {"align":"wide","style":{"spacing":{"blockGap":"var:preset|spacing|small"}},"layout":{"type":"constrained","justifyContent":"left"}} -->
<div class="wp-block-group alignwide"><!-- wp:heading {"style":{"typography":{"textTransform":"none"}},"fontSize":"max-48"} -->
<h2 class="has-max-48-font-size" style="text-transform:none">Write a Call to Action Here!</h2>
<!-- /wp:heading -->
<!-- wp:paragraph {"fontSize":"medium"} -->
<p class="has-medium-font-size">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<!-- /wp:paragraph -->
<!-- wp:buttons {"style":{"spacing":{"margin":{"bottom":"10px"},"blockGap":"var:preset|spacing|x-small"},"typography":{"textTransform":"uppercase","letterSpacing":"0.5px"}},"fontSize":"small"} -->
<div class="wp-block-buttons has-custom-font-size has-small-font-size" style="margin-bottom:10px;letter-spacing:0.5px;text-transform:uppercase"><!-- wp:button {"className":"is-style-fill-base"} -->
<div class="wp-block-button is-style-fill-base"><a class="wp-block-button__link wp-element-button" href="#">Button One</a></div>
<!-- /wp:button -->
<!-- wp:button {"className":"is-style-outline-base"} -->
<div class="wp-block-button is-style-outline-base"><a class="wp-block-button__link wp-element-button" href="#">Button Two</a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div></div>
<!-- /wp:cover -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment