Last active
June 22, 2022 14:22
-
-
Save elpuas/277aaa94087935feca5243a0e3d019ba to your computer and use it in GitHub Desktop.
Hero Pattern Example
This file contains hidden or 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
<?php | |
/** | |
* Title: Hero | |
* Slug: my-theme/hero | |
* Block types: core/post-content | |
* Categories: headers, text | |
*/ | |
?> | |
<!-- wp:cover {"url":"http://fsefidelitas.local/wp-content/uploads/2022/06/marta-rastovac-t0m-hgapGk-unsplash-scaled.jpeg","id":21,"dimRatio":50,"minHeight":600,"style":{"spacing":{"padding":{"top":"100px","right":"200px","bottom":"100px","left":"200px"}}}} --> | |
<div class="wp-block-cover" style="padding-top:100px;padding-right:200px;padding-bottom:100px;padding-left:200px;min-height:600px"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span><img class="wp-block-cover__image-background wp-image-21" alt="" src="http://fsefidelitas.local/wp-content/uploads/2022/06/marta-rastovac-t0m-hgapGk-unsplash-scaled.jpeg" data-object-fit="cover"/><div class="wp-block-cover__inner-container"><!-- wp:group {"layout":{"contentSize":"600px"}} --> | |
<div class="wp-block-group"><!-- wp:heading {"textAlign":"center","level":1,"fontSize":"large"} --> | |
<h1 class="has-text-align-center has-large-font-size">My First FSE Theme</h1> | |
<!-- /wp:heading --> | |
<!-- wp:paragraph {"align":"center","fontSize":"size18"} --> | |
<p class="has-text-align-center has-size-18-font-size">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi elementum tincidunt varius. Quisque ornare quam et justo.</p> | |
<!-- /wp:paragraph --> | |
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} --> | |
<div class="wp-block-buttons"><!-- wp:button --> | |
<div class="wp-block-button"><a class="wp-block-button__link">CALL TO ACTION</a></div> | |
<!-- /wp:button --></div> | |
<!-- /wp:buttons --></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