DSatishchandra commited on
Commit
db533ee
·
verified ·
1 Parent(s): 1db3946

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +279 -229
templates/menu.html CHANGED
@@ -9,169 +9,175 @@
9
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
10
  <style>
11
  body {
12
- font-family: Arial, sans-serif;
13
- background-color: #fdf4e3; /* Updated background color */
14
- margin: 0;
15
- padding: 0;
16
- display: flex;
17
- flex-direction: column;
18
- }
19
- .container {
20
- max-width: 900px;
21
- }
22
- .menu-card {
23
- max-width: 350px;
24
- border-radius: 15px;
25
- overflow: hidden;
26
- background-color: #fff;
27
- margin: auto;
28
- }
29
- .menu-image {
30
- height: 200px;
31
- width: 100%;
32
- object-fit: cover;
33
- border-radius: 15px 15px 0 0;
34
- }
35
- .card-title {
36
- font-size: 1.2rem;
37
- font-weight: bold;
38
- }
39
- .card-text {
40
- font-size: 1rem;
41
- color: #6c757d;
42
- }
43
- .btn-primary {
44
- font-size: 14px;
45
- font-weight: bold;
46
- border-radius: 5px;
47
- width: 100px;
48
- background-color: #0FAA39; /* Updated button background color */
49
- border-color: #28a745;
50
-
51
- }
52
- .btn-primary:hover {
53
- background-color: #0FAA39;
54
- border-color: #ffffff;
55
- }
56
- .btn-primary:active,
57
- .btn-primary:focus {
58
- background-color: #4a5d68;
59
- border-color: #ffffff;
60
- box-shadow: none;
61
- }
62
- .view-cart-container {
63
- position: fixed;
64
- bottom: 20px;
65
- right: 20px;
66
- z-index: 999;
67
- }
68
- .view-cart-button {
69
- background-color: #0FAA39; /* Updated View Cart button background color */
70
- color: #fff;
71
- padding: 10px 20px;
72
- border-radius: 30px;
73
- font-size: 1rem;
74
- font-weight: bold;
75
- text-decoration: none;
76
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
77
- display: flex;
78
- align-items: center;
79
- justify-content: center;
80
- }
81
- .view-cart-button:hover {
82
- background-color: #109835; /* Slightly darker shade for hover effect */
83
- text-decoration: none;
84
- }
85
- .avatar-dropdown-container {
86
- position: relative;
87
- }
88
- .avatar-icon {
89
- width: 40px;
90
- height: 40px;
91
- border-radius: 50%;
92
- background-color: #5bbfc1;
93
- cursor: pointer;
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- color: white;
98
- font-size: 20px;
99
- font-weight: bold;
100
- }
101
- .dropdown-menu {
102
- position: absolute;
103
- right: 0;
104
- top: 100%;
105
- background-color: #fff;
106
- border-radius: 5px;
107
- width: 200px; /* Adjust width as needed */
108
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
109
- display: none;
110
- }
111
- .avatar-dropdown-container:hover .dropdown-menu {
112
- display: block;
113
- }
114
- .dropdown-menu .dropdown-item {
115
- padding: 10px 15px;
116
- text-decoration: none;
117
- color: #333;
118
- border-bottom: 1px solid #ddd;
119
- display: block; /* Make each item stack vertically */
120
- }
121
- .dropdown-menu .dropdown-item:last-child {
122
- border-bottom: none; /* Remove the bottom border from the last item */
123
- }
124
- .dropdown-menu .dropdown-item:hover {
125
- background-color: #f1f1f1;
126
- }
127
- .fixed-search-container {
128
- position: absolute;
129
- top: 90px; /* Move it slightly lower */
130
- left: 50%;
131
- transform: translateX(-50%);
132
- width: 80%;
133
- max-width: 600px;
134
- z-index: 999; /* Keep it above content */
135
- background-color: white;
136
- padding: 10px;
137
- border-radius: 25px;
138
- box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
139
- }
140
- /* Ensure the category filter dropdown does not overlap */
141
- form.text-center.mb-4 {
142
- margin-top: 120px !important; /* Increase spacing below search bar */
143
- }
144
- /* Ensure the container has enough margin so nothing is overlapped */
145
- .container {
146
- margin-top: 180px; /* Adjust spacing based on navbar and search bar */
147
- }
148
- .fixed-top-bar {
149
  position: fixed;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  top: 0;
151
  left: 0;
152
  width: 100%;
153
- height: 54px; /* Adjust the height as needed */
154
- z-index: 1000;
155
  background-color: #FF6B35;
156
  color: white;
157
  padding: 15px;
158
  display: flex;
159
  justify-content: space-between;
160
  align-items: center; /* Vertically align items */
161
- z-index: 10000; /* Make sure it's at the top */
162
  }
