This repository has been archived on 2026-03-21. You can view files and clone it, but cannot push or open issues or pull requests.
payfrit-biz/kds/index.html
John Mizerek 8c247eb000 KDS: Dark minimal theme matching HUD, fix updateStatus column names
- Redesign KDS with HUD-matching dark theme (pure black background)
- Header styling identical to HUD: position, font, clock format
- Status indicator moved to bottom-right corner like HUD
- Remove business ID config - now uses portal localStorage only
- Keep station toggle functionality
- Fix updateStatus.cfm: use correct column names for dev DB
  (sp.Name instead of sp.ServicePointName, sp.ID instead of sp.ServicePointID)
- Use relative API URL instead of hardcoded production URL

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-06 17:45:11 -08:00

114 lines
No EOL
7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payfrit KDS</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #000; color: #fff; height: 100vh; overflow-x: hidden; }
/* Header - identical to HUD */
.header { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.header h1 { font-size: 14px; font-weight: 300; color: #666; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.clock { font-size: 24px; font-weight: 200; color: #444; }
.btn-config { background: transparent; border: 1px solid #444; color: #666; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.2s; margin-left: 16px; }
.btn-config:hover { border-color: #666; color: #888; }
/* Status indicator - identical to HUD */
.status-indicator { position: fixed; bottom: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.status-indicator.disconnected { background: #ef4444; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
/* Orders grid */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 15px; padding: 80px 20px 40px 20px; }
/* Order cards - subtle, dark */
.order-card { background: #111; border-radius: 8px; padding: 16px; border-left: 3px solid #333; transition: all 0.3s ease; }
.order-card.new { border-left-color: #3b82f6; }
.order-card.preparing { border-left-color: #f59e0b; }
.order-card.ready { border-left-color: #22c55e; }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #222; }
.order-number { font-size: 18px; font-weight: 600; color: #888; }
.order-time { text-align: right; }
.elapsed-time { font-size: 16px; font-weight: 500; color: #555; margin-bottom: 2px; }
.elapsed-time.warning { color: #f59e0b; }
.elapsed-time.critical { color: #ef4444; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.submit-time { font-size: 11px; color: #444; }
.order-info { margin-bottom: 12px; font-size: 13px; color: #555; }
.order-info div { margin-bottom: 3px; }
.order-info strong { color: #666; }
.line-items { margin-bottom: 15px; }
.line-item { margin-bottom: 10px; padding: 10px; background: #0a0a0a; border-radius: 6px; }
.line-item-main { display: flex; justify-content: space-between; align-items: flex-start; }
.item-name { font-size: 14px; font-weight: 500; color: #aaa; flex: 1; }
.item-qty { font-size: 14px; font-weight: 600; color: #666; margin-left: 10px; }
.modifiers { margin-left: 12px; margin-top: 6px; }
.modifier { font-size: 12px; color: #555; margin-bottom: 3px; padding-left: 10px; border-left: 1px solid #333; }
.item-remark { margin-top: 6px; padding: 6px 8px; background: #1a1500; border-left: 2px solid #f59e0b; font-size: 12px; color: #a58a2a; font-style: italic; }
.order-remarks { margin-bottom: 12px; padding: 8px; background: #1a0a0a; border-left: 2px solid #ef4444; font-size: 12px; color: #a55; font-style: italic; }
.action-buttons { display: flex; gap: 8px; }
.btn { flex: 1; padding: 10px; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-start { background: #2a2000; color: #f59e0b; border: 1px solid #f59e0b33; }
.btn-start:hover { background: #3a2a00; }
.btn-ready { background: #002a10; color: #22c55e; border: 1px solid #22c55e33; }
.btn-ready:hover { background: #003a15; }
.btn-complete { background: #001a2a; color: #3b82f6; border: 1px solid #3b82f633; }
.btn-complete:hover { background: #002a3a; }
.empty-state { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #333; }
.empty-state svg { width: 60px; height: 60px; margin-bottom: 15px; opacity: 0.3; }
.empty-state h2 { font-size: 18px; margin-bottom: 8px; font-weight: 400; }
.empty-state p { font-size: 14px; color: #444; }
/* Station Selection Overlay */
.station-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1000; }
.station-overlay.hidden { display: none; }
.station-overlay h1 { font-size: 14px; font-weight: 300; color: #666; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.station-overlay p { font-size: 14px; color: #444; margin-bottom: 40px; }
.station-buttons { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; max-width: 600px; }
.station-btn { width: 150px; height: 100px; border: 1px solid #333; background: #111; border-radius: 8px; font-size: 14px; font-weight: 500; color: #888; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.station-btn:hover { border-color: #555; color: #fff; background: #1a1a1a; }
.station-btn.all-stations { border-color: #3b82f633; color: #3b82f6; }
.station-btn.all-stations:hover { border-color: #3b82f6; background: #001a2a; }
.station-btn svg { width: 24px; height: 24px; opacity: 0.5; }
.station-name-display { font-size: 11px; color: #555; margin-left: 8px; text-transform: uppercase; letter-spacing: 1px; }
</style>
</head>
<body>
<!-- Station Selection Overlay -->
<div class="station-overlay hidden" id="stationOverlay">
<h1>Select Station</h1>
<p>Choose which station to display orders for</p>
<div class="station-buttons" id="stationButtons"></div>
</div>
<div class="header">
<h1>Payfrit KDS<span id="businessName"></span><span id="stationBadge"></span></h1>
<div style="display: flex; align-items: center;">
<div class="clock" id="clock">--:--:--</div>
<button class="btn-config" onclick="showStationSelection()">Station</button>
</div>
</div>
<div class="status-indicator" id="statusIndicator"></div>
<div class="orders-grid" id="ordersGrid">
<div class="empty-state">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
</svg>
<h2>No Active Orders</h2>
<p>New orders will appear here automatically</p>
</div>
</div>
<script src="kds.js?v=5"></script>
</body>
</html>