-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:cncf/cncf.io
- Loading branch information
Showing
4 changed files
with
90 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
85 changes: 85 additions & 0 deletions
85
web/wp-content/themes/cncf-twenty-two/components/home-hero-takeover.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<?php | ||
/** | ||
* Home - Takeover | ||
* | ||
* @package WordPress | ||
* @subpackage cncf-theme | ||
* @since 1.0.0 | ||
*/ | ||
|
||
?> | ||
|
||
<link rel="preload" as="image" fetchpriority="high" | ||
href="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster.webp' ); ?>"> | ||
|
||
<?php | ||
wp_enqueue_script( 'home-hero', get_template_directory_uri() . '/source/js/on-demand/video.js', null, filemtime( get_template_directory() . '/source/js/on-demand/video.js' ), true ); | ||
|
||
$metrics = LF_Utils::get_homepage_metrics(); | ||
?> | ||
<section class="home-hero"> | ||
<div aria-hidden="true" class="home-hero__overlay"></div> | ||
|
||
<picture> | ||
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster.webp' ); ?>" type="image/webp"> | ||
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster.jpg' ); ?>" | ||
class="home-hero__poster" style="width: 100%; height: 100%;" | ||
alt="Make cloud native ubiquitous" decoding="async"> | ||
</picture> | ||
|
||
<div class="home-hero__video-wrapper"> | ||
<video class="home-hero__video" loop muted playsinline width="100%" | ||
preload="none" style="width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
position: absolute; | ||
z-index: 1; | ||
top: 0; | ||
left: 0;"> | ||
<source | ||
src="<?php echo esc_url( get_template_directory_uri() . '/source/videos/hero.mp4' ); ?>" | ||
type="video/mp4"> | ||
<picture> | ||
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster.webp' ); ?>" type="image/webp"> | ||
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster.jpg' ); ?>" | ||
alt="Make cloud native ubiquitous"> | ||
</picture> | ||
</video> | ||
</div> | ||
|
||
<div class="home-hero__content"> | ||
<div class="container wrap"> | ||
|
||
<h1 class="home-hero__title">JOIN US IN<br /> | ||
SALT LAKE CITY<br /> | ||
<span>NOVEMBER 12-15</span> | ||
</h1> | ||
|
||
<h2 class="home-hero__description"><strong>KubeCon + CloudNativeCon</strong> is the flagship conference for cloud native.</h2> | ||
|
||
<ul class="home-hero__metric_wrapper" style="margin-bottom: 40px;"> | ||
<li>10K+ | ||
<span>Attendees</span> | ||
</li> | ||
<li>200+ | ||
<span>Sponsors</span> | ||
</li> | ||
<li>300+ | ||
<span>Sessions</span> | ||
</li> | ||
<li> | ||
∞ | ||
<span>Swag</span> | ||
</li> | ||
</ul> | ||
|
||
<div class="wp-block-buttons is-content-justification-left is-layout-flex wp-container-core-buttons-is-layout-2 wp-block-buttons-is-layout-flex"> | ||
<div class="wp-block-button show-over-600"><a class="wp-block-button__link has-text-align-center wp-element-button" href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/?utm_source=www&utm_medium=homepage&utm_campaign=KubeCon-NA-2024&utm_content=hero" title="Learn more about KubeCon + CloudNativeCon">Learn More</a></div> | ||
<div class="wp-block-button"><a class="wp-block-button__link has-text-align-center wp-element-button" href="https://events.linuxfoundation.org/kubecon-cloudnativecon-north-america/register/?utm_source=www&utm_medium=homepage&utm_campaign=KubeCon-NA-2024&utm_content=hero" title="Register for KubeCon + CloudNativeCon">Register</a></div> | ||
</div> | ||
|
||
<div style="height:70px;" aria-hidden="true" class="wp-block-spacer"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
This file contains 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
This file contains 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