163
-
164
  .avatar-dropdown-container {
165
  position: absolute;
166
  right: 20px; /* Adjust the value as needed to position it properly */
167
  top: 50%; /* Adjust top to place it within the header */
168
  transform: translateY(-50%); /* Correct the alignment to be perfectly centered */
169
  display: flex;
170
- align-items: center;
171
  justify-content: center;
172
  }
173
-
174
  .search-bar-container {
 
175
  position: absolute;
176
  left: 20px;
177
  top: 50%;
@@ -181,105 +187,149 @@
181
  align-items: center;
182
  width: 300px; /* Adjust width as needed */
183
  }
184
-
185
  .search-bar-container input {
186
- width: 100%;
187
  padding: 8px 10px 8px 30px; /* Add padding for the icon */
188
  font-size: 16px;
189
- border-radius: 20px;
190
  border: none;
191
  }
192
-
193
  .search-icon {
194
  position: absolute;
195
- left: 10px; /* Position the icon inside the input box */
196
  font-size: 20px;
197
  color: #888; /* Icon color */
198
  }
199
-
200
- /* Style for customization sections */
201
- .addon-section {
202
- background-color: #f8f9fa; /* Light gray background */
203
- border: 2px solid #ff6b35; /* Border color */
204
- border-radius: 8px;
205
- padding: 12px;
206
- margin-bottom: 10px; /* Spacing between sections */
207
- }
208
- /* Customization section title */
209
- .addon-section h6 {
210
- margin-bottom: 10px;
211
- font-size: 1.1rem;
212
- font-weight: bold;
213
- color: #4a4848;
214
- }
215
- /* Style for add-on checkboxes */
216
- .addon-section .form-check {
217
- margin-left: 10px;
218
- }
219
-
220
- /* Category Filter with Custom Radio Buttons */
221
- form.text-center.mb-4 {
222
- display: flex;
223
- flex-direction: column;
224
- align-items: center;
225
- }
226
-
227
- .form-check {
228
- display: inline-block;
229
- margin-right: 15px;
230
- margin-bottom: 15px; /* Add space between buttons */
231
- }
232
-
233
- .form-check-inline {
234
- display: inline-block;
235
- margin-right: 10px;
236
- }
237
-
238
- .form-check-label {
239
- font-size: 16px;
240
- margin-left: 8px; /* Space between radio button and label */
241
- }
242
-
243
- .custom-radio {
244
- appearance: none;
245
- -webkit-appearance: none;
246
- -moz-appearance: none;
247
- width: 20px;
248
- height: 20px;
249
- border: 3px solid #4CAF50; /* Green border */
250
- border-radius: 50%;
251
- margin-right: -5px; /* Increased spacing between button and label */
252
- outline: none;
253
- cursor: pointer;
254
- position: relative;
255
- display: inline-block;
256
- }
257
-
258
- .custom-radio:checked {
259
- background-color: #4CAF50; /* Green color when checked */
260
- border-color: #4CAF50; /* Matching border color */
261
- }
262
-
263
- .custom-radio:checked::after {
264
- content: '';
265
- position: absolute;
266
- top: 5px;
267
- left: 5px;
268
- /*width: 8px;
269
- height: 8px;
270
- background-color: #fff;*/
271
- border-radius: 50%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  }
273
-
274
- .custom-radio:hover {
275
- border-color: #388E3C;
276
  }
