Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +43 -2
templates/menu.html
CHANGED
@@ -172,6 +172,33 @@
|
|
172 |
.addon-section .form-check {
|
173 |
margin-left: 10px;
|
174 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
</style>
|
176 |
</head>
|
177 |
<body>
|
@@ -192,7 +219,7 @@
|
|
192 |
</div>
|
193 |
|
194 |
<!-- Avatar and Dropdown -->
|
195 |
-
<div class="avatar-dropdown-container">
|
196 |
<div class="avatar-icon">
|
197 |
<!-- Use the first letter of the user's name for the avatar -->
|
198 |
<span>{{ first_letter }}</span> <!-- Display the first letter of the customer's name -->
|
@@ -203,7 +230,21 @@
|
|
203 |
<a href="{{ url_for('order_history') }}" class="dropdown-item">Order History</a>
|
204 |
<a href="{{ url_for('logout') }}" class="dropdown-item">Logout</a>
|
205 |
</div>
|
206 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
</div>
|
208 |
|
209 |
<div class="container mt-4">
|
|
|
172 |
.addon-section .form-check {
|
173 |
margin-left: 10px;
|
174 |
}
|
175 |
+
|
176 |
+
/* styel */
|
177 |
+
.button-group {
|
178 |
+
display: flex;
|
179 |
+
gap: 10px;
|
180 |
+
margin-top: 10px;
|
181 |
+
}
|
182 |
+
|
183 |
+
.btn {
|
184 |
+
padding: 10px 20px;
|
185 |
+
background-color: #007bff;
|
186 |
+
color: white;
|
187 |
+
border: none;
|
188 |
+
border-radius: 5px;
|
189 |
+
cursor: pointer;
|
190 |
+
}
|
191 |
+
|
192 |
+
.btn:hover {
|
193 |
+
background-color: #0056b3;
|
194 |
+
}
|
195 |
+
|
196 |
+
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
|
201 |
+
|
202 |
</style>
|
203 |
</head>
|
204 |
<body>
|
|
|
219 |
</div>
|
220 |
|
221 |
<!-- Avatar and Dropdown -->
|
222 |
+
<!-- <div class="avatar-dropdown-container">
|
223 |
<div class="avatar-icon">
|
224 |
<!-- Use the first letter of the user's name for the avatar -->
|
225 |
<span>{{ first_letter }}</span> <!-- Display the first letter of the customer's name -->
|
|
|
230 |
<a href="{{ url_for('order_history') }}" class="dropdown-item">Order History</a>
|
231 |
<a href="{{ url_for('logout') }}" class="dropdown-item">Logout</a>
|
232 |
</div>
|
233 |
+
</div> --
|
234 |
+
<div class="avatar-dropdown-container">
|
235 |
+
<div class="avatar-icon">
|
236 |
+
<!-- Use the first letter of the user's name for the avatar -->
|
237 |
+
<span>{{ first_letter }}</span> <!-- Display the first letter of the customer's name -->
|
238 |
+
</div>
|
239 |
+
<div class="button-group">
|
240 |
+
<!-- Replace the dropdown menu with buttons -->
|
241 |
+
<button class="btn filter-btn" onclick="filterItems('all')">All</button>
|
242 |
+
<button class="btn filter-btn" onclick="filterItems('veg')">Veg</button>
|
243 |
+
<button class="btn filter-btn" onclick="filterItems('non-veg')">Non-Veg</button>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
|
247 |
+
|
248 |
</div>
|
249 |
|
250 |
<div class="container mt-4">
|