diff --git a/src/components/Stream.astro b/src/components/Stream.astro index a6d38de010a0f6..dfac7032804a9f 100644 --- a/src/components/Stream.astro +++ b/src/components/Stream.astro @@ -39,66 +39,68 @@ if (thumbnail) { } --- - -
- -
- - { - chapters && ( -

- Chapters -

-

- ) - } +
+ +
+ +
+ + { + chapters && ( +

+ Chapters +

    + {Object.entries(chapters).map(([chapter, time]) => { + const totalSeconds = parse(time, "s"); + + const thumbnail = new URL(thumbnailUrl); + thumbnail.searchParams.set("fit", "crop"); + thumbnail.searchParams.set("time", `${totalSeconds}s`); + + return ( +
  • + +
  • + ); + })} +
+

+ ) + } - { - showMoreVideos && ( - - Watch more videos on our Developer Channel - - ) - } -
+ { + showMoreVideos && ( + + Watch more videos on our Developer Channel + + ) + } + +