277
-
278
- /* Optional: Style the labels */
279
- .form-check-label {
280
- font-size: 16px;
281
- margin-left: 8px; /* Space between the radio button and the label */
282
  }
 
283
  </style>
284
  </head>
285
  <body>
 
9
  <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
10
  <style>
11
  body {
12
+ font-family: Arial, sans-serif;
13
+ background-color: #fdf4e3; /* Updated background color */
14
+ margin: 0;
15
+ padding: 0;
16
+ display: flex;
17
+ flex-direction: column;
18
+ }
19
+ .container {
20
+ max-width: 900px;
21
+ /*margin-top: 10px; /* Adjust spacing to control space between filter and menu */
22
+ }
23
+ .menu-card {
24
+ max-width: 350px;
25
+ border-radius: 15px;
26
+ overflow: hidden;
27
+ background-color: #fff;
28
+ margin: auto;
29
+ }
30
+ .menu-image {
31
+ height: 200px;
32
+ width: 100%;
33
+ object-fit: cover;
34
+ border-radius: 15px 15px 0 0;
35
+ }
36
+ .card-title {
37
+ font-size: 1.2rem;
38
+ font-weight: bold;
39
+ }
40
+ .card-text {
41
+ font-size: 1rem;
42
+ color: #6c757d;
43
+ }
44
+ .btn-primary {
45
+ font-size: 13px;
46
+ font-weight: bold;
47
+ border-radius: 5px;
48
+ width: 100px;
49
+ background-color: #0FAA39; /* Updated button background color */
50
+ border-color: #0FAA39;
51
+ }
52
+ .btn-primary:hover {
53
+ background-color: #0FAA39;
54
+ border-color: #ffffff;
55
+ }
56
+ .btn-primary:active,
57
+ .btn-primary:focus {
58
+ background-color: #4a5d68;
59
+ border-color: #ffffff;
60
+ box-shadow: none;
61
+ }
62
+ .view-cart-container {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  position: fixed;
64
+ bottom: 20px;
65
+ right: 20px;
66
+ z-index: 999;
67
+ }
68
+ .view-cart-button {
69
+ background-color: #0FAA39; /* Updated View Cart button background color */
70
+ color: #fff;
71
+ padding: 10px 20px;
72
+ border-radius: 30px;
73
+ font-size: 1rem;
74
+ font-weight: bold;
75
+ text-decoration: none;
76
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
77
+ display: flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ }
81
+ .view-cart-button:hover {
82
+ background-color: #109835; /* Slightly darker shade for hover effect */
83
+ text-decoration: none;
84
+ }
85
+ .avatar-dropdown-container {
86
+ position: relative;
87
+ }
88
+ .avatar-icon {
89
+ width: 40px;
90
+ height: 40px;
91
+ border-radius: 50%;
92
+ background-color: #5bbfc1;
93
+ cursor: pointer;
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ color: white;
98
+ font-size: 20px;
99
+ font-weight: bold;
100
+ }
101
+ .dropdown-menu {
102
+ position: absolute;
103
+ right: 0;
104
+ top: 100%;
105
+ background-color: #fff;
106
+ border-radius: 5px;
107
+ width: 200px; /* Adjust width as needed */
108
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
109
+ display: none;
110
+ }
111
+ .avatar-dropdown-container:hover .dropdown-menu {
112
+ display: block;
113
+ }
114
+ .dropdown-menu .dropdown-item {
115
+ padding: 10px 15px;
116
+ text-decoration: none;
117
+ color: #333;
118
+ border-bottom: 1px solid #ddd;
119
+ display: block; /* Make each item stack vertically */
120
+ }
121
+ .dropdown-menu .dropdown-item:last-child {
122
+ border-bottom: none; /* Remove the bottom border from the last item */
123
+ }
124
+ .dropdown-menu .dropdown-item:hover {
125
+ background-color: #f1f1f1;
126
+ }
127
+ .fixed-search-container {
128
+ position: absolute;
129
+ top: 90px; /* Move it slightly lower */
130
+ left: 50%;
131
+ transform: translateX(-50%);
132
+ width: 80%;
133
+ max-width: 600px;
134
+ z-index: 999; /* Keep it above content */
135
+ background-color: white;
136
+ padding: 10px;
137
+ border-radius: 25px;
138
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
139
+ }
140
+ /* Ensure the category filter dropdown does not overlap */
141
+ form.text-center.mb-4 {
142
+ margin-top: 10px; /* No margin at the top */
143
+ margin-bottom: 0px; /* Small space at the bottom */
144
+ }
145
+ /* Ensure the container has enough margin so nothing is overlapped */
146
+ .container {
147
+ margin-top: 10px; /* Adjust spacing based on navbar and search bar */
148
+ padding-top: 0 !important; /* Ensure no padding is added by default */
149
+ }
150
+ h1.text-center {
151
+ margin-top: 10px; /* Reduced space above */
152
+ padding-top: 0 !important; /* Removed padding */
153
+ font-weight: semi-bold; /* Make the "Menu" text bold */
154
+ }
155
+ .fixed-top-bar {
156
+ /* Remove the fixed positioning */
157
+ position: relative; /* Change from fixed to relative */
158
  top: 0;
159
  left: 0;
160
  width: 100%;
161
+ height: 54px;
 
162
  background-color: #FF6B35;
163
  color: white;
164
  padding: 15px;
165
  display: flex;
166
  justify-content: space-between;
167
  align-items: center; /* Vertically align items */
168
+ z-index: 1000; /* Make sure it's still above other content */
169
  }
 
