File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import React , { useState } from "react" ;
22import { trackEvent } from "../../utils/matomo" ;
3+ import ytLogo from "../../assets/img/yt.svg"
34
45function FeaturedVideo ( props ) {
56 const [ isClicked , setIsClicked ] = useState ( false ) ;
@@ -54,14 +55,17 @@ function FeaturedVideo(props) {
5455 allowFullScreen
5556 > </ iframe >
5657 ) : (
58+ < div className = "thumbnail-container grid grid-cols-1 grid-rows-1 place-items-center [grid-template-areas:'main']" >
5759 < img
5860 tabIndex = "0"
5961 src = { placeholderImage }
6062 alt = { imageAltText }
61- className = "w-full aspect-video rounded-md shadow-xl cursor-pointer"
63+ className = "w-full aspect-video rounded-md shadow-xl cursor-pointer [grid-area:main] "
6264 onClick = { ( ) => handleVideoClick ( ) }
6365 onKeyDown = { ( e ) => e . key === "Enter" && handleVideoClick ( ) }
6466 />
67+ < img src = { ytLogo . src } alt = "YouTube logo" className = "yt-logo w-24 h-24 [grid-area:main] pointer-events-none" />
68+ </ div >
6569 ) }
6670 { label && < p className = { `${ textColor } ` } > { label } </ p > }
6771 </ div >
You can’t perform that action at this time.
0 commit comments