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
15
public/alerts/raidcard.css
Normal file
15
public/alerts/raidcard.css
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* Outgoing raid send-off card (see raidcard.js): big taped polaroid, top-centre, silent, stays during the countdown. */
|
||||
#raid-card { --ink:#3a2a20; --red:#b74347; position:fixed; left:50%; top:60px; width:340px; margin-left:-170px; z-index:58; visibility:hidden;
|
||||
padding:16px 16px 0; background:#fffdf7; box-shadow:0 16px 34px rgba(0,0,0,.5); }
|
||||
#raid-card * { box-sizing:border-box; }
|
||||
#raid-card:before, #raid-card:after { content:''; position:absolute; top:-15px; width:120px; height:34px; z-index:2;
|
||||
background:rgba(250,170,120,.9); background-image:repeating-linear-gradient(45deg,#fff6 0 8px,#0000 8px 16px); box-shadow:0 1px 2px rgba(0,0,0,.15); }
|
||||
#raid-card:before { left:-30px; transform:rotate(-28deg); }
|
||||
#raid-card:after { right:-30px; transform:rotate(26deg); }
|
||||
#raid-card .ph { height:300px; background:linear-gradient(#ffe6d6,#f8c8a8) ; position:relative; overflow:hidden; }
|
||||
#raid-card .ph img { width:100%; height:100%; object-fit:cover; display:block; }
|
||||
#raid-card .ph img.fallback { object-fit:contain; object-position:bottom; }
|
||||
#raid-card .cap { font:700 32px/1.05 'Caveat', cursive; color:var(--ink); text-align:center; padding:12px 10px 16px; }
|
||||
#raid-card .cap .u { color:var(--red); display:block; font-size:38px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
||||
#raid-card .when { position:absolute; right:-40px; top:28px; padding:6px 14px; background:#e07a45; color:#fff; border:4px solid #fff; border-radius:30px;
|
||||
font:900 20px 'Nunito', sans-serif; letter-spacing:1px; box-shadow:0 6px 10px rgba(0,0,0,.35); transform:rotate(6deg); white-space:nowrap; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue