Overlay: cassette redeems, emote effects, poll card, Hype Train bar, raid card
New overlay modules (taped-paper look, shared with the polaroid alerts): - cassette.js: redeems as a cassette tape; rarity = shell colour (Ultra Rare gold with glow, foil and sparkles), reels spin for the sound's length, sticker corner. - fx.js: Gigantify (viewer's emote grows giant), On-Screen Celebration (emote copies bounce around the screen), highlight / Message Effect (tall taped note). - poll.js: live poll card with bars, countdown and a WINNER stamp. - hypebar.js: persistent Hype Train strip (level, progress, time left). - raidcard.js: silent raid send-off card that stays during the raid countdown. - nowplaying.js: Feishin now-playing slip (not loaded yet, see overlay). polaroid.js: shared queue now also drives cassettes/effects; test alerts replace only other tests and never cut off real alerts; alerts stay up for the animation + 3 s or the sound's length; sound lengths measured in the browser for UI-picked sounds; tip and Hype Train alerts; optional ALERTS_BASE for offline test pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8c649c5bce
commit
1766e37336
14 changed files with 774 additions and 18 deletions
14
public/alerts/hypebar.css
Normal file
14
public/alerts/hypebar.css
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* Hype Train progress strip (see hypebar.js): slim taped paper, top-left above the alert corner. */
|
||||
#hype-bar { --ink:#3a2a20; --red:#b74347; --fill:#f8a070; position:fixed; left:85px; top:14px; width:440px; z-index:60; visibility:hidden;
|
||||
padding:8px 16px 10px; background:#fffdf7; box-shadow:0 8px 18px rgba(0,0,0,.4); transform-origin:50% 0; }
|
||||
#hype-bar.golden { --fill:#f2c040; background:#fff8e2; }
|
||||
#hype-bar * { box-sizing:border-box; }
|
||||
#hype-bar:before { content:''; position:absolute; left:50%; top:-12px; width:90px; height:26px; margin-left:-45px; transform:rotate(-2deg);
|
||||
background:rgba(250,170,120,.88); background-image:repeating-linear-gradient(45deg,#fff6 0 7px,#0000 7px 14px); }
|
||||
#hype-bar.golden:before { background-color:rgba(246,206,110,.95); }
|
||||
#hype-bar .top { display:flex; justify-content:space-between; align-items:baseline; font:900 15px 'Nunito', sans-serif; letter-spacing:2px; color:var(--ink); }
|
||||
#hype-bar .lv { color:var(--red); }
|
||||
#hype-bar .time { font:700 22px 'Caveat', cursive; letter-spacing:0; color:#7a6656; }
|
||||
#hype-bar .track { margin-top:5px; height:16px; border:3px solid var(--ink); border-radius:10px; background:#fff; overflow:hidden; }
|
||||
#hype-bar .fill { height:100%; width:0; background-color:var(--fill); transition:width .7s cubic-bezier(.3,.7,.4,1);
|
||||
background-image:repeating-linear-gradient(45deg,#fff5 0 6px,#0000 6px 12px); }
|
||||
Loading…
Add table
Add a link
Reference in a new issue