castopod/app/Views/home.php
Yassine Doghri cbb83a6f30 feat: add npm for js dependencies + move src/ files to root folder
- add node service in docker-compose.yml
- update .devcontainer Dockerfile by adding node, npm and vim
- init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies
- update default layout main header and footer
- replace CI's welcome_message.php with home.php listing all podcasts
- add AUTHORS.md file
- add docs folder in which to place castopod's technical documentation
2020-10-15 14:05:36 +00:00

22 lines
920 B
PHP

<?= $this->extend('layouts/default') ?>
<?= $this->section('content') ?>
<h1 class="mb-2 text-xl"><?= lang("Home.all_podcasts") ?> (<?= count($podcasts) ?>)</h1>
<section class="flex flex-wrap">
<?php if ($podcasts) : ?>
<?php foreach ($podcasts as $podcast) : ?>
<a href="/@<?= $podcast->name ?>">
<article class="w-48 p-2 mb-4 mr-4 border shadow-sm hover:bg-gray-100 hover:shadow">
<img alt="<?= $podcast->title ?>" src="<?= $podcast->image ?>" class="object-cover w-full h-40 mb-2" />
<h2 class="font-semibold leading-tight"><?= $podcast->title ?></h2>
<p class="text-gray-600">@<?= $podcast->name ?></p>
</article>
</a>
<?php endforeach ?>
<?php else : ?>
<p class="italic"><?= lang("Home.no_podcast") ?></p>
<?php endif ?>
</section>
<?= $this->endSection() ?>