Files
xenia-pos-local/terminal/src/index.css
T
bonaminandClaude Opus 5.5 e612e2436c feat(terminal): the signage player: playlists on a TV, offline, transitions, rotation (platform-v2 step 5.5a)
- terminal/src/apps/signage: plays the screen's playlist (or the one its
  schedule picks now, switching by itself) full screen: slides in order with
  their time, a video to its end (a 15 min safety limit), only in their days /
  hours / dates; transitions fade / slide / zoom / none (CSS, reduced motion
  respected); the frame turned 90/180/270 for a TV mounted sideways. Picture,
  video and text slides drawn; a first menu board (5.5b lays it out fully).
- Offline: the last GET /api/signage/screen kept in localStorage, every
  picture and video (up to 120 MB) as an in-memory copy; reads again on
  signage.changed / device.updated / reconnect / every 5 min.
- logic.js: the server's schedule pick ported (same test cases), slide windows,
  next slide, frame; tests/signage.test.mjs (6).
- Signage screens get no offline banner over the slides, a small mark instead
  (registry QUIET_OFFLINE).
- e2e signage.mjs (in run-all): a paired TV plays picture → text → video →
  menu in order, the text's slide transition, rotation, keeps playing with the
  server stopped (mark, no banner), catches up when it is back. terminal.mjs
  passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 19:40:35 +02:00

38 lines
1.6 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html, body, #root { height: 100%; }
body {
margin: 0;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
background: var(--x-surface-2);
color: var(--x-ink);
/* shared screens are touched, not clicked: no text selection or callouts by accident */
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
input, textarea { -webkit-user-select: text; user-select: text; }
}
/* Signage transitions (plan step 5.5a): the new slide comes in over the old one going out. */
.sg-in, .sg-out { animation-fill-mode: both; animation-timing-function: ease-in-out; }
.sg-out { z-index: 0; }
.sg-in { z-index: 1; }
.sg-in-fade { animation-name: sg-fade-in; }
.sg-out-fade { animation-name: sg-fade-out; }
.sg-in-slide { animation-name: sg-slide-in; }
.sg-out-slide { animation-name: sg-slide-out; }
.sg-in-zoom { animation-name: sg-zoom-in; }
.sg-out-zoom { animation-name: sg-fade-out; }
.sg-in-none, .sg-out-none { animation: none; }
.sg-out-none { display: none; }
@keyframes sg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sg-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sg-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes sg-slide-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes sg-zoom-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sg-in, .sg-out { animation: none; } .sg-out { display: none; } }