-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboad.html
More file actions
398 lines (390 loc) · 23 KB
/
dashboad.html
File metadata and controls
398 lines (390 loc) · 23 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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!DOCTYPE html>
<html class="light" lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>MESSMATE - Student Dashboard</title>
<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=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap"
rel="stylesheet" />
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
colors: {
"primary": "#13ec13",
"primary-dark": "#0ea60e",
"background-light": "#f6f8f6",
"background-dark": "#102210",
"surface-light": "#ffffff",
"surface-dark": "#1a2e1a",
"text-main-light": "#0d1b0d",
"text-main-dark": "#e7f3e7",
"text-sec-light": "#4c9a4c",
"text-sec-dark": "#8fc68f",
},
fontFamily: {
"display": ["Plus Jakarta Sans", "sans-serif"]
},
borderRadius: { "DEFAULT": "0.5rem", "lg": "0.75rem", "xl": "1rem", "full": "9999px" },
},
},
}
</script>
</head>
<body
class="bg-background-light dark:bg-background-dark font-display text-text-main-light dark:text-text-main-dark transition-colors duration-200">
<div class="flex min-h-screen w-full">
<aside aria-label="Sidebar"
class="fixed top-0 left-0 z-40 h-screen w-64 -translate-x-full transition-transform border-r border-gray-200 dark:border-gray-800 bg-surface-light dark:bg-surface-dark sm:translate-x-0">
<div class="flex h-full flex-col justify-between px-4 py-6">
<div class="flex flex-col gap-8">
<div class="flex items-center gap-3 px-2">
<div
class="flex items-center justify-center rounded-lg bg-primary w-10 h-10 text-white shadow-lg shadow-primary/30">
<img src="logo.png">
</div>
<div class="flex flex-col">
<h1 class="text-xl font-bold tracking-tight text-text-main-light dark:text-text-main-dark">
MESSMATE</h1>
<p class="text-xs font-medium text-text-sec-light dark:text-text-sec-dark">Student Portal
</p>
</div>
</div>
<nav class="flex flex-col gap-1">
<a class="flex items-center gap-3 px-3 py-3 rounded-lg bg-primary/10 text-primary-dark dark:text-primary transition-colors group"
href="dashboad.html">
<span class="material-symbols-outlined text-[24px] fill-1">dashboard</span>
<span class="text-sm font-semibold">Dashboard</span>
</a>
<a class="flex items-center gap-3 px-3 py-3 rounded-lg text-text-main-light dark:text-text-main-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
href="menu.html">
<span class="material-symbols-outlined text-[24px]">restaurant</span>
<span class="text-sm font-medium">Browse Menu</span>
</a>
<a class="flex items-center gap-3 px-3 py-3 rounded-lg text-text-main-light dark:text-text-main-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
href="myorders.html">
<span class="material-symbols-outlined text-[24px]">receipt_long</span>
<span class="text-sm font-medium">My Orders</span>
</a>
<a class="flex items-center gap-3 px-3 py-3 rounded-lg text-text-main-light dark:text-text-main-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
href="profile.html">
<span class="material-symbols-outlined text-[24px]">account_circle</span>
<span class="text-sm font-medium">Profile</span>
</a>
<a class="flex items-center gap-3 px-3 py-3 rounded-lg text-text-main-light dark:text-text-main-dark hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
href="support.html">
<span class="material-symbols-outlined text-[24px]">help</span>
<span class="text-sm font-medium">Support</span>
</a>
</nav>
</div>
<div class="mt-auto border-t border-gray-100 dark:border-gray-800 pt-4">
<div class="flex items-center gap-3 px-2">
<div class="h-10 w-10 rounded-full bg-cover bg-center ring-2 ring-primary/20"
data-alt="Portrait of a male student smiling"
style="background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuC-mf-D4GMtODYo1OpWSbhsbAXKOn4kvv6sn4U0ldSZ_nygbRZwGZglvWA6i8u0qSmABYJfuoSFKibIR0C7zSn2R0dn2XHg3yikrvBOHV_aEeMqucP6p4uUV9pqOCc6KOeYWH5SKbvb-dW4MBHVJIKktk6MMnWrdt8ghOtUWd_E3sdOW0NqdtdAf7zFGSlOCyJVu4CYGRK_47nmxX1X4krtseINhBqyGU8kPE_a77WO5ep2ee0_DWiFDQUmOq4i4mzluEHJzbIq-pqw');">
</div>
<div class="flex flex-col">
<p class="text-sm font-semibold text-text-main-light dark:text-text-main-dark">Janmenjay
Lohra
</p>
<p class="text-xs text-text-sec-light dark:text-text-sec-dark">Room SA-04</p>
</div>
<button class="ml-auto text-text-sec-light hover:text-primary">
<span class="material-symbols-outlined text-[20px]">logout</span>
</button>
</div>
</div>
</div>
</aside>
<main class="flex-1 sm:ml-64 p-4 lg:p-8 xl:p-12 overflow-y-auto min-h-screen">
<div class="max-w-6xl mx-auto flex flex-col gap-8">
<header class="flex flex-wrap items-end justify-between gap-4">
<div>
<h1
class="text-3xl md:text-4xl font-extrabold tracking-tight text-text-main-light dark:text-white mb-2">
Good Morning, Janmenjay Lohra! ☀️</h1>
<p class="text-text-sec-light dark:text-text-sec-dark text-lg">Hungry? Check out what's cooking
today.</p>
</div>
<div class="flex items-center gap-2">
<button
class="flex items-center gap-2 bg-surface-light dark:bg-surface-dark border border-gray-200 dark:border-gray-700 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800 transition">
<span class="material-symbols-outlined text-[20px]">notifications</span>
<span class="hidden sm:inline">Notifications</span>
</button>
</div>
</header>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<div
class="lg:col-span-2 rounded-2xl bg-surface-light dark:bg-surface-dark p-6 shadow-sm ring-1 ring-black/5 dark:ring-white/10 relative overflow-hidden group">
<div
class="absolute top-0 right-0 p-32 bg-primary/5 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2">
</div>
<div class="relative z-10 flex flex-col h-full justify-between gap-6">
<div class="flex justify-between items-start">
<div>
<p class="text-text-sec-light dark:text-text-sec-dark font-medium mb-1">Current
Balance</p>
<h2
class="text-4xl md:text-5xl font-black tracking-tight text-text-main-light dark:text-white">
1,250 <span
class="text-2xl font-bold text-text-sec-light dark:text-text-sec-dark">Points</span>
</h2>
</div>
<div
class="bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wider flex items-center gap-1">
<span class="material-symbols-outlined text-[16px]">verified</span> Active
</div>
</div>
<div class="space-y-3">
<div class="flex justify-between text-sm">
<span class="font-semibold text-text-main-light dark:text-white">Monthly Quota
Used</span>
<span class="text-primary font-bold">65%</span>
</div>
<div class="h-3 w-full bg-gray-100 dark:bg-gray-800 rounded-full overflow-hidden">
<div class="h-full bg-primary rounded-full transition-all duration-500 ease-out"
style="width: 65%"></div>
</div>
<div class="flex justify-between items-center text-sm">
<p class="text-text-sec-light dark:text-text-sec-dark">Resets in 12 days</p>
<a class="text-primary font-bold hover:underline" href="#">View History</a>
</div>
</div>
</div>
</div>
<div
class="rounded-2xl bg-gradient-to-br from-gray-900 to-gray-800 text-white p-6 shadow-lg relative overflow-hidden flex flex-col justify-between min-h-[240px]">
<div class="absolute inset-0 bg-[url('https://images.unsplash.com/photo-1546069901-ba9599a7e63c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80')] bg-cover bg-center opacity-30"
data-alt="Close up of a fresh salad bowl"></div>
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"></div>
<div class="relative z-10">
<span
class="inline-block px-2 py-1 rounded bg-primary text-black text-xs font-bold mb-3">RECOMMENDED</span>
<h3 class="text-2xl font-bold leading-tight">Try the Special<br />Veg Thali Today!</h3>
</div>
<div class="relative z-10 mt-4">
<!-- ORDER BUTTON MARKED FOR LOCK -->
<button
class="w-full bg-primary hover:bg-primary-dark text-black font-bold py-3 px-4 rounded-xl flex items-center justify-center gap-2 transition-transform active:scale-95 shadow-[0_4px_0_rgb(11,168,11)] hover:shadow-[0_2px_0_rgb(11,168,11)] hover:translate-y-[2px]"
data-order-action="true">
<span>Order Now</span>
<span class="material-symbols-outlined">arrow_forward</span>
</button>
</div>
</div>
</div>
<div
class="w-full rounded-2xl bg-gradient-to-r from-blue-600 to-indigo-700 text-white p-6 shadow-lg ring-1 ring-black/5 flex flex-col md:flex-row items-center justify-between gap-6 relative overflow-hidden">
<div class="absolute top-0 right-0 -mr-16 -mt-16 w-64 h-64 rounded-full bg-white/10 blur-3xl"></div>
<div class="absolute bottom-0 left-0 -ml-16 -mb-16 w-48 h-48 rounded-full bg-white/10 blur-2xl">
</div>
<div class="flex items-center gap-5 relative z-10">
<div
class="h-16 w-16 rounded-xl bg-white/20 backdrop-blur-sm flex items-center justify-center shadow-inner flex-shrink-0">
<span class="material-symbols-outlined text-[36px] text-yellow-300">two_wheeler</span>
</div>
<div class="flex flex-col">
<h3 class="text-xl md:text-2xl font-bold">Internship Opportunity: Be a Campus Delivery
Partner!</h3>
<p class="text-blue-100 mt-1 max-w-xl">Deliver food in your free time and earn a verified
internship certificate. Join our student program to gain work experience.</p>
</div>
</div>
<div class="relative z-10 w-full md:w-auto">
<a href="intern.html"
class="w-full md:w-auto bg-white text-blue-700 hover:bg-blue-50 font-bold py-3 px-6 rounded-xl flex items-center justify-center gap-2 transition-colors shadow-lg">
<span>Apply for Internship</span>
<span class="material-symbols-outlined">rocket_launch</span>
</a>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<div class="lg:col-span-2 flex flex-col gap-6">
<div class="flex items-center justify-between">
<h3 class="text-xl font-bold text-text-main-light dark:text-white">Active Orders</h3>
<a class="text-sm font-medium text-primary hover:text-primary-dark" href="#">View All</a>
</div>
<div
class="bg-surface-light dark:bg-surface-dark rounded-xl p-4 shadow-sm ring-1 ring-black/5 dark:ring-white/10 flex flex-col sm:flex-row gap-4 items-start sm:items-center">
<div class="h-24 w-24 sm:h-20 sm:w-20 rounded-lg bg-gray-100 flex-shrink-0 bg-cover bg-center"
data-alt="Bowl of healthy vegetable salad"
style="background-image: url('https://lh3.googleusercontent.com/aida-public/AB6AXuBn1LvnhgoB0vUZcZBPuscPDJMm-CEv2Ygl7Srsuu8nopcrEDtbyZi1FbPmSOaufBQy4M7Qg4rSIRAGU7dz-3lr4W6gAy-NQOCrSWHmExrZ3vc8YFkkttOyUqfMtS2MtlT0RVCS8ZY_jfCA4VbJw-tYETuifB45aUC1bJjir5-XL64437aWmBIqvGZ_PoREB8myp9C0PCkXQNUb0yhRjacuQVeM-mB-RMRenbMTMpM9wTSxtweN4GTCBOYfRUp4os8QldvimB3ZTc4E')">
</div>
<div class="flex-1 w-full">
<div class="flex flex-wrap justify-between items-start gap-2 mb-2">
<div>
<h4 class="font-bold text-lg text-text-main-light dark:text-white">Order #402 -
Veg Thali</h4>
<p class="text-sm text-text-sec-light dark:text-text-sec-dark">Today at 12:30 PM
</p>
</div>
<span
class="px-3 py-1 rounded-full bg-green-100 dark:bg-green-900/40 text-green-700 dark:text-green-400 text-xs font-bold border border-green-200 dark:border-green-800">
READY FOR PICKUP
</span>
</div>
<div class="w-full bg-gray-100 dark:bg-gray-800 h-1.5 rounded-full mt-2 mb-3">
<div class="bg-primary h-1.5 rounded-full w-full"></div>
</div>
<div class="flex justify-between items-center">
<p
class="text-xs font-medium text-text-main-light dark:text-white flex items-center gap-1">
<span
class="material-symbols-outlined text-[16px] text-primary">location_on</span>
Mess Hall A, Counter 3
</p>
<!-- TICKET BUTTON MARKED FOR LOCK -->
<button
class="text-xs font-bold bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 px-3 py-1.5 rounded-md text-text-main-light dark:text-white transition-colors flex items-center gap-1"
data-order-action="true">
<span class="material-symbols-outlined text-[14px]">receipt</span> Ticket
</button>
</div>
</div>
</div>
<div class="pt-4">
<h3 class="text-xl font-bold text-text-main-light dark:text-white mb-4">Recent Activity</h3>
<div
class="bg-surface-light dark:bg-surface-dark rounded-xl overflow-hidden shadow-sm ring-1 ring-black/5 dark:ring-white/10">
<div class="divide-y divide-gray-100 dark:divide-gray-800">
<div
class="flex items-center justify-between p-4 hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors cursor-pointer">
<div class="flex items-center gap-3">
<div
class="h-10 w-10 rounded-full bg-orange-100 dark:bg-orange-900/30 flex items-center justify-center text-orange-600 dark:text-orange-400">
<span class="material-symbols-outlined text-[20px]">lunch_dining</span>
</div>
<div>
<p class="text-sm font-bold text-text-main-light dark:text-white">Cheese
Burger</p>
<p class="text-xs text-text-sec-light dark:text-text-sec-dark">
Yesterday, 7:45 PM</p>
</div>
</div>
<span class="text-sm font-bold text-red-500">- 120 pts</span>
</div>
<div
class="flex items-center justify-between p-4 hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors cursor-pointer">
<div class="flex items-center gap-3">
<div
class="h-10 w-10 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400">
<span class="material-symbols-outlined text-[20px]">local_cafe</span>
</div>
<div>
<p class="text-sm font-bold text-text-main-light dark:text-white">Cold
Coffee</p>
<p class="text-xs text-text-sec-light dark:text-text-sec-dark">
Yesterday, 4:20 PM</p>
</div>
</div>
<span class="text-sm font-bold text-red-500">- 45 pts</span>
</div>
<div
class="flex items-center justify-between p-4 hover:bg-gray-50 dark:hover:bg-gray-800/50 transition-colors cursor-pointer">
<div class="flex items-center gap-3">
<div
class="h-10 w-10 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-600 dark:text-green-400">
<span class="material-symbols-outlined text-[20px]">add_card</span>
</div>
<div>
<p class="text-sm font-bold text-text-main-light dark:text-white">
Monthly Top-up</p>
<p class="text-xs text-text-sec-light dark:text-text-sec-dark">01 Nov,
9:00 AM</p>
</div>
</div>
<span class="text-sm font-bold text-green-600">+ 2000 pts</span>
</div>
</div>
</div>
</div>
</div>
<div class="flex flex-col gap-6">
<h3 class="text-xl font-bold text-text-main-light dark:text-white">Quick Categories</h3>
<div class="grid grid-cols-2 gap-4">
<!-- CATEGORY BUTTONS MARKED FOR LOCK -->
<button
class="bg-surface-light dark:bg-surface-dark p-4 rounded-xl shadow-sm ring-1 ring-black/5 dark:ring-white/10 hover:ring-primary dark:hover:ring-primary hover:shadow-md transition-all group text-left flex flex-col gap-2"
data-order-action="true">
<span
class="material-symbols-outlined text-3xl text-orange-500 group-hover:scale-110 transition-transform">bakery_dining</span>
<span class="font-bold text-text-main-light dark:text-white">Breakfast</span>
</button>
<button
class="bg-surface-light dark:bg-surface-dark p-4 rounded-xl shadow-sm ring-1 ring-black/5 dark:ring-white/10 hover:ring-primary dark:hover:ring-primary hover:shadow-md transition-all group text-left flex flex-col gap-2"
data-order-action="true">
<span
class="material-symbols-outlined text-3xl text-red-500 group-hover:scale-110 transition-transform">lunch_dining</span>
<span class="font-bold text-text-main-light dark:text-white">Fast Food</span>
</button>
<button
class="bg-surface-light dark:bg-surface-dark p-4 rounded-xl shadow-sm ring-1 ring-black/5 dark:ring-white/10 hover:ring-primary dark:hover:ring-primary hover:shadow-md transition-all group text-left flex flex-col gap-2"
data-order-action="true">
<span
class="material-symbols-outlined text-3xl text-amber-500 group-hover:scale-110 transition-transform">rice_bowl</span>
<span class="font-bold text-text-main-light dark:text-white">Meals</span>
</button>
<button
class="bg-surface-light dark:bg-surface-dark p-4 rounded-xl shadow-sm ring-1 ring-black/5 dark:ring-white/10 hover:ring-primary dark:hover:ring-primary hover:shadow-md transition-all group text-left flex flex-col gap-2"
data-order-action="true">
<span
class="material-symbols-outlined text-3xl text-blue-500 group-hover:scale-110 transition-transform">local_bar</span>
<span class="font-bold text-text-main-light dark:text-white">Beverages</span>
</button>
</div>
<div
class="mt-auto bg-green-50 dark:bg-green-900/20 rounded-xl p-5 border border-green-100 dark:border-green-900/50">
<div class="flex items-start gap-3">
<span class="material-symbols-outlined text-primary mt-1">info</span>
<div>
<h4 class="font-bold text-text-main-light dark:text-white text-sm">Mess Notice</h4>
<p class="text-xs text-text-sec-light dark:text-text-sec-dark mt-1 leading-relaxed">
Special dinner service tonight featuring Paneer Butter Masala. Service starts at
7:30 PM.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<!-- BIOMETRIC LOCK SCRIPT -->
<script>
// Example biometric state; set to true when biometric is verified
let isBiometricAuthenticated = false;
function updateOrderActionsState() {
const buttons = document.querySelectorAll('[data-order-action="true"]');
buttons.forEach(btn => {
if (isBiometricAuthenticated) {
btn.disabled = true;
btn.classList.add('opacity-50', 'cursor-not-allowed');
btn.classList.remove('hover:bg-primary-dark', 'hover:shadow-[0_2px_0_rgb(11,168,11)]', 'hover:translate-y-[2px]');
} else {
btn.disabled = false;
btn.classList.remove('opacity-50', 'cursor-not-allowed');
}
});
}
// Call this from your biometric success handler
function onBiometricSuccess() {
isBiometricAuthenticated = true;
updateOrderActionsState();
// Optional: show toast/banner etc.
}
// Expose for testing: in console run onBiometricSuccess()
window.onBiometricSuccess = onBiometricSuccess;
document.addEventListener('DOMContentLoaded', updateOrderActionsState);
</script>
</body>
</html>