DSatishchandra commited on
Commit
0f93446
·
verified ·
1 Parent(s): 341d509

Update templates/menu.html

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