Skip to content

Commit f8dfda7

Browse files
committed
add yt icon to yt embed
1 parent 4dc7545 commit f8dfda7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/assets/img/yt.svg

Lines changed: 3 additions & 0 deletions
Loading

src/components/video/FeaturedVideo.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState } from "react";
22
import { trackEvent } from "../../utils/matomo";
3+
import ytLogo from "../../assets/img/yt.svg"
34

45
function 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>

0 commit comments

Comments
 (0)