hero.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Title: Home page hero
  4. * slug: pendant/home-hero
  5. */
  6. ?>
  7. <!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"padding":{"top":"0px","bottom":"0px"}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
  8. <div class="wp-block-group has-background-color has-foreground-background-color has-text-color has-background" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px"><!-- wp:columns {"align":"full","style":{"spacing":{"blockGap":"0px"}}} -->
  9. <div class="wp-block-columns alignfull"><!-- wp:column -->
  10. <div class="wp-block-column"></div>
  11. <!-- /wp:column -->
  12. <!-- wp:column {"verticalAlignment":"bottom","width":"calc(1240px / 2)","style":{"spacing":{"padding":{"left":"var(--wp--custom--gap--horizontal)"}}}} -->
  13. <div class="wp-block-column is-vertically-aligned-bottom" style="padding-left:var(--wp--custom--gap--horizontal);flex-basis:calc(1240px / 2)"><!-- wp:group {"style":{"spacing":{"padding":{"top":"100px","bottom":"100px","right":"calc(var(--wp--custom--gap--horizontal)/2)"}}},"layout":{"inherit":true}} -->
  14. <div class="wp-block-group" style="padding-top:100px;padding-right:calc(var(--wp--custom--gap--horizontal)/2);padding-bottom:100px"><!-- wp:paragraph {"placeholder":"Content…","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"x-small"} -->
  15. <p class="has-x-small-font-size" style="text-transform:uppercase"><?php echo esc_html__( 'Featured', 'pendant' ); ?></p>
  16. <!-- /wp:paragraph -->
  17. <!-- wp:heading {"level":1,"style":{"typography":{"lineHeight":"1"}}} -->
  18. <h1 style="line-height:1"><?php echo esc_html__( 'October Finds', 'pendant' ); ?></h1>
  19. <!-- /wp:heading -->
  20. <!-- wp:buttons -->
  21. <div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline"} -->
  22. <div class="wp-block-button is-style-outline"><a class="wp-block-button__link"><?php echo esc_html__( 'Explore', 'pendant' ); ?></a></div>
  23. <!-- /wp:button --></div>
  24. <!-- /wp:buttons --></div>
  25. <!-- /wp:group --></div>
  26. <!-- /wp:column -->
  27. <!-- wp:column {"width":"50%"} -->
  28. <div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"width":1000,"sizeSlug":"full","linkDestination":"none"} -->
  29. <figure class="wp-block-image size-full is-resized"><img src="<?php echo esc_url( get_template_directory_uri() ) . '/assets/images/fists-on-chin.jpeg'; ?>" alt="" width="1000"/></figure>
  30. <!-- /wp:image --></div>
  31. <!-- /wp:column --></div>
  32. <!-- /wp:columns --></div>
  33. <!-- /wp:group -->