[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyfour/patterns/ -> banner-hero.php (source)

   1  <?php
   2  /**
   3   * Title: Hero
   4   * Slug: twentytwentyfour/banner-hero
   5   * Categories: banner, call-to-action, featured
   6   * Viewport width: 1400
   7   * Description: A hero section with a title, a paragraph, a CTA button, and an image.
   8   */
   9  ?>
  10  
  11  <!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained","contentSize":"","wideSize":""}} -->
  12  <div class="wp-block-group alignfull" 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)">
  13  
  14      <!-- wp:group {"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"constrained","contentSize":"565px"}} -->
  15      <div class="wp-block-group">
  16  
  17          <!-- wp:heading {"textAlign":"center","fontSize":"x-large","level":1} -->
  18          <h1 class="wp-block-heading has-text-align-center has-x-large-font-size"><?php echo esc_html_x( 'A commitment to innovation and sustainability', 'Heading of the hero section', 'twentytwentyfour' ); ?></h1>
  19          <!-- /wp:heading -->
  20  
  21          <!-- wp:spacer {"height":"1.25rem"} -->
  22          <div style="height:1.25rem" aria-hidden="true" class="wp-block-spacer"></div>
  23          <!-- /wp:spacer -->
  24  
  25          <!-- wp:paragraph {"align":"center"} -->
  26          <p class="has-text-align-center"><?php echo esc_html_x( 'Études is a pioneering firm that seamlessly merges creativity and functionality to redefine architectural excellence.', 'Content of the hero section', 'twentytwentyfour' ); ?></p>
  27          <!-- /wp:paragraph -->
  28  
  29          <!-- wp:spacer {"height":"1.25rem"} -->
  30          <div style="height:1.25rem" aria-hidden="true" class="wp-block-spacer"></div>
  31          <!-- /wp:spacer -->
  32  
  33          <!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
  34          <div class="wp-block-buttons">
  35              <!-- wp:button -->
  36              <div class="wp-block-button">
  37                  <a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'About us', 'Button text of the hero section', 'twentytwentyfour' ); ?></a>
  38              </div>
  39              <!-- /wp:button -->
  40          </div>
  41          <!-- /wp:buttons -->
  42      </div>
  43      <!-- /wp:group -->
  44  
  45      <!-- wp:spacer {"height":"var:preset|spacing|30","style":{"layout":{}}} -->
  46      <div style="height:var(--wp--preset--spacing--30)" aria-hidden="true" class="wp-block-spacer">
  47      </div>
  48      <!-- /wp:spacer -->
  49  
  50      <!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
  51      <figure class="wp-block-image alignwide size-full is-style-rounded">
  52          <img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/building-exterior.webp" alt="<?php esc_attr_e( 'Building exterior in Toronto, Canada', 'twentytwentyfour' ); ?>" />
  53      </figure>
  54      <!-- /wp:image -->
  55  </div>
  56  <!-- /wp:group -->


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref