2021-11-05 15:36:34 +01:00
|
|
|
<article class="flex w-full p-4 shadow bg-elevated rounded-conditional-2xl gap-x-2">
|
2021-10-18 18:44:07 +02:00
|
|
|
<div class="relative">
|
2021-11-05 15:36:34 +01:00
|
|
|
<time class="absolute px-1 text-xs font-semibold text-white rounded bottom-2 right-2 bg-black/75" datetime="PT<?= $episode->audio_file_duration ?>S">
|
2021-10-18 18:44:07 +02:00
|
|
|
<?= format_duration($episode->audio_file_duration) ?>
|
|
|
|
</time>
|
2021-11-01 18:12:03 +01:00
|
|
|
<img loading="lazy" src="<?= $episode->cover
|
2021-10-18 18:44:07 +02:00
|
|
|
->thumbnail_url ?>" alt="<?= $episode->title ?>" class="object-cover w-20 h-20 rounded-lg" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center flex-1 gap-x-4">
|
|
|
|
<div class="flex flex-col flex-1">
|
|
|
|
<div class="inline-flex items-center">
|
2021-11-05 15:36:34 +01:00
|
|
|
<?= episode_numbering($episode->number, $episode->season_number, 'text-xs font-semibold border-subtle text-skin-muted px-1 border mr-2 !no-underline', true) ?>
|
|
|
|
<?= relative_time($episode->published_at, 'text-xs whitespace-nowrap text-skin-muted') ?>
|
2021-10-13 17:43:40 +02:00
|
|
|
</div>
|
2021-10-18 18:44:07 +02:00
|
|
|
<h2 class="flex-1 font-semibold line-clamp-2"><a class="hover:underline" href="<?= $episode->link ?>"><?= $episode->title ?></a></h2>
|
2021-10-13 17:43:40 +02:00
|
|
|
</div>
|
2021-10-18 18:44:07 +02:00
|
|
|
<play-episode-button
|
|
|
|
id="<?= $episode->id ?>"
|
2021-11-01 18:12:03 +01:00
|
|
|
imageSrc="<?= $episode->cover->thumbnail_url ?>"
|
2021-10-18 18:44:07 +02:00
|
|
|
title="<?= $episode->title ?>"
|
|
|
|
podcast="<?= $episode->podcast->title ?>"
|
|
|
|
src="<?= $episode->audio_file_web_url ?>"
|
|
|
|
mediaType="<?= $episode->audio_file_mimetype ?>"
|
|
|
|
playLabel="<?= lang('Common.play_episode_button.play') ?>"
|
|
|
|
playingLabel="<?= lang('Common.play_episode_button.playing') ?>"></play-episode-button>
|
2021-10-13 17:43:40 +02:00
|
|
|
</div>
|
|
|
|
</article>
|