themes-wordpress/adventurer/patterns/header-with-cover.php
Sarah Norris 6470d43376
Add Adventurer theme (#6773)
* Adventurer initial commit

* Compress screenshot

* Compress asset images

* Update version numbers

* Rename home template

* Escape about pattern

* Patternise home template

* Fix theme.json error

* Move home header into pattern

* Patternise header

* Indent about

* Patternise footer

* Rename sidebar2 to sidebar

* Patternise post meta

* Remove nav refs

* Patternise secondary header

* Patternise sidebar

* Patternise 404

* Fix secondary header

* Remove all staging site links

* Translate list pattern

* Translate stats pattern

* Indent templates

* Remove static ids

* Add Author URI

* Add spacing to home and page templates

* Fix home and page spacing
2022-12-16 15:10:47 +00:00

64 lines
No EOL
3.9 KiB
PHP

<?php
/**
* Title: Header with cover
* Slug: adventurer/header-with-cover
* Categories: header
* Block Types: core/template-part/header
*/
?>
<!-- wp:cover {"url":"<?php echo esc_url( get_stylesheet_directory_uri() ) . '/assets/images/adventurer_coconuts.png'; ?>","dimRatio":50,"minHeight":90,"minHeightUnit":"vh","style":{"spacing":{"padding":{"right":"0","left":"0","top":"0","bottom":"0"}}}} -->
<div class="wp-block-cover" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;min-height:90vh"><span aria-hidden="true" class="wp-block-cover__background has-background-dim"></span><img class="wp-block-cover__image-background" alt="" src="<?php echo esc_url( get_stylesheet_directory_uri() ) . '/assets/images/adventurer_coconuts.png'; ?>" data-object-fit="cover"/><div class="wp-block-cover__inner-container">
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|60","top":"var:preset|spacing|60","right":"0","left":"0"}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="padding-top:var(--wp--preset--spacing--60);padding-right:0;padding-bottom:var(--wp--preset--spacing--60);padding-left:0">
<!-- wp:site-title {"textAlign":"left","style":{"elements":{"link":{"color":{"text":"var:preset|color|background"}}}},"textColor":"background"} /-->
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group">
<!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"}}}} /-->
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"primary","textColor":"background"} -->
<div class="wp-block-button"><a class="wp-block-button__link has-background-color has-primary-background-color has-text-color has-background wp-element-button"><?php echo esc_html__( 'Donate', 'adventurer' ); ?></a></div><!-- /wp:button -->
</div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
</div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"26vh"} -->
<div style="height:26vh" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:group {"layout":{"type":"constrained","contentSize":"1100px"}} -->
<div class="wp-block-group">
<!-- wp:heading {"style":{"typography":{"letterSpacing":"1px","fontSize":"0.8rem"}},"fontFamily":"roboto"} -->
<h2 class="wp-block-heading has-roboto-font-family" style="font-size:0.8rem;letter-spacing:1px"><?php echo esc_html__( 'GUIDED TOURS', 'adventurer' ); ?></h2>
<!-- /wp:heading -->
<!-- wp:heading {"level":3,"style":{"typography":{"fontSize":"4.6rem"}}} -->
<h3 class="wp-block-heading" style="font-size:4.6rem"><?php echo esc_html__( '14 days in COSTA RICA', 'adventurer' ); ?></h3>
<!-- /wp:heading -->
<!-- wp:paragraph -->
<p><?php echo esc_html__( 'My first guided group tour will open for booking in two weeks. The trip will take place from December 4 to December 17, 2023.', 'adventurer' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button"><?php echo esc_html__( 'Save Your Spot', 'adventurer' ); ?></a></div>
<!-- /wp:button --></div>
<!-- /wp:buttons -->
</div>
<!-- /wp:group -->
<!-- wp:spacer {"height":"26vh"} -->
<div style="height:26vh" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div></div>
<!-- /wp:cover -->