diff --git a/ads.php b/ads.php index 70c205b..f5f533c 100644 --- a/ads.php +++ b/ads.php @@ -9,7 +9,6 @@ $ads = $stmt->fetchAll(PDO::FETCH_ASSOC); // Get current outlet (default to 1 if not specified) $outlet_id = isset($_GET['outlet_id']) ? (int)$_GET['outlet_id'] : 1; -$debug = isset($_GET['debug']) ? true : false; // Fetch company settings for branding $stmt = $pdo->query("SELECT * FROM company_settings LIMIT 1"); @@ -21,7 +20,7 @@ $companyName = $company['company_name'] ?? 'Foody'; - Now Serving & Ads - <?= htmlspecialchars($companyName) ?> + Now Serving & Promo - <?= htmlspecialchars($companyName) ?> @@ -33,304 +32,218 @@ $companyName = $company['company_name'] ?? 'Foody'; --ready-color: #198754; --preparing-color: #0dcaf0; --bg-dark: #121212; + --card-bg: #1a1a1a; } body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: white; overflow: hidden; - height: 100vh !important; - width: 100vw !important; + height: 100vh; + width: 100vw; margin: 0; padding: 0; } .main-container { display: flex; - height: 100vh !important; - width: 100vw !important; - transition: all 0.5s ease; + height: 100vh; + width: 100vw; + transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); position: relative; - border: ; box-sizing: border-box; } .serving-board { flex: 0 0 35%; - background-color: #1a1a1a; + background-color: var(--card-bg); border-right: 2px solid #333; display: flex; flex-direction: column; - padding: 2rem; - transition: all 0.5s ease; + padding: 2.5rem; + transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 20; overflow: hidden; } - .ads-slider { + .promo-slider-container { flex: 1; position: relative; - background-color: ; + background-color: #000; overflow: hidden; - height: 100vh !important; + height: 100vh; z-index: 10; - border: ; box-sizing: border-box; + transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); } - #adCarousel, .carousel-inner { + #promoCarousel, .carousel-inner, .carousel-item { height: 100% !important; width: 100% !important; position: relative; margin: 0 !important; padding: 0 !important; - } - - .carousel-item { - height: 100% !important; - width: 100% !important; - background-color: ; - } - - .carousel-item.active { - display: block !important; /* Ensure active item is visible */ - } - - .carousel-item img { - display: block !important; - width: 100% !important; - height: 100% !important; - max-width: none !important; - max-height: none !important; - object-fit: contain !important; - opacity: 1 !important; - visibility: visible !important; - border: ; box-sizing: border-box; - background-color: ; - position: relative; - z-index: 50; } - /* Fullscreen Ads Class */ - .fullscreen-ads .serving-board { + .promo-image-element { + display: block; + width: 100%; + height: 100%; + object-fit: contain; + background-color: #000; + } + + /* Fullscreen Promo View */ + .fullscreen-promo .serving-board { flex: 0 0 0% !important; width: 0 !important; padding: 0 !important; margin: 0 !important; border: none !important; - overflow: hidden !important; opacity: 0 !important; - } - .fullscreen-ads .ads-slider { flex: 0 0 100% !important; width: 100% !important; } - - /* Debug styling */ - .debug-panel { - position: absolute; - top: 20px; - left: 20px; - background: rgba(255,0,0,0.95); - color: white; - padding: 15px; - font-family: monospace; - font-size: 14px; - z-index: 999999; - border-radius: 8px; - max-width: 500px; - box-shadow: 0 0 20px rgba(0,0,0,0.5); - } - #on-screen-console { - position: absolute; - bottom: 20px; - left: 20px; - width: 550px; - max-height: 400px; - background: rgba(0,0,0,0.95); - color: #0f0; - font-size: 13px; - padding: 15px; - overflow-y: auto; - z-index: 999999; - border: 3px solid #0f0; - display: ; - } - .debug-marker { - position: absolute; - top: 40px; - right: 40px; - font-size: 4rem; - font-weight: 900; - color: #fff; - z-index: 1000; - background: rgba(0,0,0,0.7); - padding: 20px; pointer-events: none; - border: 4px solid white; } + .fullscreen-promo .promo-slider-container { + flex: 0 0 100% !important; + width: 100% !important; + } + + /* Order Status Styling */ + .board-header { margin-bottom: 2.5rem; } + .board-title { font-weight: 800; font-size: 2.5rem; margin-bottom: 0.5rem; } + .section-title { font-weight: 700; font-size: 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; } + .order-grid { display: flex; flex-wrap: wrap; gap: 12px; } + .order-number { + font-size: 2.5rem; + font-weight: 800; + padding: 12px 24px; + border-radius: 12px; + min-width: 100px; + text-align: center; + box-shadow: 0 4px 15px rgba(0,0,0,0.3); + animation: fadeIn 0.3s ease-out; + } + @keyframes fadeIn { + from { opacity: 0; transform: scale(0.9); } + to { opacity: 1; transform: scale(1); } + } + .empty-msg { font-style: italic; color: #555; } - -
- STRICT DEBUG PANEL
- Ads Found:
- Viewport: ?
-
-
- - - -
-
-
- -

Order Status

-

#

+

• Outlet #

+
-

Ready

-
...
+

Ready

+
Waiting for orders...
+
-

Preparing

-
...
+

Preparing

+
No active orders
+
+ +
+

-
-
+
- - - \ No newline at end of file +