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>
This commit is contained in:
alexspeakerandClaude Fable 5.1 committed 2026-11-06 14:56:08 +01:00
1 parent 0ee93d3b75
commit 24391c49ac
58 files changed
+5226 -16550

No files matched your search

+38 -29
View File
@@ -1,29 +1,38 @@
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
<?php
// views/home.php - Vista della pagina principale
$stations = loadRadioStations();
?>
<div class="radio-header" style="padding: 20px; margin: 0 0 20px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between;position: sticky;top: 0px;background: white;">
<div class="left-controls" style="display: flex; align-items: center;">
<a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox" style="color: #333; display: flex; align-items: center; text-decoration: none;">
<span class="material-icons" style="font-size: 28px;">arrow_back</span>
</a>
<span style="font-size: 18px; font-weight: 600; color: #333; margin-left: 15px;">Radio</span>
</div>
</div>
<div class="stationList px-4">
<div class="row g-2">
<?php foreach ($stations as $station): ?>
<div class="col-6">
<div class="stationCard <?php if((string)$station->thematic === 'true'){echo "isthematic";} ?>" data-id="<?php echo $station->id; ?>">
<a href="<?php echo $base_path; ?>/play/<?php echo $station->id; ?>" data-page="play/<?php echo $station->id; ?>" class="nav-link stationLink">
<img src="<?php echo $station->logo; ?>" alt="<?php echo $station->name; ?>" class="stationLogo">
</a>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
<?php
$stations = loadRadioStations();
rpi_page_header([
'eyebrow' => 'Radio',
'title' => 'Le radio del gruppo',
'subtitle' => 'Scegli l\'emittente: la diretta parte subito e continua mentre navighi nell\'app.',
'back' => ['page' => 'home', 'label' => 'Home'],
]);
?>
<div class="page">
<div class="container">
<?php if (count($stations) > 0): ?>
<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>
<?php else: ?>
<div class="empty-state">
<?= rpi_icon('radio', 40) ?>
<p>Nessuna radio disponibile al momento.</p>
</div>
<?php endif; ?>
</div>
</div>