| 12345678910111213141516171819202122232425 |
- <?php
- /**
- * Showreel: selected portfolio images, one per viewport, scroll-snap.
- * Images are local files in media/, shown in the order configured
- * in the admin backoffice.
- */
- require __DIR__ . '/app/bootstrap.php';
- $site = site_get();
- $images = $site['showreel'] ?? [];
- public_header('Showreel · ' . ($site['intro_title'] ?: config('site.name', '')), 'showreel', 'reel-page');
- if (!$images): ?>
- <div class="reel-empty">No images in the showreel yet.</div>
- <?php else:
- foreach ($images as $i => $file): ?>
- <section class="reel-slide">
- <img src="media/<?= e(rawurlencode($file)) ?>" alt=""
- <?= $i === 0 ? 'fetchpriority="high"' : 'loading="lazy"' ?>>
- </section>
- <?php endforeach;
- endif;
- public_footer();
|