mirror of https://github.com/cncf/cncf.io.git
				
				
				
			Merge pull request #908 from cncf/vidd
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
This commit is contained in:
		
						commit
						37e15ccd4a
					
				|  | @ -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> | ||||
|  |  | |||
|  | @ -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 | 
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue