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

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +73 -95
templates/menu.html CHANGED
@@ -8,7 +8,8 @@
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,10 +17,14 @@
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,20 +32,27 @@
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,22 +61,27 @@
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,13 +95,17 @@
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,6 +119,7 @@
98
  font-size: 20px;
99
  font-weight: bold;
100
  }
 
101
  .dropdown-menu {
102
  position: absolute;
103
  right: 0;
@@ -108,9 +130,11 @@
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,12 +142,16 @@
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,96 +165,17 @@
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%;
184
- transform: translateY(-50%);
185
- display: flex;
186
- justify-content: flex-start;
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 */
@@ -234,16 +183,20 @@ form.text-center.mb-4 {
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;
@@ -256,12 +209,14 @@ form.text-center.mb-4 {
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;
@@ -269,39 +224,56 @@ form.text-center.mb-4 {
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 */
@@ -313,23 +285,29 @@ form.text-center.mb-4 {
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>
 
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
+ /* General Body Styling */
12
+ body {
13
  font-family: Arial, sans-serif;
14
  background-color: #fdf4e3; /* Updated background color */
15
  margin: 0;
 
17
  display: flex;
18
  flex-direction: column;
19
  }
20
+
21
+ /* Container */
22
  .container {
23
  max-width: 900px;
24
+ margin-top: 10px;
25
  }
26
+
27
+ /* Menu Card */
28
  .menu-card {
29
  max-width: 350px;
30
  border-radius: 15px;
 
32
  background-color: #fff;
33
  margin: auto;
34
  }
35
+
36
+ /* Menu Image */
37
  .menu-image {
38
  height: 200px;
39
  width: 100%;
40
  object-fit: cover;
41
  border-radius: 15px 15px 0 0;
42
  }
43
+
44
+ /* Card Title and Text */
45
  .card-title {
46
  font-size: 1.2rem;
47
  font-weight: bold;
48
  }
49
+
50
  .card-text {
51
  font-size: 1rem;
52
  color: #6c757d;
53
  }
54
+
55
+ /* Button Primary */
56
  .btn-primary {
57
  font-size: 13px;
58
  font-weight: bold;
 
61
  background-color: #0FAA39; /* Updated button background color */
62
  border-color: #0FAA39;
63
  }
64
+
65
  .btn-primary:hover {
66
  background-color: #0FAA39;
67
  border-color: #ffffff;
68
  }
69
+
70
  .btn-primary:active,
71
  .btn-primary:focus {
72
  background-color: #4a5d68;
73
  border-color: #ffffff;
74
  box-shadow: none;
75
  }
76
+
77
+ /* View Cart Button */
78
  .view-cart-container {
79
  position: fixed;
80
  bottom: 20px;
81
  right: 20px;
82
  z-index: 999;
83
  }
84
+
85
  .view-cart-button {
86
  background-color: #0FAA39; /* Updated View Cart button background color */
87
  color: #fff;
 
95
  align-items: center;
96
  justify-content: center;
97
  }
98
+
99
  .view-cart-button:hover {
100
  background-color: #109835; /* Slightly darker shade for hover effect */
101
  text-decoration: none;
102
  }
103
+
104
+ /* Avatar Dropdown */
105
  .avatar-dropdown-container {
106
  position: relative;
107
  }
108
+
109
  .avatar-icon {
110
  width: 40px;
111
  height: 40px;
 
119
  font-size: 20px;
120
  font-weight: bold;
121
  }
122
+
123
  .dropdown-menu {
124
  position: absolute;
125
  right: 0;
 
130
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
131
  display: none;
132
  }
133
+
134
  .avatar-dropdown-container:hover .dropdown-menu {
135
  display: block;
136
  }
137
+
138
  .dropdown-menu .dropdown-item {
139
  padding: 10px 15px;
140
  text-decoration: none;
 
142
  border-bottom: 1px solid #ddd;
143
  display: block; /* Make each item stack vertically */
144
  }
145
+
146
  .dropdown-menu .dropdown-item:last-child {
147
  border-bottom: none; /* Remove the bottom border from the last item */
148
  }
149
+
150
  .dropdown-menu .dropdown-item:hover {
151
  background-color: #f1f1f1;
152
  }
153
+
154
+ /* Fixed Search Container */
155
  .fixed-search-container {
156
  position: absolute;
157
  top: 90px; /* Move it slightly lower */
 
165
  border-radius: 25px;
166
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
167
  }
168
+
169
+ /* Form Category Filter */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  form.text-center.mb-4 {
171
  display: flex;
172
  flex-direction: column;
173
  align-items: center;
174
  justify-content: center;
175
+ margin-bottom: 5px; /* Reduced bottom margin */
176
  }
177
+
178
+ /* Adjust Category Filter Radio Buttons */
179
  .form-check {
180
  display: inline-block;
181
  margin-right: 5px; /* Reduced space between radio button and label */
 
183
  margin-top: 10px; /* Adds space between categories and Customized Dish */
184
  vertical-align: middle; /* Align radio buttons vertically */
185
  }
186
+
187
  .form-check-inline {
188
  display: inline-block;
189
  margin-right: 5px; /* Decrease space between each radio button */
190
  }
191
+
192
  .form-check-label {
193
  display: inline-block;
194
  font-size: 16px;
195
  margin-left: 0px; /* Spacing between radio button and label */
196
  vertical-align: middle; /* Align label vertically */
197
  }
198
+
199
+ /* Custom Radio Button */
200
  .custom-radio {
201
  appearance: none;
202
  -webkit-appearance: none;
 
209
  cursor: pointer;
210
  position: relative;
211
  display: inline-block;
212
+ vertical-align: middle; /* Align vertically with text */
213
  }
214
+
215
  .custom-radio:checked {
216
  background-color: #4CAF50; /* Green color when checked */
217
  border-color: #4CAF50; /* Matching border color */
218
  }
219
+
220
  .custom-radio:checked::after {
221
  content: '';
222
  position: relative;
 
224
  left: 5px;
225
  border-radius: 50%;
226
  }
227
+
228
  .custom-radio:hover {
229
  border-color: #388E3C;
230
  }
231
+
232
+ /* Add-ons and Customization Sections */
233
+ .addon-section {
234
+ background-color: #f8f9fa; /* Light gray background */
235
+ border: 2px solid #ff6b35; /* Border color */
236
+ border-radius: 8px;
237
+ padding: 12px;
238
+ margin-bottom: 10px; /* Spacing between sections */
239
  }
240
+
241
+ .addon-section h6 {
242
+ margin-bottom: 10px;
243
+ font-size: 1.1rem;
244
+ font-weight: bold;
245
+ color: #444;
246
+ }
247
+
248
+ .addon-section .form-check {
249
+ margin-left: 10px;
250
  }
251
+
252
+ /* Modal Footer Styling */
253
  .modal-footer {
254
  display: flex;
255
  align-items: center;
256
  justify-content: space-between; /* Space between quantity and Add to Cart button */
257
  padding: 10px;
258
  }
259
+
260
  .modal-footer .d-flex {
261
  display: flex;
262
  align-items: center;
263
  gap: 10px; /* Space between quantity buttons */
264
  }
265
+
266
  .modal-footer .btn {
267
  height: 40px; /* Set consistent button height */
268
  padding: 0 15px; /* Adjust padding to fit inside the buttons */
269
  }
270
+
271
  .modal-footer .form-control {
272
  width: 50px; /* Fixed width for quantity input */
273
  height: 40px; /* Match the height of buttons */
274
  text-align: center; /* Center the value inside the input */
275
  }
276
+
277
  .modal-footer .btn-primary {
278
  background-color: #0FAA39; /* Green background for Add to Cart button */
279
  border-color: #0FAA39; /* Border color to match button background */
 
285
  align-items: center;
286
  width: auto; /* Auto width to adjust to button text */
287
  }
288
+
289
  .modal-footer .btn-outline-secondary {
290
  height: 40px; /* Ensure quantity buttons are the same size */
291
  width: 40px; /* Make sure the buttons are square */
292
  }
293
+
294
+ /* Responsive Adjustments */
295
  @media (max-width: 576px) {
296
  /* Responsive adjustments for smaller screens */
297
  .modal-dialog {
298
  max-width: 98%; /* Adjust modal width for smaller screens */
299
  }
300
+
301
  .modal-footer .btn {
302
  height: 35px; /* Smaller buttons for small screens */
303
  }
304
+
305
  .modal-footer .form-control {
306
  width: 40px; /* Adjust input size for smaller screens */
307
  height: 35px;
308
  }
309
  }
310
+
311
  </style>
312
  </head>
313
  <body>