Files
rpigroupplay/pages/page/home.php
T
alexspeakerandClaude Fable 5.1 24391c49ac vers. 3.0.0 - nuova interfaccia app per mobile e desktop
Nuova UI disegnata sul tema RPIGroup Radio Theme dei siti del gruppo:
guscio unico responsive (sidebar e player in basso da 900px, topbar e
tab bar su telefono), player della radio persistente nel dock con
now playing, HLS/MP3, volume e Media Session; pagine radio, tv,
podcast (copertine e programma dal feed), player e pagine di testo
rifatte; icone SVG inline al posto di Bootstrap, jQuery e Material
Icons; font Bricolage Grotesque e Plus Jakarta Sans in locale;
service worker v5, manifest con orientamento libero, icone PWA 192 e
384 rigenerate.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-06 14:56:08 +01:00

164 lines
8.0 KiB
PHP

<?php
$stations = loadRadioStations();
$tv_stations = loadTVStations();
$n_radio = count($stations);
$n_tv = count($tv_stations);
?>
<!-- Apertura: slogan dell'app, accesso rapido a radio e TV -->
<section class="hero">
<div class="hero-bg" aria-hidden="true">
<span class="blob blob-a"></span>
<span class="blob blob-b"></span>
<?= rpi_motivo('hero-motivo') ?>
</div>
<div class="container hero-inner">
<span class="chip chip-live hero-chip"><span class="live-dot"></span> In diretta ora</span>
<h1 class="hero-title">Un nuovo modo di <span class="hl">ascoltare musica.</span></h1>
<p class="hero-lead">Benvenuto in RPIGroup Play: le radio e le web TV del gruppo RPIGroup in un'unica app, con i podcast da riascoltare quando vuoi.</p>
</div>
</section>
<div class="page home-page">
<div class="container">
<!-- Le tre sezioni, sovrapposte al fondo dell'apertura -->
<section class="tiles" aria-label="Sezioni dell'app">
<a href="<?= rpi_link('radio') ?>" data-page="radio" class="card card-link tile">
<span class="tile-icon"><?= rpi_icon('radio', 24) ?></span>
<span class="tile-text">
<strong>Radio</strong>
<span><?= $n_radio ?> <?= $n_radio === 1 ? 'emittente' : 'emittenti' ?> in diretta</span>
</span>
<?= rpi_icon('arrow-right', 20, 'tile-arrow') ?>
</a>
<a href="<?= rpi_link('tv') ?>" data-page="tv" class="card card-link tile">
<span class="tile-icon"><?= rpi_icon('tv', 24) ?></span>
<span class="tile-text">
<strong>TV</strong>
<span><?= $n_tv ?> <?= $n_tv === 1 ? 'canale' : 'canali' ?> in streaming</span>
</span>
<?= rpi_icon('arrow-right', 20, 'tile-arrow') ?>
</a>
<a href="<?= rpi_link('podcast') ?>" data-page="podcast" class="card card-link tile">
<span class="tile-icon"><?= rpi_icon('mic', 24) ?></span>
<span class="tile-text">
<strong>Podcast</strong>
<span>Riascolta le dirette</span>
</span>
<?= rpi_icon('arrow-right', 20, 'tile-arrow') ?>
</a>
</section>
<?php if ($n_radio > 0): ?>
<section class="section-sm">
<div class="section-head">
<div>
<span class="eyebrow">Radio</span>
<h2>Le emittenti</h2>
</div>
<a href="<?= rpi_link('radio') ?>" data-page="radio" class="btn btn-ghost btn-sm">
Tutte le radio <?= rpi_icon('arrow-right', 16) ?>
</a>
</div>
<div class="station-grid">
<?php foreach ($stations as $st): ?>
<a href="<?= rpi_link('play/' . $st->id) ?>" data-page="play/<?= $st->id ?>" class="card card-link station-card">
<span class="cover">
<img src="<?= htmlspecialchars($st->logo) ?>" alt="" loading="lazy" decoding="async">
<span class="play" aria-hidden="true"><?= rpi_icon('play', 18) ?></span>
<?php if ((string)$st->thematic === 'true'): ?><span class="chip chip-accent thematic">Tematica</span><?php endif; ?>
</span>
<span class="body">
<h3><?= htmlspecialchars($st->name) ?></h3>
<p><?= htmlspecialchars($st->slogan) ?></p>
</span>
</a>
<?php endforeach; ?>
</div>
</section>
<?php endif; ?>
<?php if ($n_tv > 0): ?>
<section class="section-sm">
<div class="section-head">
<div>
<span class="eyebrow">Web TV</span>
<h2>Guarda la diretta</h2>
</div>
</div>
<div class="station-grid tv-grid">
<?php foreach ($tv_stations as $st): ?>
<a href="<?= rpi_link('playtv/' . $st->id) ?>" data-page="playtv/<?= $st->id ?>" class="card card-link station-card is-tv">
<span class="cover">
<img src="<?= htmlspecialchars(!empty($st->poster) ? $st->poster : $st->logo) ?>" alt="" loading="lazy" decoding="async">
<span class="play" aria-hidden="true"><?= rpi_icon('play', 18) ?></span>
<span class="chip chip-live tv-chip"><span class="live-dot"></span> Live</span>
</span>
<span class="body">
<h3><?= htmlspecialchars($st->name) ?></h3>
<p>Web TV in streaming</p>
</span>
</a>
<?php endforeach; ?>
</div>
</section>
<?php endif; ?>
<section class="section-sm">
<div class="section-head">
<div>
<span class="eyebrow">Scopri</span>
<h2>Informazioni</h2>
</div>
</div>
<div class="shortcut-grid">
<a href="<?= rpi_link('page/about') ?>" data-page="page/about" class="card card-link shortcut">
<span class="shortcut-icon"><?= rpi_icon('help', 22) ?></span>
<strong>Come funziona?</strong>
<span>Guida all'uso e installazione dell'app</span>
<?= rpi_icon('arrow-right', 20, 'shortcut-arrow') ?>
</a>
<a href="<?= rpi_link('page/copyright') ?>" data-page="page/copyright" class="card card-link shortcut">
<span class="shortcut-icon"><?= rpi_icon('copyright', 22) ?></span>
<strong>Diritti d'autore</strong>
<span>Licenze e segnalazioni</span>
<?= rpi_icon('arrow-right', 20, 'shortcut-arrow') ?>
</a>
<a href="<?= rpi_link('page/contact') ?>" data-page="page/contact" class="card card-link shortcut">
<span class="shortcut-icon"><?= rpi_icon('mail', 22) ?></span>
<strong>I nostri contatti</strong>
<span>Scrivici per domande e suggerimenti</span>
<?= rpi_icon('arrow-right', 20, 'shortcut-arrow') ?>
</a>
</div>
</section>
<section class="section-sm partner-grid">
<a href="https://www.co-municare.it" target="_blank" rel="noopener" class="card card-link partner-card">
<span class="eyebrow">Dal gruppo RPIGroup</span>
<img src="https://www.co-municare.it/wp-content/uploads/2025/01/newlogo_co-municare-it.png" alt="Co-Municare.it" loading="lazy" decoding="async">
<span class="partner-link">Visita co-municare.it <?= rpi_icon('external', 16) ?></span>
</a>
<a href="https://drive.asv.ovh/apps/forms/s/Zfk8cJk3oCz2Y2dHyWdEcgL7" target="_blank" rel="noopener" class="card card-link feedback-card">
<span class="shortcut-icon"><?= rpi_icon('message', 22) ?></span>
<strong>Lascia un feedback</strong>
<span>Dicci cosa ne pensi dell'app: idee, problemi, consigli.</span>
<span class="partner-link">Apri il modulo <?= rpi_icon('external', 16) ?></span>
</a>
</section>
<!-- Su telefono i link legali stanno qui; su computer sono nella sidebar -->
<footer class="mobile-footer">
<nav class="legal-links" aria-label="Informazioni legali">
<?php foreach (rpi_legal_links() as $l): ?>
<a href="<?= rpi_link($l['page']) ?>" data-page="<?= $l['page'] ?>"><?= $l['label'] ?></a>
<?php endforeach; ?>
</nav>
<p>© <?= date('Y') ?> RPIGroup · Versione <?= htmlspecialchars($version_app) ?><br>App powered by A.S.V. Studios APPS</p>
</footer>
</div>
</div>