diff --git a/dashboard/README.md b/dashboard/README.md index d635d2c..f4e4a44 100644 --- a/dashboard/README.md +++ b/dashboard/README.md @@ -39,6 +39,10 @@ monitor. A thin progress strip at the bottom shows the current scene and what comes next. Override the scene length for testing with `&secs=10` (seconds). +- **Christmas mode**: from 1 December to 6 January the board snows, the + ASSERT wordmark wears a santa hat, and a reindeer gallops along the scene + progress bar (now a candy-cane stripe). Force it with `?xmas=1`, or turn + it off with `?xmas=0`. ## How a member adds their cell diff --git a/dashboard/index.html b/dashboard/index.html index 1225c13..604cea6 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -384,13 +384,64 @@ body.kiosk[data-scene="topics"] #topics { display: flex; } body.kiosk[data-scene="all"] main { display: grid; } body.kiosk[data-scene="focus"] main.focus { display: flex; } + + /* ── christmas mode (1 Dec – 6 Jan, or ?xmas=1 / ?xmas=0) ─────────── */ + .snow, .xmas-hat, .reindeer { display: none; } + body.xmas .snow { + display: block; position: fixed; inset: 0; z-index: 40; + pointer-events: none; overflow: hidden; + } + body.xmas .snow i { + position: absolute; top: -12px; border-radius: 50%; + background: #f2f7ff; will-change: transform; + animation: xmas-fall linear infinite; + } + @keyframes xmas-fall { to { transform: translate(var(--drift), 105vh); } } + + /* a santa hat perched on the "A" of ASSERT */ + .hat-anchor { position: relative; } + body.xmas .xmas-hat { + display: block; position: absolute; pointer-events: none; + width: 1.2em; left: 50%; bottom: 68%; + transform: translateX(-38%) rotate(-14deg); + transform-origin: 50% 100%; + } + body.xmas .xmas-hat svg { display: block; width: 100%; height: auto; } + + /* reindeer galloping along the scene progress bar */ + body.xmas #scenebar { padding-top: 46px; } + body.xmas #scenebar .track { overflow: visible; position: relative; } + body.xmas #scenebar .fill { + border-radius: 2px; + background: repeating-linear-gradient(-45deg, #d0172f 0 6px, #f2f7ff 6px 12px); + } + body.xmas .reindeer { + display: block; position: absolute; bottom: 2px; + /* --p is the scene progress (0–1); the reindeer leads the fill and + stays inside the track, clear of the labels on either side */ + left: calc(var(--p, 0) * (100% - 62px)); + width: 62px; height: 43px; + transition: left .25s linear; + } + .reindeer svg { display: block; width: 100%; height: 100%; overflow: visible; } + .reindeer .bob { animation: rd-bob .5s ease-in-out infinite alternate; } + .reindeer .leg-a { transform-box: fill-box; transform-origin: 50% 0; animation: rd-gallop .5s ease-in-out infinite alternate; } + .reindeer .leg-b { transform-box: fill-box; transform-origin: 50% 0; animation: rd-gallop .5s ease-in-out infinite alternate-reverse; } + .reindeer .nose { animation: rd-glow 1.6s ease-in-out infinite; } + @keyframes rd-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } } + @keyframes rd-gallop { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } } + @keyframes rd-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } } + @media (prefers-reduced-motion: reduce) { + body.xmas .snow { display: none; } + .reindeer .bob, .reindeer .leg-a, .reindeer .leg-b, .reindeer .nose { animation: none; } + }