-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator.html
More file actions
303 lines (302 loc) · 15.4 KB
/
operator.html
File metadata and controls
303 lines (302 loc) · 15.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!DOCTYPE html>
<html class="light" lang="en"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>QueueFlow Operator Control Panel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com" rel="preconnect"/>
<link crossorigin="" href="https://fonts.gstatic.com" rel="preconnect"/>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap" rel="stylesheet"/>
<!-- Icons -->
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,[email protected],0..1&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,[email protected],0..1&display=swap" rel="stylesheet"/>
<!-- Tailwind -->
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
"on-tertiary-container": "#fffbff",
"on-primary": "#ffffff",
"primary-fixed-dim": "#c0c1ff",
"background": "#f7f9fb",
"surface-container": "#eceef0",
"error": "#ba1a1a",
"on-tertiary-fixed": "#301400",
"error-container": "#ffdad6",
"on-error": "#ffffff",
"primary-fixed": "#e1e0ff",
"surface-bright": "#f7f9fb",
"primary": "#4648d4",
"tertiary-container": "#b55d00",
"surface-dim": "#d8dadc",
"inverse-primary": "#c0c1ff",
"surface": "#f7f9fb",
"tertiary-fixed": "#ffdcc5",
"surface-tint": "#494bd6",
"on-secondary": "#ffffff",
"inverse-surface": "#2d3133",
"secondary": "#575992",
"surface-variant": "#e0e3e5",
"surface-container-low": "#f2f4f6",
"outline-variant": "#c7c4d7",
"on-surface-variant": "#464554",
"on-surface": "#191c1e",
"on-secondary-container": "#494b83",
"tertiary": "#904900",
"on-primary-fixed": "#07006c",
"tertiary-fixed-dim": "#ffb783",
"inverse-on-surface": "#eff1f3",
"secondary-fixed": "#e1e0ff",
"secondary-fixed-dim": "#c0c1ff",
"on-secondary-fixed": "#13144a",
"on-primary-fixed-variant": "#2f2ebe",
"surface-container-high": "#e6e8ea",
"secondary-container": "#bdbefe",
"on-background": "#191c1e",
"surface-container-lowest": "#ffffff",
"primary-container": "#6063ee",
"outline": "#767586",
"on-secondary-fixed-variant": "#404178",
"on-tertiary-fixed-variant": "#703700",
"on-primary-container": "#fffbff",
"on-error-container": "#93000a",
"on-tertiary": "#ffffff",
"surface-container-highest": "#e0e3e5"
},
fontFamily: {
"headline": ["Manrope"],
"body": ["Inter"],
"label": ["Inter"]
},
borderRadius: {"DEFAULT": "1rem", "lg": "2rem", "xl": "3rem", "full": "9999px"},
},
},
}
</script>
<style>
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.pulse-ring {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: .4; }
}
</style>
</head>
<body class="bg-background font-body text-on-surface antialiased">
<!-- Side Navigation Bar (Anchor) -->
<aside class="h-screen w-64 fixed left-0 top-0 border-r-0 bg-slate-50 dark:bg-slate-950 flex flex-col gap-2 p-4 h-full z-40 hidden md:flex">
<div class="px-4 py-6 mb-4">
<h1 class="text-lg font-black text-slate-900 dark:text-slate-50 font-headline">QueueFlow</h1>
<p class="text-xs text-slate-500 font-medium mt-1">Operator: Active</p>
</div>
<nav class="flex flex-col gap-2">
<a class="flex items-center gap-3 px-4 py-3 bg-white dark:bg-slate-900 text-indigo-600 dark:text-indigo-400 rounded-2xl shadow-sm active:translate-x-1 duration-150 font-manrope text-sm font-medium" href="#">
<span class="material-symbols-outlined" data-icon="queue">queue</span>
<span>Live Queue</span>
</a>
<a class="flex items-center gap-3 px-4 py-3 text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 transition-all font-manrope text-sm font-medium" href="#">
<span class="material-symbols-outlined" data-icon="dashboard">dashboard</span>
<span>Dashboard</span>
</a>
<a class="flex items-center gap-3 px-4 py-3 text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 transition-all font-manrope text-sm font-medium" href="#">
<span class="material-symbols-outlined" data-icon="history">history</span>
<span>History</span>
</a>
<a class="flex items-center gap-3 px-4 py-3 text-slate-500 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-100 transition-all font-manrope text-sm font-medium" href="#">
<span class="material-symbols-outlined" data-icon="settings">settings</span>
<span>Settings</span>
</a>
</nav>
<div class="mt-auto p-4 bg-surface-container-low rounded-xl">
<div class="flex items-center gap-3 mb-3">
<div class="w-10 h-10 rounded-full overflow-hidden bg-slate-200">
<img class="w-full h-full object-cover" data-alt="professional portrait of a friendly male service operator in a clean minimalist environment" src="https://lh3.googleusercontent.com/aida-public/AB6AXuA5vfFsFjb_9wz63ZrOtR-yq7Vwr3C7vQLw8v5XAQUtRHimdug9OBTQAq2n0uh0RgbwmVDjQNYa_hkbDf6Y2-PuCqIBmGeh-8q4ilt-n7O3apFTnm0trEwCdIgpYisJC2BEkohrIPKdm3aQRsueAQSX1tP8l1QUKIorRN6OBVHEY5iAcZsDb6VxgO3qiFvWMopUrdxV1FjzHZJ2Wtcwnf9VY62KpeYgfotJ8NhOhIgGMzuBbddnidPJY8fsAiAV7orjbM1ZGZSGF4hT"/>
</div>
<div>
<p class="text-xs font-bold text-on-surface">Counter 04</p>
<p class="text-[10px] text-on-surface-variant">ID: OP-9421</p>
</div>
</div>
<button class="w-full py-2 bg-primary text-on-primary rounded-lg text-xs font-semibold hover:opacity-90 transition-opacity">
Call Next Guest
</button>
</div>
</aside>
<!-- Top App Bar (Anchor) -->
<header class="fixed top-0 w-full z-50 bg-slate-50/80 dark:bg-slate-900/80 backdrop-blur-xl shadow-sm dark:shadow-none flex justify-between items-center px-6 py-3 w-full md:pl-72">
<div class="flex items-center gap-4">
<span class="md:hidden font-bold text-primary">QF</span>
<div class="flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-primary pulse-ring"></div>
<span class="text-sm font-headline font-semibold text-on-surface tracking-tight">Live Session</span>
</div>
</div>
<div class="flex items-center gap-4">
<button class="p-2 text-slate-500 hover:bg-slate-200/50 dark:hover:bg-slate-800/50 rounded-full transition-colors active:scale-95 duration-200">
<span class="material-symbols-outlined" data-icon="notifications">notifications</span>
</button>
<button class="p-2 text-slate-500 hover:bg-slate-200/50 dark:hover:bg-slate-800/50 rounded-full transition-colors active:scale-95 duration-200">
<span class="material-symbols-outlined" data-icon="account_circle">account_circle</span>
</button>
</div>
</header>
<!-- Main Content Canvas -->
<main class="pt-20 pb-12 px-6 md:pl-72 md:pr-12 min-h-screen">
<div class="max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-12 gap-8">
<!-- Left Column: Primary Control Panel -->
<section class="lg:col-span-7 flex flex-col gap-6">
<!-- Serving Status Hero -->
<div class="bg-surface-container-lowest rounded-xl p-8 shadow-[0_20px_40px_rgba(70,72,212,0.06)] flex flex-col items-center text-center relative overflow-hidden">
<div class="absolute top-0 left-0 w-full h-1 bg-primary"></div>
<span class="font-label text-xs uppercase tracking-[0.1em] text-on-surface-variant mb-2">Current Serving</span>
<div class="my-6">
<span class="font-headline text-[7rem] leading-none font-extrabold text-primary tracking-tighter">042</span>
</div>
<div class="flex flex-col items-center gap-1 mb-10">
<h2 class="font-headline text-2xl font-bold text-on-surface">Elena Jovic</h2>
<div class="flex items-center gap-2 px-3 py-1 bg-secondary-container text-on-secondary-container rounded-full text-xs font-semibold">
<span class="material-symbols-outlined text-sm" data-icon="person">person</span>
Service: Account Recovery
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4 w-full">
<button class="sm:col-span-2 py-5 bg-primary text-on-primary rounded-lg font-headline text-lg font-bold shadow-[0_10px_20px_rgba(70,72,212,0.2)] hover:scale-[1.02] active:scale-95 transition-all">
Call Next Client
</button>
<button class="py-4 bg-surface-container-low text-on-surface-variant rounded-lg font-bold hover:bg-surface-container transition-colors">
Skip
</button>
<button class="py-4 bg-tertiary-container/10 text-tertiary-container rounded-lg font-bold hover:bg-tertiary-container/20 transition-colors">
Mark as Completed
</button>
</div>
</div>
<!-- Session Metrics (Bento Style) -->
<div class="grid grid-cols-2 sm:grid-cols-3 gap-4">
<div class="bg-surface-container-low p-5 rounded-lg">
<p class="text-[10px] font-label uppercase tracking-wider text-on-surface-variant mb-1">Session Time</p>
<p class="text-xl font-headline font-bold">14:22</p>
</div>
<div class="bg-surface-container-low p-5 rounded-lg">
<p class="text-[10px] font-label uppercase tracking-wider text-on-surface-variant mb-1">Avg Service</p>
<p class="text-xl font-headline font-bold">06:45</p>
</div>
<div class="bg-surface-container-low p-5 rounded-lg col-span-2 sm:col-span-1">
<p class="text-[10px] font-label uppercase tracking-wider text-on-surface-variant mb-1">Clients Served</p>
<p class="text-xl font-headline font-bold">28</p>
</div>
</div>
</section>
<!-- Right Column: Queue Preview -->
<section class="lg:col-span-5">
<div class="flex items-center justify-between mb-6 px-2">
<h3 class="font-headline text-xl font-bold text-on-surface">Up Next <span class="text-primary font-medium text-base ml-1">(5 in queue)</span></h3>
<button class="text-primary text-sm font-semibold hover:underline">View All</button>
</div>
<div class="flex flex-col gap-3">
<!-- Queue Item 1 -->
<div class="group bg-surface-container-lowest p-5 rounded-lg flex items-center justify-between transition-all hover:shadow-md border-l-4 border-error">
<div class="flex items-center gap-4">
<span class="font-headline text-xl font-extrabold text-on-surface-variant group-hover:text-primary transition-colors">043</span>
<div>
<h4 class="font-semibold text-on-surface">Marko Vidic</h4>
<p class="text-xs text-on-surface-variant">Est. wait: 2 mins</p>
</div>
</div>
<div class="px-2 py-1 bg-error-container text-on-error-container rounded text-[10px] font-bold uppercase tracking-wider">
Emergency
</div>
</div>
<!-- Queue Item 2 -->
<div class="group bg-surface-container-lowest p-5 rounded-lg flex items-center justify-between transition-all hover:shadow-md border-l-4 border-tertiary-container">
<div class="flex items-center gap-4">
<span class="font-headline text-xl font-extrabold text-on-surface-variant group-hover:text-primary transition-colors">044</span>
<div>
<h4 class="font-semibold text-on-surface">Ana Petrov</h4>
<p class="text-xs text-on-surface-variant">Est. wait: 8 mins</p>
</div>
</div>
<div class="px-2 py-1 bg-tertiary-fixed text-on-tertiary-fixed-variant rounded text-[10px] font-bold uppercase tracking-wider">
Senior
</div>
</div>
<!-- Queue Item 3 -->
<div class="group bg-surface-container-lowest p-5 rounded-lg flex items-center justify-between transition-all hover:shadow-md border-l-4 border-primary">
<div class="flex items-center gap-4">
<span class="font-headline text-xl font-extrabold text-on-surface-variant group-hover:text-primary transition-colors">045</span>
<div>
<h4 class="font-semibold text-on-surface">Luka Kostic</h4>
<p class="text-xs text-on-surface-variant">Est. wait: 15 mins</p>
</div>
</div>
<div class="px-2 py-1 bg-surface-container text-on-surface-variant rounded text-[10px] font-bold uppercase tracking-wider">
Normal
</div>
</div>
<!-- Queue Item 4 -->
<div class="group bg-surface-container-lowest p-5 rounded-lg flex items-center justify-between transition-all hover:shadow-md border-l-4 border-primary">
<div class="flex items-center gap-4">
<span class="font-headline text-xl font-extrabold text-on-surface-variant group-hover:text-primary transition-colors">046</span>
<div>
<h4 class="font-semibold text-on-surface">Sara Jovanovic</h4>
<p class="text-xs text-on-surface-variant">Est. wait: 22 mins</p>
</div>
</div>
<div class="px-2 py-1 bg-surface-container text-on-surface-variant rounded text-[10px] font-bold uppercase tracking-wider">
Normal
</div>
</div>
<!-- Queue Item 5 -->
<div class="group bg-surface-container-lowest p-5 rounded-lg flex items-center justify-between transition-all hover:shadow-md border-l-4 border-primary">
<div class="flex items-center gap-4">
<span class="font-headline text-xl font-extrabold text-on-surface-variant group-hover:text-primary transition-colors">047</span>
<div>
<h4 class="font-semibold text-on-surface">Viktor Simic</h4>
<p class="text-xs text-on-surface-variant">Est. wait: 29 mins</p>
</div>
</div>
<div class="px-2 py-1 bg-surface-container text-on-surface-variant rounded text-[10px] font-bold uppercase tracking-wider">
Normal
</div>
</div>
</div>
<!-- Secondary Info Section -->
<div class="mt-8 bg-primary/5 rounded-xl p-6 border border-primary/10">
<div class="flex items-center gap-3 mb-4">
<span class="material-symbols-outlined text-primary" data-icon="info">info</span>
<h5 class="font-headline font-bold text-on-surface">Queue Insight</h5>
</div>
<p class="text-sm text-on-surface-variant leading-relaxed">
Traffic is currently <span class="text-primary font-bold">15% higher</span> than yesterday. Consider calling additional support if the wait time exceeds 30 minutes.
</p>
</div>
</section>
</div>
</main>
<!-- Bottom Navigation Bar (Anchor Mobile Only) -->
<nav class="md:hidden fixed bottom-0 left-0 w-full bg-slate-50/95 backdrop-blur-md z-50 flex items-center justify-around px-2 py-4 shadow-[0_-5px_20px_rgba(0,0,0,0.05)]">
<a class="flex flex-col items-center gap-1 text-primary" href="#">
<span class="material-symbols-outlined" data-icon="queue">queue</span>
<span class="text-[10px] font-bold">Live</span>
</a>
<a class="flex flex-col items-center gap-1 text-slate-400" href="#">
<span class="material-symbols-outlined" data-icon="dashboard">dashboard</span>
<span class="text-[10px] font-medium">Dash</span>
</a>
<a class="flex flex-col items-center gap-1 text-slate-400" href="#">
<span class="material-symbols-outlined" data-icon="history">history</span>
<span class="text-[10px] font-medium">History</span>
</a>
<a class="flex flex-col items-center gap-1 text-slate-400" href="#">
<span class="material-symbols-outlined" data-icon="settings">settings</span>
<span class="text-[10px] font-medium">Config</span>
</a>
</nav>
</body></html>