Subbu1304 commited on
Commit
7fb2f23
·
verified ·
1 Parent(s): 90d617e

Delete static

Browse files
Files changed (2) hide show
  1. static/script.js +0 -43
  2. static/style.css +0 -547
static/script.js DELETED
@@ -1,43 +0,0 @@
1
- document.addEventListener("DOMContentLoaded", () => {
2
- const signupForm = document.getElementById("signupForm");
3
- const loginForm = document.getElementById("loginForm");
4
-
5
- if (signupForm) {
6
- signupForm.addEventListener("submit", async (e) => {
7
- e.preventDefault();
8
- const name = document.getElementById("name").value;
9
- const email = document.getElementById("email").value;
10
- const password = document.getElementById("password").value;
11
-
12
- const response = await fetch("/api/signup", {
13
- method: "POST",
14
- headers: { "Content-Type": "application/json" },
15
- body: JSON.stringify({ name, email, password }),
16
- });
17
-
18
- const data = await response.json();
19
- document.getElementById("signupMessage").innerText = data.message;
20
- });
21
- }
22
-
23
- if (loginForm) {
24
- loginForm.addEventListener("submit", async (e) => {
25
- e.preventDefault();
26
- const email = document.getElementById("email").value;
27
- const password = document.getElementById("password").value;
28
-
29
- const response = await fetch("/api/login", {
30
- method: "POST",
31
- headers: { "Content-Type": "application/json" },
32
- body: JSON.stringify({ email, password }),
33
- });
34
-
35
- const data = await response.json();
36
- document.getElementById("loginMessage").innerText = data.message;
37
-
38
- if (data.redirect) {
39
- window.location.href = data.redirect;
40
- }
41
- });
42
- }
43
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
static/style.css DELETED
@@ -1,547 +0,0 @@
1
- body {
2
- font-family: Arial, sans-serif;
3
- background-color: #f8f9fa;
4
- margin: 0;
5
- padding: 0;
6
- }
7
-
8
- /* General Styling */
9
- .container {
10
- background: white;
11
- padding: 20px;
12
- border-radius: 8px;
13
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
14
- text-align: center;
15
- max-width: 1200px;
16
- margin: auto;
17
- }
18
-
19
- h1, h3 {
20
- margin-bottom: 20px;
21
- }
22
-
23
- form label {
24
- display: block;
25
- margin: 10px 0 5px;
26
- text-align: left;
27
- }
28
-
29
- form input {
30
- width: 100%;
31
- padding: 10px;
32
- margin-bottom: 15px;
33
- border: 1px solid #ccc;
34
- border-radius: 4px;
35
- }
36
-
37
- /* Button Styling */
38
- button, .btn {
39
- padding: 10px 20px;
40
- border: none;
41
- border-radius: 4px;
42
- background-color: #007bff;
43
- color: white;
44
- cursor: pointer;
45
- width: 100%;
46
- }
47
-
48
- button:hover, .btn:hover {
49
- background-color: #0056b3;
50
- }
51
-
52
- /* Menu Card Styling */
53
- .menu-card {
54
- border-radius: 15px;
55
- overflow: hidden;
56
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
57
- margin-bottom: 20px;
58
- }
59
-
60
- .menu-image {
61
- height: 200px;
62
- object-fit: cover;
63
- border-radius: 15px 15px 0 0;
64
- }
65
-
66
- .card-title {
67
- font-size: 1.5rem;
68
- font-weight: bold;
69
- margin-bottom: 0.5rem;
70
- }
71
-
72
- .card-text {
73
- font-size: 1rem;
74
- color: #6c757d;
75
- }
76
-
77
- .btn-primary {
78
- font-size: 0.9rem;
79
- border-radius: 20px;
80
- width: auto;
81
- }
82
-
83
- /* Modal Styling */
84
- .modal-body img {
85
- border-radius: 10px;
86
- max-height: 250px;
87
- object-fit: cover;
88
- }
89
-
90
- .modal-footer .btn {
91
- border-radius: 20px;
92
- }
93
-
94
- /* Header Styling */
95
- .header {
96
- background-color: #f8f9fa;
97
- border-bottom: 1px solid #ddd;
98
- position: sticky;
99
- top: 0;
100
- z-index: 1000;
101
- padding: 10px 20px;
102
- }
103
-
104
- .header-title {
105
- font-size: 1.5rem;
106
- font-weight: bold;
107
- margin: 0;
108
- text-align: center;
109
- }
110
-
111
- .nav-links {
112
- list-style: none;
113
- padding: 0;
114
- margin: 0;
115
- display: flex;
116
- justify-content: center;
117
- }
118
-
119
- .nav-link {
120
- text-decoration: none;
121
- color: #333;
122
- margin: 0 15px;
123
- font-size: 1rem;
124
- transition: color 0.3s;
125
- }
126
-
127
- .nav-link:hover {
128
- color: #007bff;
129
- }
130
-
131
- /* Scaling for Smaller Screens */
132
- @media (max-width: 768px) {
133
- .header-title {
134
- font-size: 1.2rem;
135
- }
136
-
137
- .nav-link {
138
- font-size: 0.9rem;
139
- margin: 0 10px;
140
- }
141
-
142
- .menu-image {
143
- height: 150px;
144
- }
145
-
146
- .btn-primary {
147
- font-size: 0.8rem;
148
- }
149
- }
150
-
151
- /* Scaling for Larger Screens */
152
- @media (min-width: 1200px) {
153
- .header-title {
154
- font-size: 2rem;
155
- }
156
-
157
- .nav-link {
158
- font-size: 1.2rem;
159
- margin: 0 20px;
160
- }
161
-
162
- .menu-image {
163
- height: 250px;
164
- }
165
- }
166
-
167
- body {
168
- margin: 0;
169
- padding: 0;
170
- font-family: Arial, sans-serif;
171
- background: linear-gradient(to bottom right, #6a11cb, #2575fc);
172
- height: 100vh;
173
- display: flex;
174
- justify-content: center;
175
- align-items: center;
176
- }
177
-
178
- .form-container {
179
- background: #fff;
180
- padding: 20px;
181
- border-radius: 10px;
182
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
183
- width: 350px;
184
- text-align: center;
185
- }
186
-
187
- h2 {
188
- margin-bottom: 20px;
189
- font-size: 24px;
190
- color: #333;
191
- }
192
-
193
- .form-group {
194
- margin-bottom: 15px;
195
- text-align: left;
196
- }
197
-
198
- label {
199
- display: block;
200
- font-size: 14px;
201
- margin-bottom: 5px;
202
- color: #555;
203
- }
204
-
205
- input {
206
- width: 100%;
207
- padding: 10px;
208
- border: 1px solid #ccc;
209
- border-radius: 5px;
210
- font-size: 14px;
211
- }
212
-
213
- .forgot-password {
214
- font-size: 12px;
215
- color: #007bff;
216
- text-decoration: none;
217
- }
218
-
219
- .forgot-password:hover {
220
- text-decoration: underline;
221
- }
222
-
223
- .btn {
224
- background: linear-gradient(to right, #6a11cb, #2575fc);
225
- color: #fff;
226
- padding: 10px 20px;
227
- border: none;
228
- border-radius: 5px;
229
- cursor: pointer;
230
- font-size: 16px;
231
- width: 100%;
232
- }
233
-
234
- .btn:hover {
235
- background: linear-gradient(to right, #2575fc, #6a11cb);
236
- }
237
-
238
- .social-login {
239
- margin-top: 20px;
240
- }
241
-
242
- .social-login p {
243
- margin-bottom: 10px;
244
- font-size: 14px;
245
- }
246
-
247
- .social-icons a {
248
- margin: 0 10px;
249
- font-size: 20px;
250
- color: #555;
251
- transition: color 0.3s;
252
- }
253
-
254
- .social-icons a:hover {
255
- color: #2575fc;
256
- }
257
-
258
- .signup-link,
259
- .login-link {
260
- margin-top: 20px;
261
- font-size: 14px;
262
- }
263
-
264
- .signup-link a,
265
- .login-link a {
266
- color: #007bff;
267
- text-decoration: none;
268
- }
269
-
270
- .signup-link a:hover,
271
- .login-link a:hover {
272
- text-decoration: underline;
273
- }
274
-
275
- body {
276
- font-family: Arial, sans-serif;
277
- background: linear-gradient(to bottom right, #4a90e2, #9013fe);
278
- margin: 0;
279
- padding: 0;
280
- }
281
-
282
- .container {
283
- max-width: 900px;
284
- margin: 0 auto;
285
- padding: 20px;
286
- background-color: white;
287
- border-radius: 10px;
288
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
289
- }
290
-
291
- h1 {
292
- text-align: center;
293
- color: #333;
294
- font-size: 2rem;
295
- margin-bottom: 20px;
296
- }
297
-
298
- .filter-container {
299
- display: flex;
300
- justify-content: space-between;
301
- align-items: center;
302
- margin-bottom: 20px;
303
- }
304
-
305
- .filter-title {
306
- font-size: 1.2rem;
307
- font-weight: bold;
308
- color: #333;
309
- }
310
-
311
- .filter-options {
312
- display: flex;
313
- gap: 15px;
314
- }
315
-
316
- .filter-options input[type="radio"] {
317
- margin-right: 5px;
318
- }
319
-
320
- .menu-item-container {
321
- max-height: 70vh;
322
- overflow-y: auto;
323
- padding-right: 10px;
324
- }
325
-
326
- .menu-item {
327
- display: flex;
328
- align-items: center;
329
- background-color: #f9f9f9;
330
- border: 1px solid #ddd;
331
- border-radius: 8px;
332
- margin-bottom: 15px;
333
- padding: 15px;
334
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
335
- transition: transform 0.2s;
336
- }
337
-
338
- .menu-item:hover {
339
- transform: translateY(-5px);
340
- }
341
-
342
- .menu-image {
343
- flex: 1;
344
- max-width: 150px;
345
- height: 120px;
346
- object-fit: cover;
347
- border-radius: 8px;
348
- }
349
-
350
- .menu-details {
351
- flex: 2;
352
- margin-left: 15px;
353
- }
354
-
355
- .menu-title {
356
- font-size: 1.5rem;
357
- font-weight: bold;
358
- color: #333;
359
- margin-bottom: 10px;
360
- }
361
-
362
- .menu-price {
363
- font-size: 1rem;
364
- color: #777;
365
- margin-bottom: 10px;
366
- }
367
-
368
- .add-button {
369
- background: linear-gradient(to right, #4a90e2, #9013fe);
370
- color: white;
371
- padding: 10px 20px;
372
- border: none;
373
- border-radius: 5px;
374
- cursor: pointer;
375
- font-size: 1rem;
376
- transition: background 0.3s;
377
- }
378
-
379
- .add-button:hover {
380
- background: linear-gradient(to right, #9013fe, #4a90e2);
381
- }
382
-
383
- body {
384
- font-family: Arial, sans-serif;
385
- background: linear-gradient(to bottom right, #4a90e2, #9013fe);
386
- margin: 0;
387
- padding: 0;
388
- }
389
-
390
- .container {
391
- max-width: 900px;
392
- margin: 0 auto;
393
- padding: 20px;
394
- background-color: white;
395
- border-radius: 10px;
396
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
397
- }
398
-
399
- h1 {
400
- text-align: center;
401
- color: #333;
402
- font-size: 2rem;
403
- margin-bottom: 20px;
404
- }
405
-
406
- .filter-container {
407
- display: flex;
408
- justify-content: space-between;
409
- align-items: center;
410
- margin-bottom: 20px;
411
- }
412
-
413
- .filter-title {
414
- font-size: 1.2rem;
415
- font-weight: bold;
416
- color: #333;
417
- }
418
-
419
- .filter-options {
420
- display: flex;
421
- gap: 15px;
422
- }
423
-
424
- .filter-options input[type="radio"] {
425
- margin-right: 5px;
426
- }
427
-
428
- .menu-item-container {
429
- max-height: 70vh;
430
- overflow-y: auto;
431
- padding-right: 10px;
432
- }
433
-
434
- .menu-item {
435
- display: flex;
436
- align-items: center;
437
- background-color: #f9f9f9;
438
- border: 1px solid #ddd;
439
- border-radius: 8px;
440
- margin-bottom: 15px;
441
- padding: 15px;
442
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
443
- transition: transform 0.2s;
444
- }
445
-
446
- .menu-item:hover {
447
- transform: translateY(-5px);
448
- }
449
-
450
- .menu-image {
451
- flex: 1;
452
- max-width: 150px;
453
- height: 120px;
454
- object-fit: cover;
455
- border-radius: 8px;
456
- }
457
-
458
- .menu-details {
459
- flex: 2;
460
- margin-left: 15px;
461
- }
462
-
463
- .menu-title {
464
- font-size: 1.5rem;
465
- font-weight: bold;
466
- color: #333;
467
- margin-bottom: 10px;
468
- }
469
-
470
- .menu-price {
471
- font-size: 1rem;
472
- color: #777;
473
- margin-bottom: 10px;
474
- }
475
-
476
- .add-button {
477
- background: linear-gradient(to right, #4a90e2, #9013fe);
478
- color: white;
479
- padding: 10px 20px;
480
- border: none;
481
- border-radius: 5px;
482
- cursor: pointer;
483
- font-size: 1rem;
484
- transition: background 0.3s;
485
- }
486
-
487
- .add-button:hover {
488
- background: linear-gradient(to right, #9013fe, #4a90e2);
489
- }
490
-
491
- .menu-item {
492
- display: flex;
493
- align-items: center;
494
- background-color: #f9f9f9;
495
- border: 1px solid #ddd;
496
- border-radius: 8px;
497
- margin-bottom: 15px;
498
- padding: 15px;
499
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
500
- transition: transform 0.2s;
501
- }
502
-
503
- .menu-item:hover {
504
- transform: translateY(-5px);
505
- }
506
-
507
- .menu-image {
508
- flex-shrink: 0;
509
- width: 5px; /* Reduced width */
510
- height: 10px; /* Reduced height */
511
- object-fit: cover;
512
- border-radius: 5px;
513
- margin-right: 10px; /* Adds space between the image and text */
514
- }
515
-
516
- .menu-details {
517
- flex-grow: 1;
518
- }
519
-
520
- .menu-title {
521
- font-size: 1.2rem;
522
- font-weight: bold;
523
- color: #333;
524
- margin-bottom: 10px;
525
- }
526
-
527
- .menu-price {
528
- font-size: 1rem;
529
- color: #777;
530
- margin-bottom: 10px;
531
- }
532
-
533
- .add-button {
534
- background: linear-gradient(to right, #4a90e2, #9013fe);
535
- color: white;
536
- padding: 10px 20px;
537
- border: none;
538
- border-radius: 5px;
539
- cursor: pointer;
540
- font-size: 1rem;
541
- transition: background 0.3s;
542
- }
543
-
544
- .add-button:hover {
545
- background: linear-gradient(to right, #9013fe, #4a90e2);
546
- }
547
-