Merge pull request #908 from cncf/vidd

Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
This commit is contained in:
Chris Abraham 2024-12-10 19:31:38 -08:00 committed by GitHub
commit 37e15ccd4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@
?>
<link rel="preload" as="image" fetchpriority="high"
href="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.webp' ); ?>">
href="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.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 );
@ -21,8 +21,8 @@ $metrics = LF_Utils::get_homepage_metrics();
<div aria-hidden="true" class="home-hero__overlay"></div>
<picture>
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.jpg' ); ?>"
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.jpg' ); ?>"
class="home-hero__poster" style="width: 100%; height: 100%;"
alt="Make cloud native ubiquitous" decoding="async">
</picture>
@ -40,8 +40,8 @@ $metrics = LF_Utils::get_homepage_metrics();
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-poster1.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.jpg' ); ?>"
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.jpg' ); ?>"
alt="Make cloud native ubiquitous">
</picture>
</video>

View File

@ -10,7 +10,7 @@
?>
<link rel="preload" as="image" fetchpriority="high"
href="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.webp' ); ?>">
href="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.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 );
@ -21,8 +21,8 @@ $metrics = LF_Utils::get_homepage_metrics();
<div aria-hidden="true" class="home-hero__overlay"></div>
<picture>
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.jpg' ); ?>"
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.jpg' ); ?>"
class="home-hero__poster" style="width: 100%; height: 100%;"
alt="Make cloud native ubiquitous" decoding="async">
</picture>
@ -40,8 +40,8 @@ $metrics = LF_Utils::get_homepage_metrics();
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-poster1.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster1.jpg' ); ?>"
<source srcset="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.webp' ); ?>" type="image/webp">
<img src="<?php echo esc_url( get_template_directory_uri() . '/images/home-hero-poster2.jpg' ); ?>"
alt="Make cloud native ubiquitous">
</picture>
</video>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB