mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-05 08:52:00 +00:00

- bundle js using parcel - add markdown editor, html editor, dropdown and tooltip features using third-party packages - integrate optimized inline svg icons from RemixIcon using svgo and a php helper - add scripts in package.json to bundle icons, images, css and js - update tailwind config to add purgecss lookups and typography plugin - refactor views to add missing pages in user journey - update admin's holy grail layout using css grid
27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<article class="w-48 h-full mb-4 mr-4 overflow-hidden bg-white border rounded shadow">
|
|
<img alt="<?= $podcast->title ?>" src="<?= $podcast->image_url ?>" class="object-cover w-full h-40" />
|
|
<div class="p-2">
|
|
<a href="<?= route_to(
|
|
'podcast_view',
|
|
$podcast->id
|
|
) ?>" class="hover:underline">
|
|
<h2 class="font-semibold"><?= $podcast->title ?></h2>
|
|
</a>
|
|
<p class="text-gray-600">@<?= $podcast->name ?></p>
|
|
</div>
|
|
<footer class="flex items-center justify-end p-2">
|
|
<a class="inline-flex p-2 mr-2 text-teal-700 bg-teal-100 rounded-full shadow-xs hover:bg-teal-200" href="<?= route_to(
|
|
'podcast_edit',
|
|
$podcast->id
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
'Podcast.edit'
|
|
) ?>"><?= icon('edit') ?></a>
|
|
<a class="inline-flex p-2 bg-gray-100 rounded-full shadow-xs text-teal-gray hover:bg-gray-200" href="<?= route_to(
|
|
'podcast_view',
|
|
$podcast->id
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
'Podcast.view'
|
|
) ?>"><?= icon('eye') ?></a>
|
|
</footer>
|
|
</article>
|