Skip to content

Commit

Permalink
Merge branch 'main' of github.com:cncf/cncf.io
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyabraham committed Aug 25, 2024
2 parents ab488b7 + eeeae33 commit 72e54d9
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

$site_options = get_option( 'lf-mu' );

if ( isset( $site_options['show_hello_bar'] ) && $site_options['show_hello_bar'] ) :
if ( isset( $site_options['show_hello_bar'] ) && $site_options['show_hello_bar'] && ! is_front_page() ) :
get_template_part( 'components/hello-bar' );
endif;
?>
Expand Down
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>
3 changes: 2 additions & 1 deletion web/wp-content/themes/cncf-twenty-two/front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

get_template_part( 'components/skip-link-target' );

get_template_part( 'components/home-hero' );
// get_template_part( 'components/home-hero' ); // phpcs:ignore.
get_template_part( 'components/home-hero-takeover' );
?>
<article class="container wrap">
<?php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
margin-bottom: min(8%, 40px);
@media (min-width: 412px) {
margin-top: min(10%, 45px);
margin-bottom: min(10%, 50px);
margin-bottom: min(10%, 42px);
}
letter-spacing: 0.02em;
font-weight: 400;
Expand All @@ -93,7 +93,7 @@
&__metric_wrapper {
margin-top: min(8%, 30px);
@media (min-width: 600px) {
margin-top: min(8%, 50px);
margin-top: min(8%, 36px);
}
margin-bottom: min(20%, 100px);
display: flex;
Expand Down

0 comments on commit 72e54d9

Please sign in to comment.