170
  .avatar-dropdown-container {
171
  position: absolute;
172
  right: 20px; /* Adjust the value as needed to position it properly */
173
  top: 50%; /* Adjust top to place it within the header */
174
  transform: translateY(-50%); /* Correct the alignment to be perfectly centered */
175
  display: flex;
176
+ align-items: right;
177
  justify-content: center;
178
  }
 
179
  .search-bar-container {
180
+ padding: 10px;
181
  position: absolute;
182
  left: 20px;
183
  top: 50%;
 
187
  align-items: center;
188
  width: 300px; /* Adjust width as needed */
189
  }
 
190
  .search-bar-container input {
191
+ width: 85%;
192
  padding: 8px 10px 8px 30px; /* Add padding for the icon */
193
  font-size: 16px;
194
+ border-radius: 10px;
195
  border: none;
196
  }
 
197
  .search-icon {
198
  position: absolute;
199
+ left: 15px; /* Position the icon inside the input box */
200
  font-size: 20px;
201
  color: #888; /* Icon color */
202
  }
203
+ /* Style for customization sections */
204
+ .addon-section {
205
+ background-color: #f8f9fa; /* Light gray background */
206
+ border: 2px solid #ff6b35; /* Border color */
207
+ border-radius: 8px;
208
+ padding: 12px;
209
+ margin-bottom: 10px; /* Spacing between sections */
210
+ }
211
+ /* Customization section title */
212
+ .addon-section h6 {
213
+ margin-bottom: 10px;
214
+ font-size: 1.1rem;
215
+ font-weight: bold;
216
+ color: #444;
217
+ }
218
+ /* Style for add-on checkboxes */
219
+ .addon-section .form-check {
220
+ margin-left: 10px;
221
+ }
222
+ /* Category Filter with Custom Radio Buttons */
223
+ form.text-center.mb-4 {
224
+ display: flex;
225
+ flex-direction: column;
226
+ align-items: center;
227
+ justify-content: center;
228
+ margin-bottom: 5px; /* Reduce bottom margin */
229
+ }
230
+ .form-check {
231
+ display: inline-block;
232
+ margin-right: 5px; /* Reduced space between radio button and label */
233
+ margin-bottom: 0; /* Remove bottom margin */
234
+ margin-top: 10px; /* Adds space between categories and Customized Dish */
235
+ vertical-align: middle; /* Align radio buttons vertically */
236
+ }
237
+ .form-check-inline {
238
+ display: inline-block;
239
+ margin-right: 5px; /* Decrease space between each radio button */
240
+ }
241
+ .form-check-label {
242
+ display: inline-block;
243
+ font-size: 16px;
244
+ margin-left: 0px; /* Spacing between radio button and label */
245
+ vertical-align: middle; /* Align label vertically */
246
+ }
247
+ .custom-radio {
248
+ appearance: none;
249
+ -webkit-appearance: none;
250
+ -moz-appearance: none;
251
+ width: 20px;
252
+ height: 20px;
253
+ border: 3px solid #4CAF50; /* Green border */
254
+ border-radius: 50%;
255
+ outline: none;
256
+ cursor: pointer;
257
+ position: relative;
258
+ display: inline-block;
259
+ vertical-align: middle; /* Align vertically with text */
260
+ }
261
+ .custom-radio:checked {
262
+ background-color: #4CAF50; /* Green color when checked */
263
+ border-color: #4CAF50; /* Matching border color */
264
+ }
265
+ .custom-radio:checked::after {
266
+ content: '';
267
+ position: relative;
268
+ top: 5px;
269
+ left: 5px;
270
+ border-radius: 50%;
271
+ }
272
+ .custom-radio:hover {
273
+ border-color: #388E3C;
274
+ }
275
+ /* Optional: Style the labels */
276
+ .form-check-label {
277
+ font-size: 16px;
278
+ margin-left: 5px; /* Space between the radio button and the label */
279
+ }
280
+ .cart-container {
281
+ display: flex;
282
+ align-items: center;
283
+ gap: 10px;
284
+ }
285
+ .modal-footer {
286
+ display: flex;
287
+ align-items: center;
288
+ justify-content: space-between; /* Space between quantity and Add to Cart button */
289
+ padding: 10px;
290
+ }
291
+ .modal-footer .d-flex {
292
+ display: flex;
293
+ align-items: center;
294
+ gap: 10px; /* Space between quantity buttons */
295
+ }
296
+ .modal-footer .btn {
297
+ height: 40px; /* Set consistent button height */
298
+ padding: 0 15px; /* Adjust padding to fit inside the buttons */
299
+ }
300
+ .modal-footer .form-control {
301
+ width: 50px; /* Fixed width for quantity input */
302
+ height: 40px; /* Match the height of buttons */
303
+ text-align: center; /* Center the value inside the input */
304
+ }
305
+ .modal-footer .btn-primary {
306
+ background-color: #0FAA39; /* Green background for Add to Cart button */
307
+ border-color: #0FAA39; /* Border color to match button background */
308
+ font-weight: bold; /* Bold text */
309
+ padding: 10px 20px; /* Adjust padding to make the button look better */
310
+ height: 40px; /* Match the height with quantity buttons */
311
+ display: flex;
312
+ justify-content: center;
313
+ align-items: center;
314
+ width: auto; /* Auto width to adjust to button text */
315
+ }
316
+ .modal-footer .btn-outline-secondary {
317
+ height: 40px; /* Ensure quantity buttons are the same size */
318
+ width: 40px; /* Make sure the buttons are square */
319
+ }
320
+ @media (max-width: 576px) {
321
+ /* Responsive adjustments for smaller screens */
322
+ .modal-dialog {
323
+ max-width: 98%; /* Adjust modal width for smaller screens */
324
  }
325
+ .modal-footer .btn {
326
+ height: 35px; /* Smaller buttons for small screens */
 
327
  }
328
+ .modal-footer .form-control {
329
+ width: 40px; /* Adjust input size for smaller screens */
330
+ height: 35px;
 
 
331
  }
332
+ }
333
  </style>
334
  </head>
335
  <body>