Spaces:
Sleeping
Sleeping
Update templates/menu.html
Browse files- templates/menu.html +57 -13
templates/menu.html
CHANGED
@@ -143,19 +143,24 @@
|
|
143 |
margin-top: 180px; /* Adjust spacing based on navbar and search bar */
|
144 |
}
|
145 |
.fixed-top-bar {
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
.search-bar-container {
|
161 |
margin-left: 20px;
|
@@ -365,6 +370,45 @@
|
|
365 |
<!-- Bootstrap JS -->
|
366 |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
367 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
368 |
<!-- JavaScript -->
|
369 |
<script>
|
370 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|
|
|
143 |
margin-top: 180px; /* Adjust spacing based on navbar and search bar */
|
144 |
}
|
145 |
.fixed-top-bar {
|
146 |
+
position: fixed;
|
147 |
+
top: 0;
|
148 |
+
left: 0;
|
149 |
+
width: 100%;
|
150 |
+
height: 44px;
|
151 |
+
z-index: 1000;
|
152 |
+
background-color: #FF6B35;
|
153 |
+
color: white;
|
154 |
+
padding: 15px;
|
155 |
+
display: flex;
|
156 |
+
justify-content: space-between;
|
157 |
+
align-items: center;
|
158 |
+
}
|
159 |
+
|
160 |
+
.avatar-dropdown-container {
|
161 |
+
position: relative;
|
162 |
+
margin-left: auto; /* Align to the right */
|
163 |
+
}
|
164 |
|
165 |
.search-bar-container {
|
166 |
margin-left: 20px;
|
|
|
370 |
<!-- Bootstrap JS -->
|
371 |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
372 |
|
373 |
+
<!-- Modal for Item Details -->
|
374 |
+
<div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
|
375 |
+
<div class="modal-dialog modal-dialog-centered">
|
376 |
+
<div class="modal-content">
|
377 |
+
<div class="modal-header">
|
378 |
+
<h5 class="modal-title" id="itemModalLabel">Item Details</h5>
|
379 |
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
380 |
+
</div>
|
381 |
+
<div class="modal-body">
|
382 |
+
<!-- Item Image -->
|
383 |
+
<img id="modal-img" class="img-fluid rounded mb-3 d-block mx-auto" alt="Item Image" style="max-height: 200px; object-fit: cover;">
|
384 |
+
<!-- Item Name -->
|
385 |
+
<h5 id="modal-name" class="fw-bold text-center"></h5>
|
386 |
+
<!-- Item Price -->
|
387 |
+
<p id="modal-price" class="text-muted text-center"></p>
|
388 |
+
<!-- Item Description -->
|
389 |
+
<p id="modal-description" class="text-secondary"></p>
|
390 |
+
<!-- Add-ons -->
|
391 |
+
<div id="modal-addons" class="modal-addons mt-4">
|
392 |
+
<h6>Customization Options</h6>
|
393 |
+
<div id="addons-list" class="addons-container">Loading customization options...</div>
|
394 |
+
</div>
|
395 |
+
|
396 |
+
|
397 |
+
<div class="mt-4">
|
398 |
+
<h6>Custom Request</h6>
|
399 |
+
<textarea id="modal-instructions" class="form-control" placeholder="Enter any special instructions here..."></textarea>
|
400 |
+
</div>
|
401 |
+
<span id="modal-section" data-section="" data-category="" style="display: none;"></span>
|
402 |
+
|
403 |
+
</div>
|
404 |
+
<div class="modal-footer">
|
405 |
+
<button type="button" class="btn btn-primary" onclick="addToCartFromModal()">Add to Cart</button>
|
406 |
+
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
407 |
+
</div>
|
408 |
+
</div>
|
409 |
+
</div>
|
410 |
+
</div>
|
411 |
+
|
412 |
<!-- JavaScript -->
|
413 |
<script>
|
414 |
function showItemDetails(name, price, image, description, section, selectedCategory) {
|