Skip to content

Commit

Permalink
Move watch link to video thumbnail which is a larger click target and…
Browse files Browse the repository at this point in the history
… probably more common for users to try and click
  • Loading branch information
albertchae committed Apr 24, 2024
1 parent 6ad7225 commit 617fa19
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/pages/recordings.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const {data: recordingData} = await getEntry('data', 'recordings');
return <div
class="flex flex-col md:flex-row items-center"
>
<img class="w-full md:w-56 object-contain" alt={videoData.title} src={videoData.thumbnails.standard.url}>
<a
rel="noopener"
target="_blank"
href={`https://www.youtube.com/watch?v=${videoData.resourceId.videoId}`}>
<img class="w-full md:w-56 object-contain" alt={videoData.title} src={videoData.thumbnails.standard.url}>
</a>

<div class="nixcon-gradient p-0.5 pt-0 md:pt-0.5 md:pl-0 w-full">
<div class="dark:bg-nixblue-900 bg-gray-200 h-full flex flex-col justify-between">
Expand All @@ -27,10 +32,6 @@ const {data: recordingData} = await getEntry('data', 'recordings');
</div>
</div>
<div class="flex dark:bg-nixblue-950 bg-gray-100 p-2 flex justify-end">
<a
rel="noopener"
target="_blank"
href={`https://www.youtube.com/watch?v=${videoData.resourceId.videoId}`}>Watch Talk</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 617fa19

Please sign in to comment.