mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-08-26 05:57:18 +02:00
- set new colors using the css variables for theming in tailwind.config.js - replace admin and public colors with new variable enabled colors
24 lines
903 B
PHP
24 lines
903 B
PHP
<section class="flex flex-col">
|
|
<header class="flex justify-between">
|
|
<Heading tagName="h2"><?= lang('Podcast.latest_episodes') ?></Heading>
|
|
<a href="<?= route_to(
|
|
'episode-list',
|
|
$podcast->id,
|
|
) ?>" class="inline-flex items-center text-sm underline hover:no-underline focus:ring-accent">
|
|
<?= lang('Podcast.see_all_episodes') ?>
|
|
<?= icon('chevron-right', 'ml-2') ?>
|
|
</a>
|
|
</header>
|
|
<?php if ($episodes): ?>
|
|
<div class="grid px-4 pt-2 pb-5 -mx-2 overflow-x-auto grid-cols-latestEpisodes gap-x-4 snap snap-x snap-proximity">
|
|
<?php foreach ($episodes as $episode): ?>
|
|
<?= view('episode/_card', [
|
|
'episode' => $episode,
|
|
]) ?>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<p class="italic"><?= lang('Podcast.no_episode') ?></p>
|
|
<?php endif; ?>
|
|
</section>
|