Spaces:
Sleeping
Sleeping
Update templates/menu.html (#2)
Browse files- Update templates/menu.html (0be111b819bfb63d3aade1d72d9605ec8cecf40a)
Co-authored-by: D Satish Chandra <[email protected]>
- templates/menu.html +19 -60
templates/menu.html
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
9 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
|
10 |
<style>
|
11 |
-
|
12 |
font-family: Arial, sans-serif;
|
13 |
background-color: #fdf4e3; /* Updated background color */
|
14 |
margin: 0;
|
@@ -16,12 +16,10 @@
|
|
16 |
display: flex;
|
17 |
flex-direction: column;
|
18 |
}
|
19 |
-
|
20 |
.container {
|
21 |
max-width: 900px;
|
22 |
/*margin-top: 10px; /* Adjust spacing to control space between filter and menu */
|
23 |
}
|
24 |
-
|
25 |
.menu-card {
|
26 |
max-width: 350px;
|
27 |
border-radius: 15px;
|
@@ -29,24 +27,20 @@
|
|
29 |
background-color: #fff;
|
30 |
margin: auto;
|
31 |
}
|
32 |
-
|
33 |
.menu-image {
|
34 |
height: 200px;
|
35 |
width: 100%;
|
36 |
object-fit: cover;
|
37 |
border-radius: 15px 15px 0 0;
|
38 |
}
|
39 |
-
|
40 |
.card-title {
|
41 |
font-size: 1.2rem;
|
42 |
font-weight: bold;
|
43 |
}
|
44 |
-
|
45 |
.card-text {
|
46 |
font-size: 1rem;
|
47 |
color: #6c757d;
|
48 |
}
|
49 |
-
|
50 |
.btn-primary {
|
51 |
font-size: 13px;
|
52 |
font-weight: bold;
|
@@ -55,26 +49,22 @@
|
|
55 |
background-color: #0FAA39; /* Updated button background color */
|
56 |
border-color: #0FAA39;
|
57 |
}
|
58 |
-
|
59 |
.btn-primary:hover {
|
60 |
background-color: #0FAA39;
|
61 |
border-color: #ffffff;
|
62 |
}
|
63 |
-
|
64 |
.btn-primary:active,
|
65 |
.btn-primary:focus {
|
66 |
background-color: #4a5d68;
|
67 |
border-color: #ffffff;
|
68 |
box-shadow: none;
|
69 |
}
|
70 |
-
|
71 |
.view-cart-container {
|
72 |
position: fixed;
|
73 |
bottom: 20px;
|
74 |
right: 20px;
|
75 |
z-index: 999;
|
76 |
}
|
77 |
-
|
78 |
.view-cart-button {
|
79 |
background-color: #0FAA39; /* Updated View Cart button background color */
|
80 |
color: #fff;
|
@@ -88,16 +78,13 @@
|
|
88 |
align-items: center;
|
89 |
justify-content: center;
|
90 |
}
|
91 |
-
|
92 |
.view-cart-button:hover {
|
93 |
background-color: #109835; /* Slightly darker shade for hover effect */
|
94 |
text-decoration: none;
|
95 |
}
|
96 |
-
|
97 |
.avatar-dropdown-container {
|
98 |
position: relative;
|
99 |
}
|
100 |
-
|
101 |
.avatar-icon {
|
102 |
width: 40px;
|
103 |
height: 40px;
|
@@ -111,7 +98,6 @@
|
|
111 |
font-size: 20px;
|
112 |
font-weight: bold;
|
113 |
}
|
114 |
-
|
115 |
.dropdown-menu {
|
116 |
position: absolute;
|
117 |
right: 0;
|
@@ -122,11 +108,9 @@
|
|
122 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
|
123 |
display: none;
|
124 |
}
|
125 |
-
|
126 |
.avatar-dropdown-container:hover .dropdown-menu {
|
127 |
display: block;
|
128 |
}
|
129 |
-
|
130 |
.dropdown-menu .dropdown-item {
|
131 |
padding: 10px 15px;
|
132 |
text-decoration: none;
|
@@ -134,15 +118,12 @@
|
|
134 |
border-bottom: 1px solid #ddd;
|
135 |
display: block; /* Make each item stack vertically */
|
136 |
}
|
137 |
-
|
138 |
.dropdown-menu .dropdown-item:last-child {
|
139 |
border-bottom: none; /* Remove the bottom border from the last item */
|
140 |
}
|
141 |
-
|
142 |
.dropdown-menu .dropdown-item:hover {
|
143 |
background-color: #f1f1f1;
|
144 |
}
|
145 |
-
|
146 |
.fixed-search-container {
|
147 |
position: absolute;
|
148 |
top: 90px; /* Move it slightly lower */
|
@@ -156,25 +137,21 @@
|
|
156 |
border-radius: 25px;
|
157 |
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
|
158 |
}
|
159 |
-
|
160 |
/* Ensure the category filter dropdown does not overlap */
|
161 |
form.text-center.mb-4 {
|
162 |
margin-top: 10px; /* No margin at the top */
|
163 |
margin-bottom: 0px; /* Small space at the bottom */
|
164 |
}
|
165 |
-
|
166 |
/* Ensure the container has enough margin so nothing is overlapped */
|
167 |
.container {
|
168 |
margin-top: 10px; /* Adjust spacing based on navbar and search bar */
|
169 |
padding-top: 0 !important; /* Ensure no padding is added by default */
|
170 |
}
|
171 |
-
|
172 |
h1.text-center {
|
173 |
margin-top: 10px; /* Reduced space above */
|
174 |
padding-top: 0 !important; /* Removed padding */
|
175 |
font-weight: semi-bold; /* Make the "Menu" text bold */
|
176 |
}
|
177 |
-
|
178 |
.fixed-top-bar {
|
179 |
/* Remove the fixed positioning */
|
180 |
position: relative; /* Change from fixed to relative */
|
@@ -199,7 +176,6 @@ h1.text-center {
|
|
199 |
align-items: right;
|
200 |
justify-content: center;
|
201 |
}
|
202 |
-
|
203 |
.search-bar-container {
|
204 |
padding: 10px;
|
205 |
position: absolute;
|
@@ -211,7 +187,6 @@ h1.text-center {
|
|
211 |
align-items: center;
|
212 |
width: 300px; /* Adjust width as needed */
|
213 |
}
|
214 |
-
|
215 |
.search-bar-container input {
|
216 |
width: 85%;
|
217 |
padding: 8px 10px 8px 30px; /* Add padding for the icon */
|
@@ -219,63 +194,60 @@ h1.text-center {
|
|
219 |
border-radius: 10px;
|
220 |
border: none;
|
221 |
}
|
222 |
-
|
223 |
.search-icon {
|
224 |
position: absolute;
|
225 |
left: 15px; /* Position the icon inside the input box */
|
226 |
font-size: 20px;
|
227 |
color: #888; /* Icon color */
|
228 |
}
|
229 |
-
|
230 |
/* Style for customization sections */
|
231 |
.addon-section {
|
232 |
-
background-color: #
|
233 |
border: 2px solid #ff6b35; /* Border color */
|
234 |
border-radius: 8px;
|
235 |
padding: 12px;
|
236 |
-
margin-bottom:
|
|
|
237 |
}
|
238 |
-
|
239 |
/* Customization section title */
|
240 |
.addon-section h6 {
|
241 |
margin-bottom: 10px;
|
242 |
font-size: 1.1rem;
|
243 |
font-weight: bold;
|
244 |
-
color: #
|
245 |
}
|
246 |
-
|
247 |
/* Style for add-on checkboxes */
|
248 |
.addon-section .form-check {
|
249 |
margin-left: 10px;
|
250 |
}
|
251 |
-
|
252 |
/* Category Filter with Custom Radio Buttons */
|
253 |
form.text-center.mb-4 {
|
254 |
display: flex;
|
|
|
|
|
255 |
flex-direction: column;
|
256 |
align-items: center;
|
257 |
justify-content: center;
|
258 |
margin-bottom: 5px; /* Reduce bottom margin */
|
259 |
}
|
260 |
-
|
261 |
.form-check {
|
262 |
display: inline-block;
|
263 |
-
margin-right:
|
264 |
margin-bottom: 0; /* Remove bottom margin */
|
265 |
-
|
|
|
|
|
266 |
}
|
267 |
-
|
268 |
.form-check-inline {
|
269 |
display: inline-block;
|
270 |
-
margin-right:
|
271 |
}
|
272 |
-
|
273 |
.form-check-label {
|
|
|
274 |
font-size: 16px;
|
275 |
-
margin-left:
|
276 |
vertical-align: middle; /* Align label vertically */
|
277 |
}
|
278 |
-
|
279 |
.custom-radio {
|
280 |
appearance: none;
|
281 |
-webkit-appearance: none;
|
@@ -284,36 +256,32 @@ form.text-center.mb-4 {
|
|
284 |
height: 20px;
|
285 |
border: 3px solid #4CAF50; /* Green border */
|
286 |
border-radius: 50%;
|
287 |
-
margin-right: 5px; /* Reduced spacing between button and label */
|
288 |
outline: none;
|
289 |
cursor: pointer;
|
290 |
position: relative;
|
291 |
display: inline-block;
|
|
|
292 |
}
|
293 |
-
|
294 |
.custom-radio:checked {
|
295 |
background-color: #4CAF50; /* Green color when checked */
|
296 |
border-color: #4CAF50; /* Matching border color */
|
297 |
}
|
298 |
-
|
299 |
.custom-radio:checked::after {
|
300 |
content: '';
|
301 |
-
position:
|
302 |
top: 5px;
|
303 |
left: 5px;
|
304 |
border-radius: 50%;
|
|
|
305 |
}
|
306 |
-
|
307 |
.custom-radio:hover {
|
308 |
border-color: #388E3C;
|
309 |
}
|
310 |
-
|
311 |
/* Optional: Style the labels */
|
312 |
.form-check-label {
|
313 |
font-size: 16px;
|
314 |
-
margin-left:
|
315 |
}
|
316 |
-
|
317 |
.cart-container {
|
318 |
display: flex;
|
319 |
align-items: center;
|
@@ -325,24 +293,20 @@ form.text-center.mb-4 {
|
|
325 |
justify-content: space-between; /* Space between quantity and Add to Cart button */
|
326 |
padding: 10px;
|
327 |
}
|
328 |
-
|
329 |
.modal-footer .d-flex {
|
330 |
display: flex;
|
331 |
align-items: center;
|
332 |
gap: 10px; /* Space between quantity buttons */
|
333 |
}
|
334 |
-
|
335 |
.modal-footer .btn {
|
336 |
height: 40px; /* Set consistent button height */
|
337 |
padding: 0 15px; /* Adjust padding to fit inside the buttons */
|
338 |
}
|
339 |
-
|
340 |
.modal-footer .form-control {
|
341 |
width: 50px; /* Fixed width for quantity input */
|
342 |
height: 40px; /* Match the height of buttons */
|
343 |
text-align: center; /* Center the value inside the input */
|
344 |
}
|
345 |
-
|
346 |
.modal-footer .btn-primary {
|
347 |
background-color: #0FAA39; /* Green background for Add to Cart button */
|
348 |
border-color: #0FAA39; /* Border color to match button background */
|
@@ -354,28 +318,23 @@ form.text-center.mb-4 {
|
|
354 |
align-items: center;
|
355 |
width: auto; /* Auto width to adjust to button text */
|
356 |
}
|
357 |
-
|
358 |
.modal-footer .btn-outline-secondary {
|
359 |
height: 40px; /* Ensure quantity buttons are the same size */
|
360 |
width: 40px; /* Make sure the buttons are square */
|
361 |
}
|
362 |
-
|
363 |
@media (max-width: 576px) {
|
364 |
/* Responsive adjustments for smaller screens */
|
365 |
.modal-dialog {
|
366 |
-
max-width:
|
367 |
}
|
368 |
-
|
369 |
.modal-footer .btn {
|
370 |
height: 35px; /* Smaller buttons for small screens */
|
371 |
}
|
372 |
-
|
373 |
.modal-footer .form-control {
|
374 |
width: 40px; /* Adjust input size for smaller screens */
|
375 |
height: 35px;
|
376 |
}
|
377 |
}
|
378 |
-
|
379 |
</style>
|
380 |
</head>
|
381 |
<body>
|
|
|
8 |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
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;
|
|
|
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;
|
|
|
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;
|
|
|
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;
|
|
|
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;
|
|
|
98 |
font-size: 20px;
|
99 |
font-weight: bold;
|
100 |
}
|
|
|
101 |
.dropdown-menu {
|
102 |
position: absolute;
|
103 |
right: 0;
|
|
|
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;
|
|
|
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 */
|
|
|
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 */
|
|
|
176 |
align-items: right;
|
177 |
justify-content: center;
|
178 |
}
|
|
|
179 |
.search-bar-container {
|
180 |
padding: 10px;
|
181 |
position: absolute;
|
|
|
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 */
|
|
|
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: #fff; /* 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 |
}
|
|
|
212 |
/* Customization section title */
|
213 |
.addon-section h6 {
|
214 |
margin-bottom: 10px;
|
215 |
font-size: 1.1rem;
|
216 |
font-weight: bold;
|
217 |
+
color: #666;
|
218 |
}
|
|
|
219 |
/* Style for add-on checkboxes */
|
220 |
.addon-section .form-check {
|
221 |
margin-left: 10px;
|
222 |
}
|
|
|
223 |
/* Category Filter with Custom Radio Buttons */
|
224 |
form.text-center.mb-4 {
|
225 |
display: flex;
|
226 |
+
/*flex-wrap: wrap; /* Allow wrapping if needed */
|
227 |
+
/*gap: 15px;/* Add gap between the radio buttons */
|
228 |
flex-direction: column;
|
229 |
align-items: center;
|
230 |
justify-content: center;
|
231 |
margin-bottom: 5px; /* Reduce bottom margin */
|
232 |
}
|
|
|
233 |
.form-check {
|
234 |
display: inline-block;
|
235 |
+
margin-right: 15px; /* Reduced space between radio button and label */
|
236 |
margin-bottom: 0; /* Remove bottom margin */
|
237 |
+
margin-top: 10px; /* Adds space between categories and Customized Dish */
|
238 |
+
gap: 10px; /* Add gap between the radio button and the label */
|
239 |
+
/* vertical-align: middle; /* Align radio buttons vertically */
|
240 |
}
|
|
|
241 |
.form-check-inline {
|
242 |
display: inline-block;
|
243 |
+
margin-right: 20px; /* Decrease space between each radio button */
|
244 |
}
|
|
|
245 |
.form-check-label {
|
246 |
+
display: inline-block;
|
247 |
font-size: 16px;
|
248 |
+
margin-left: 5px; /* Spacing between radio button and label */
|
249 |
vertical-align: middle; /* Align label vertically */
|
250 |
}
|
|
|
251 |
.custom-radio {
|
252 |
appearance: none;
|
253 |
-webkit-appearance: none;
|
|
|
256 |
height: 20px;
|
257 |
border: 3px solid #4CAF50; /* Green border */
|
258 |
border-radius: 50%;
|
|
|
259 |
outline: none;
|
260 |
cursor: pointer;
|
261 |
position: relative;
|
262 |
display: inline-block;
|
263 |
+
vertical-align: middle; /* Align vertically with text */
|
264 |
}
|
|
|
265 |
.custom-radio:checked {
|
266 |
background-color: #4CAF50; /* Green color when checked */
|
267 |
border-color: #4CAF50; /* Matching border color */
|
268 |
}
|
|
|
269 |
.custom-radio:checked::after {
|
270 |
content: '';
|
271 |
+
position: relative;
|
272 |
top: 5px;
|
273 |
left: 5px;
|
274 |
border-radius: 50%;
|
275 |
+
padding: 15px;
|
276 |
}
|
|
|
277 |
.custom-radio:hover {
|
278 |
border-color: #388E3C;
|
279 |
}
|
|
|
280 |
/* Optional: Style the labels */
|
281 |
.form-check-label {
|
282 |
font-size: 16px;
|
283 |
+
margin-left: 0px; /* Space between the radio button and the label */
|
284 |
}
|
|
|
285 |
.cart-container {
|
286 |
display: flex;
|
287 |
align-items: center;
|
|
|
293 |
justify-content: space-between; /* Space between quantity and Add to Cart button */
|
294 |
padding: 10px;
|
295 |
}
|
|
|
296 |
.modal-footer .d-flex {
|
297 |
display: flex;
|
298 |
align-items: center;
|
299 |
gap: 10px; /* Space between quantity buttons */
|
300 |
}
|
|
|
301 |
.modal-footer .btn {
|
302 |
height: 40px; /* Set consistent button height */
|
303 |
padding: 0 15px; /* Adjust padding to fit inside the buttons */
|
304 |
}
|
|
|
305 |
.modal-footer .form-control {
|
306 |
width: 50px; /* Fixed width for quantity input */
|
307 |
height: 40px; /* Match the height of buttons */
|
308 |
text-align: center; /* Center the value inside the input */
|
309 |
}
|
|
|
310 |
.modal-footer .btn-primary {
|
311 |
background-color: #0FAA39; /* Green background for Add to Cart button */
|
312 |
border-color: #0FAA39; /* Border color to match button background */
|
|
|
318 |
align-items: center;
|
319 |
width: auto; /* Auto width to adjust to button text */
|
320 |
}
|
|
|
321 |
.modal-footer .btn-outline-secondary {
|
322 |
height: 40px; /* Ensure quantity buttons are the same size */
|
323 |
width: 40px; /* Make sure the buttons are square */
|
324 |
}
|
|
|
325 |
@media (max-width: 576px) {
|
326 |
/* Responsive adjustments for smaller screens */
|
327 |
.modal-dialog {
|
328 |
+
max-width: 98%; /* Adjust modal width for smaller screens */
|
329 |
}
|
|
|
330 |
.modal-footer .btn {
|
331 |
height: 35px; /* Smaller buttons for small screens */
|
332 |
}
|
|
|
333 |
.modal-footer .form-control {
|
334 |
width: 40px; /* Adjust input size for smaller screens */
|
335 |
height: 35px;
|
336 |
}
|
337 |
}
|
|
|
338 |
</style>
|
339 |
</head>
|
340 |
<body>
|