mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-29 09:23:16 -06:00
Self-contained examples for the PiP overlay API (POST /api/pip), each with a CSP-safe query-param overlay (external JS), config.example.json, zero runtime deps, an offline test, and a README: - PIP-Announce-Broadcast manual one-shot message to a screen/group - PIP-Weather-Widget Open-Meteo current conditions (keyless) - PIP-Air-Quality Open-Meteo US AQI widget (keyless) - PIP-Crypto-Ticker CoinGecko price strip (keyless) - PIP-News-Ticker scrolling RSS/Atom headlines - PIP-Room-Status-Calendar ICS-driven Available/Busy room sign - PIP-Event-Countdown client-side countdown, auto-clears at zero - PIP-Welcome-Board rotating welcome/birthday cards from CSV - PIP-Fundraiser-Thermometer goal-progress bar from local/URL JSON - PIP-QR-Rotator rotating QR codes, encoded client-side - PIP-Incident-Webhook event-driven: red on firing, clear on resolved Also includes the CAP-AU (NSW RFS) and US NWS/NOAA emergency-alert monitors that push expiry-aware PiP overlays. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
47 lines
2.2 KiB
HTML
47 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Fundraiser Thermometer</title>
|
|
<style>
|
|
html, body { margin: 0; height: 100%; background: transparent; }
|
|
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; }
|
|
.card { flex: 1; display: flex; flex-direction: column; background: #1a1a1a; color: #fff;
|
|
border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.45);
|
|
padding: 18px 22px; box-sizing: border-box; }
|
|
.campaign { font-size: clamp(16px, 4vw, 26px); font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
|
|
.stage { flex: 1; display: flex; align-items: stretch; gap: 18px; margin: 14px 0 10px; }
|
|
/* vertical thermometer */
|
|
.thermo { width: 30%; min-width: 64px; display: flex; align-items: flex-end; }
|
|
.tube { position: relative; width: 100%; height: 100%; background: #2c2c2c; border-radius: 999px;
|
|
overflow: hidden; border: 2px solid #3a3a3a; }
|
|
.fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0;
|
|
background: linear-gradient(0deg, #1f9d55, #36d07f);
|
|
transition: height 1.1s cubic-bezier(.22,.9,.31,1); }
|
|
.readout { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
|
|
.pct { font-size: clamp(34px, 12vw, 72px); font-weight: 800; line-height: 1; color: #36d07f; }
|
|
.pct.done { color: #ffd24a; }
|
|
.amounts { font-size: clamp(15px, 3.4vw, 22px); }
|
|
.amounts b { font-weight: 800; }
|
|
.amounts .of { color: #b9b9b9; font-weight: 500; }
|
|
.footer { font-size: clamp(12px, 2.4vw, 16px); color: #9a9a9a; }
|
|
.done-banner { color: #ffd24a; font-weight: 800; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<div class="campaign" id="campaign">Fundraiser</div>
|
|
<div class="stage">
|
|
<div class="thermo"><div class="tube"><div class="fill" id="fill"></div></div></div>
|
|
<div class="readout">
|
|
<div class="pct" id="pct">0%</div>
|
|
<div class="amounts"><b id="raised">$0</b> <span class="of">of</span> <b id="goal">$0</b></div>
|
|
</div>
|
|
</div>
|
|
<div class="footer" id="footer"></div>
|
|
</div>
|
|
<script src="thermo-overlay.js"></script>
|
|
</body>
|
|
</html>
|