hero.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Title: Home Page Hero
  4. * slug: pendant/home-hero
  5. * categories: featured, call-to-action
  6. */
  7. ?>
  8. <!-- wp:group {"style":{"spacing":{"margin":{"top":"0px","bottom":"0px"},"padding":{"top":"0px","bottom":"0px"}},"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"backgroundColor":"foreground","textColor":"background","layout":{"inherit":true}} -->
  9. <div class="wp-block-group has-background-color has-foreground-background-color has-text-color has-background has-link-color" style="margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px"><!-- wp:columns {"align":"full","style":{"spacing":{"blockGap":"0px"}}} -->
  10. <div class="wp-block-columns alignfull"><!-- wp:column -->
  11. <div class="wp-block-column"></div>
  12. <!-- /wp:column -->
  13. <!-- wp:column {"verticalAlignment":"bottom","width":"calc(1240px / 2)","style":{"spacing":{"padding":{"left":"var(--wp--custom--gap--horizontal)"}}}} -->
  14. <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}} -->
  15. <div class="wp-block-group" style="padding-top:100px;padding-right:calc(var(--wp--custom--gap--horizontal)/2);padding-bottom:100px">
  16. <!-- wp:paragraph {"style":{"typography":{"textTransform":"uppercase","letterSpacing":"0.1em","fontStyle":"normal","fontWeight":"500"}},"fontSize":"0.9rem"} -->
  17. <p style="font-style:normal;font-weight:500;text-transform:uppercase;letter-spacing:0.1em;font-size:0.9rem"><?php echo esc_html__( 'Featured', 'pendant' ); ?></p>
  18. <!-- /wp:paragraph -->
  19. <!-- wp:heading {"level":1,"style":{"typography":{"lineHeight":"1"}}} -->
  20. <h1 style="line-height:1"><?php echo esc_html__( 'October Finds', 'pendant' ); ?></h1>
  21. <!-- /wp:heading -->
  22. <!-- wp:buttons -->
  23. <div class="wp-block-buttons"><!-- wp:button {"className":"is-style-outline"} -->
  24. <div class="wp-block-button is-style-outline"><a class="wp-block-button__link"><?php echo esc_html__( 'Explore', 'pendant' ); ?></a></div>
  25. <!-- /wp:button --></div>
  26. <!-- /wp:buttons --></div>
  27. <!-- /wp:group --></div>
  28. <!-- /wp:column -->
  29. <!-- wp:column {"width":"50%"} -->
  30. <div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"width":1000,"sizeSlug":"full","linkDestination":"none"} -->
  31. <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>
  32. <!-- /wp:image --></div>
  33. <!-- /wp:column --></div>
  34. <!-- /wp:columns --></div>
  35. <!-- /wp:group -->