This repository has been archived on 2026-09-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
theme-song-booth/templates/kiosk.html
Troll (Hermes Agent) 52558010e8 Add Live Queue slide to kiosk rotation
- Added a third kiosk slide showing the active customer queue.
- Customer names are derived from the local-part of their email address.
- Statuses are mapped to friendly labels:
    pending -> Received
    prompt_ready / songs_uploaded -> Trollgorithm Recording in Studio
    revisions_requested -> Waiting for Customer Response
    awaiting_payment -> Payment Due
- Completed/delivered statuses are not shown.
- If the queue overflows, a note points customers to the status page.
- Added queue-only mode (kiosk_cycle_seconds = 1) and updated the
  cycle logic to rotate QR -> pricing -> queue.
- Updated /admin/settings help text for the new mode.

Bumps version to 0.5.3.
2026-08-05 20:27:33 +00:00

322 lines
9.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trollgorithm Booth — Kiosk</title>
{% if refresh_seconds and refresh_seconds > 0 %}
<meta http-equiv="refresh" content="{{ refresh_seconds }}">
{% endif %}
<style>
*{box-sizing:border-box;}
html,body{
margin:0;
padding:0;
height:100%;
font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 50%,#0f172a 100%);
color:#f3f4f6;
overflow:hidden;
}
.kiosk{
height:100%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:space-between;
padding:2vh 3vw;
text-align:center;
}
.banner{
width:100%;
max-height:22vh;
object-fit:contain;
border-radius:1rem;
box-shadow:0 10px 40px rgba(0,0,0,.4);
}
.status-pill{
display:inline-block;
margin-top:1.5vh;
padding:.6rem 1.4rem;
border-radius:9999px;
font-weight:700;
font-size:1.2rem;
text-transform:uppercase;
letter-spacing:.05em;
}
.status-open{background:#10b981;color:#000;}
.status-closed{background:#ef4444;color:#000;}
.stage{
flex:1;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
width:100%;
max-width:900px;
margin:2vh 0;
}
.slide{
width:100%;
animation:fadeIn .8s ease;
}
@keyframes fadeIn{
from{opacity:0;transform:translateY(20px);}
to{opacity:1;transform:translateY(0);}
}
.slide.hidden{display:none;}
h1{
margin:0 0 1.5vh 0;
font-size:clamp(2rem,5vw,3.5rem);
color:#60a5fa;
}
.qr-code{
max-height:44vh;
max-width:44vh;
width:auto;
border-radius:1rem;
box-shadow:0 10px 40px rgba(0,0,0,.4);
background:#fff;
padding:.6rem;
}
.qr-caption{
margin-top:1.5vh;
font-size:clamp(1.1rem,2.5vw,1.6rem);
color:#93c5fd;
}
.price-card{
background:rgba(31,41,55,.85);
border:1px solid rgba(96,165,250,.25);
border-radius:1.2rem;
padding:3vh 4vw;
box-shadow:0 15px 50px rgba(0,0,0,.35);
width:100%;
}
.price-card h2{
margin:0 0 2vh 0;
font-size:clamp(1.6rem,4vw,2.6rem);
color:#fbbf24;
}
.price-list{
list-style:none;
margin:0;
padding:0;
text-align:left;
}
.price-list li{
display:flex;
justify-content:space-between;
align-items:center;
border-bottom:1px solid rgba(147,197,253,.2);
padding:1.2vh 0;
font-size:clamp(1.2rem,3vw,1.8rem);
}
.price-list li:last-child{border-bottom:none;}
.price-list .label{color:#e5e7eb;}
.price-list .amount{font-weight:700;color:#fbbf24;}
.price-empty{
font-size:1.3rem;
color:#9ca3af;
}
.queue-card{
background:rgba(31,41,55,.85);
border:1px solid rgba(96,165,250,.25);
border-radius:1.2rem;
padding:3vh 4vw;
box-shadow:0 15px 50px rgba(0,0,0,.35);
width:100%;
max-height:62vh;
display:flex;
flex-direction:column;
}
.queue-card h2{
margin:0 0 2vh 0;
font-size:clamp(1.6rem,4vw,2.6rem);
color:#fbbf24;
}
.queue-list{
list-style:none;
margin:0;
padding:0;
text-align:left;
overflow-y:auto;
flex:1;
}
.queue-list li{
display:flex;
justify-content:space-between;
align-items:center;
border-bottom:1px solid rgba(147,197,253,.2);
padding:1.4vh 0;
font-size:clamp(1.2rem,2.8vw,1.7rem);
}
.queue-list li:last-child{border-bottom:none;}
.queue-list .customer{color:#e5e7eb;font-weight:600;}
.queue-list .status{font-weight:700;color:#60a5fa;text-align:right;}
.queue-empty{
font-size:1.4rem;
color:#9ca3af;
text-align:center;
margin:auto 0;
}
.queue-note{
font-size:1rem;
color:#9ca3af;
margin-top:1.5vh;
text-align:center;
}
.footer{
font-size:1rem;
color:#9ca3af;
}
.dots{
display:flex;
gap:.6rem;
justify-content:center;
margin-top:1vh;
}
.dot{
width:12px;
height:12px;
border-radius:50%;
background:#374151;
transition:background .3s;
}
.dot.active{background:#60a5fa;}
</style>
</head>
<body>
<div class="kiosk">
<div class="header">
{% if booth_open %}
<img src="{{ url_for('static', filename='Trollgorithm_booth.jpg') }}" alt="Trollgorithm Theme Song Booth" class="banner">
<div class="status-pill status-open">Booth is Open ✅</div>
{% else %}
<img src="{{ url_for('static', filename='Booth_closed.png') }}" alt="Booth Closed" class="banner">
<div class="status-pill status-closed">Booth is Closed ❌</div>
{% endif %}
</div>
<div class="stage" id="stage">
{% if mode == 'qr' %}
<div class="slide">
<h1>Scan to Order</h1>
<img src="{{ url_for('static', filename='qr-code.png') }}" alt="Scan to order" class="qr-code">
<p class="qr-caption">Point your camera at the code to start your request.</p>
</div>
{% elif mode == 'prices' %}
<div class="slide">
<div class="price-card">
<h2>Pricing</h2>
{% if price_items %}
<ul class="price-list">
{% for item in price_items %}
<li>
<span class="label">{{ item.label }}</span>
<span class="amount">{{ item.price }}</span>
</li>
{% endfor %}
</ul>
{% else %}
<p class="price-empty">Pricing coming soon. Ask the booth operator!</p>
{% endif %}
</div>
</div>
{% elif mode == 'queue' %}
<div class="slide">
<div class="queue-card">
<h2>Live Queue</h2>
{% if queue %}
<ul class="queue-list">
{% for item in queue %}
<li>
<span class="customer">{{ item.name }}</span>
<span class="status">{{ item.status }}</span>
</li>
{% endfor %}
</ul>
<p class="queue-note">If your request isn't shown, visit the request page and use the status link to check your place.</p>
{% else %}
<p class="queue-empty">No active requests right now. Be the first!</p>
{% endif %}
</div>
</div>
{% else %}
<div class="slide" id="slide-qr">
<h1>Scan to Order</h1>
<img src="{{ url_for('static', filename='qr-code.png') }}" alt="Scan to order" class="qr-code">
<p class="qr-caption">Point your camera at the code to start your request.</p>
</div>
<div class="slide hidden" id="slide-prices">
<div class="price-card">
<h2>Pricing</h2>
{% if price_items %}
<ul class="price-list">
{% for item in price_items %}
<li>
<span class="label">{{ item.label }}</span>
<span class="amount">{{ item.price }}</span>
</li>
{% endfor %}
</ul>
{% else %}
<p class="price-empty">Pricing coming soon. Ask the booth operator!</p>
{% endif %}
</div>
</div>
<div class="slide hidden" id="slide-queue">
<div class="queue-card">
<h2>Live Queue</h2>
{% if queue %}
<ul class="queue-list">
{% for item in queue %}
<li>
<span class="customer">{{ item.name }}</span>
<span class="status">{{ item.status }}</span>
</li>
{% endfor %}
</ul>
<p class="queue-note">If your request isn't shown, visit the request page and use the status link to check your place.</p>
{% else %}
<p class="queue-empty">No active requests right now. Be the first!</p>
{% endif %}
</div>
</div>
{% endif %}
</div>
{% if mode == 'cycle' %}
<div class="footer">
<div class="dots">
<div class="dot active" id="dot-qr"></div>
<div class="dot" id="dot-prices"></div>
<div class="dot" id="dot-queue"></div>
</div>
</div>
<script>
(function(){
const qr = document.getElementById('slide-qr');
const prices = document.getElementById('slide-prices');
const queue = document.getElementById('slide-queue');
const dotQr = document.getElementById('dot-qr');
const dotPrices = document.getElementById('dot-prices');
const dotQueue = document.getElementById('dot-queue');
const seconds = {{ cycle_seconds }};
const slides = [qr, prices, queue];
const dots = [dotQr, dotPrices, dotQueue];
if (seconds > 0) {
let idx = 0;
setInterval(function(){
slides[idx].classList.add('hidden');
dots[idx].classList.remove('active');
idx = (idx + 1) % slides.length;
slides[idx].classList.remove('hidden');
dots[idx].classList.add('active');
}, seconds * 1000);
}
})();
</script>
{% endif %}
</div>
</body>
</html>