142 lines
No EOL
9.3 KiB
HTML
142 lines
No EOL
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>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: #aaa; }
|
|
.order-time { text-align: right; }
|
|
.elapsed-time { font-size: 16px; font-weight: 500; color: #888; 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: #666; }
|
|
|
|
.order-info { margin-bottom: 12px; font-size: 13px; color: #999; }
|
|
.order-info div { margin-bottom: 3px; }
|
|
.order-info strong { color: #aaa; }
|
|
|
|
.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; }
|
|
.line-item-main.has-extras { cursor: pointer; }
|
|
.item-name { font-size: 14px; font-weight: 500; color: #aaa; flex: 1; }
|
|
.item-qty { font-size: 14px; font-weight: 600; color: #888; margin-left: 10px; }
|
|
.mod-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; background: #1a1a2e; border-radius: 10px; font-size: 11px; color: #aaa; cursor: pointer; }
|
|
.mod-badge .chevron { font-size: 10px; transition: transform 0.2s; }
|
|
.mod-badge .chevron.open { transform: rotate(180deg); }
|
|
.mod-extras { margin-left: 12px; margin-top: 6px; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
|
|
.mod-extras.open { max-height: 500px; }
|
|
.modifiers { }
|
|
.modifier { font-size: 12px; color: #9a9a9a; margin-bottom: 3px; padding-left: 10px; border-left: 1px solid #444; }
|
|
.item-remark { margin-top: 6px; padding: 6px 8px; background: #1a1500; border-left: 2px solid #f59e0b; font-size: 12px; color: #d4b44a; font-style: italic; }
|
|
.order-remarks { margin-bottom: 12px; padding: 8px; background: #1a0a0a; border-left: 2px solid #ef4444; font-size: 12px; color: #d47; 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; }
|
|
|
|
/* Order type badges */
|
|
.badge-dinein { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #001a2a; color: #38bdf8; border: 1px solid #38bdf833; vertical-align: middle; margin-left: 6px; letter-spacing: 1px; }
|
|
.badge-pickup { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #1a2a00; color: #a3e635; border: 1px solid #a3e63533; vertical-align: middle; margin-left: 6px; letter-spacing: 1px; }
|
|
.badge-delivery { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #2a1a00; color: #fb923c; border: 1px solid #fb923c33; vertical-align: middle; margin-left: 6px; letter-spacing: 1px; }
|
|
|
|
/* Expand toggle */
|
|
.expand-toggle { background: none; border: 1px solid #333; color: #555; padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; margin-bottom: 10px; width: 100%; transition: all 0.2s; }
|
|
.expand-toggle:hover { border-color: #555; color: #888; }
|
|
|
|
/* Other-station items (dimmed) */
|
|
.line-item.other-station { opacity: 0.35; }
|
|
|
|
/* Station-done items */
|
|
.line-item.line-item-done { position: relative; }
|
|
.line-item.line-item-done .item-name { text-decoration: line-through; opacity: 0.5; }
|
|
.line-item.line-item-done .item-qty { opacity: 0.5; }
|
|
.line-item.line-item-done .modifiers { opacity: 0.4; }
|
|
.line-item.line-item-done::after { content: '\2713'; position: absolute; top: 10px; right: 10px; color: #4caf50; font-weight: bold; font-size: 16px; }
|
|
.btn-station-done { background: #002a10; color: #22c55e; border: 1px solid #22c55e33; }
|
|
.btn-station-done:hover { background: #003a15; }
|
|
.btn-station-done:disabled { background: #0a1a0a; color: #2a6a2a; border-color: #1a3a1a; opacity: 0.7; cursor: default; transform: none !important; }
|
|
</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=8"></script>
|
|
</body>
|
|
</html> |