Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- 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 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 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>
|