Subbu1304 commited on
Commit
67733fa
·
verified ·
1 Parent(s): 8b10ac4

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +107 -4
templates/menu.html CHANGED
@@ -41,11 +41,80 @@
41
  margin-top:1px;
42
  }
43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
 
46
 
47
 
48
 
 
 
 
 
 
 
49
 
50
  body {
51
  font-family: Arial, sans-serif;
@@ -419,7 +488,7 @@ form-check-input addon-option{
419
  align-items: center;
420
  gap: 10px;
421
  }
422
- .modal-footer {
423
  display: flex;
424
  align-items: center;
425
  justify-content: space-between; /* Space between quantity and Add to Cart button */
@@ -466,7 +535,7 @@ form-check-input addon-option{
466
  width: 40px; /* Adjust input size for smaller screens */
467
  height: 35px;
468
  }
469
- }
470
  </style>
471
  </head>
472
  <body>
@@ -615,7 +684,7 @@ form-check-input addon-option{
615
  </div>
616
 
617
  <!-- Modal for Item Details -->
618
- <div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
619
  <div class="modal-dialog modal-dialog-centered">
620
  <div class="modal-content">
621
  <div class="modal-header">
@@ -655,7 +724,41 @@ form-check-input addon-option{
655
  </div>
656
  </div>
657
  </div>
658
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
659
 
660
  <!-- JavaScript -->
661
  <script>
 
41
  margin-top:1px;
42
  }
43
 
44
+ .modal-footer {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: space-between; /* Space between quantity controls and Add to Cart button */
48
+ padding: 10px;
49
+ }
50
+
51
+ .modal-footer .d-flex {
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 10px; /* Space between quantity buttons */
55
+ }
56
+
57
+ .modal-footer .btn {
58
+ height: 40px; /* Set consistent button height */
59
+ padding: 0 15px; /* Adjust padding to fit inside the buttons */
60
+ }
61
+
62
+ .modal-footer .form-control {
63
+ width: 50px; /* Fixed width for quantity input */
64
+ height: 40px; /* Match the height of buttons */
65
+ text-align: center; /* Center the value inside the input */
66
+ }
67
+
68
+ .modal-footer .btn-primary {
69
+ background-color: #0FAA39; /* Green background for Add to Cart button */
70
+ border-color: #0FAA39; /* Border color to match button background */
71
+ font-weight: bold; /* Bold text */
72
+ padding: 10px 20px; /* Adjust padding to make the button look better */
73
+ height: 40px; /* Match the height with quantity buttons */
74
+ display: flex;
75
+ justify-content: center;
76
+ align-items: center;
77
+ width: auto; /* Auto width to adjust to button text */
78
+ border-radius: 5px; /* Rounded corners for the button */
79
+ }
80
+
81
+ .modal-footer .btn-outline-secondary {
82
+ height: 40px; /* Ensure quantity buttons are the same size */
83
+ width: 40px; /* Make sure the buttons are square */
84
+ border-radius: 5px; /* Rounded corners for the buttons */
85
+ }
86
+
87
+ @media (max-width: 576px) {
88
+ /* Responsive adjustments for smaller screens */
89
+ .modal-dialog {
90
+ max-width: 98%; /* Adjust modal width for smaller screens */
91
+ }
92
+
93
+ .modal-footer .btn {
94
+ height: 35px; /* Smaller buttons for small screens */
95
+ padding: 0 12px; /* Adjust padding to make the button look proportional */
96
+ }
97
+
98
+ .modal-footer .form-control {
99
+ width: 40px; /* Adjust input size for smaller screens */
100
+ height: 35px;
101
+ }
102
+
103
+ .modal-footer .d-flex {
104
+ gap: 8px; /* Reduce space between quantity buttons on smaller screens */
105
+ }
106
+ }
107
 
108
 
109
 
110
 
111
 
112
+
113
+
114
+
115
+
116
+
117
+
118
 
119
  body {
120
  font-family: Arial, sans-serif;
 
488
  align-items: center;
489
  gap: 10px;
490
  }
491
+ /* .modal-footer {
492
  display: flex;
493
  align-items: center;
494
  justify-content: space-between; /* Space between quantity and Add to Cart button */
 
535
  width: 40px; /* Adjust input size for smaller screens */
536
  height: 35px;
537
  }
538
+ } */
539
  </style>
540
  </head>
541
  <body>
 
684
  </div>
685
 
686
  <!-- Modal for Item Details -->
687
+ <!-- <div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
688
  <div class="modal-dialog modal-dialog-centered">
689
  <div class="modal-content">
690
  <div class="modal-header">
 
724
  </div>
725
  </div>
726
  </div>
727
+ </div> -->
728
+ <div class="modal fade" id="itemModal" tabindex="-1" aria-labelledby="itemModalLabel" aria-hidden="true">
729
+ <div class="modal-dialog modal-dialog-centered">
730
+ <div class="modal-content">
731
+ <div class="modal-header">
732
+ <h5 class="modal-title" id="itemModalLabel">Item Details</h5>
733
+ <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
734
+ </div>
735
+ <div class="modal-body">
736
+ <!-- Item Image -->
737
+ <img id="modal-img" class="img-fluid rounded mb-3 d-block mx-auto" alt="Item Image" style="max-height: 200px; object-fit: cover;">
738
+ <!-- Item Name -->
739
+ <h5 id="modal-name" class="fw-bold text-center"></h5>
740
+ <!-- Item Price -->
741
+ <p id="modal-price" class="text-muted text-center"></p>
742
+ <!-- Item Description -->
743
+ <p id="modal-description" class="text-secondary"></p>
744
+ <!-- Add-ons -->
745
+ <div id="modal-addons" class="modal-addons mt-4">
746
+ <h6>Customization Options</h6>
747
+ <div id="addons-list" class="addons-container">Loading customization options...</div>
748
+ </div>
749
+ <div class="mt-4">
750
+ <h6>Custom Request</h6>
751
+ <textarea id="modal-instructions" class="form-control" placeholder="Enter any special instructions here..."></textarea>
752
+ </div>
753
+ <span id="modal-section" data-section="" data-category="" style="display: none;"></span>
754
+ </div>
755
+ <!-- Quantity Controls and Add to Cart Button -->
756
+ <div class="modal-footer d-flex align-items-center justify-content-between">
757
+ <!-- Quantity Controls -->
758
+ <div class="d-flex align-items-center gap-2">
759
+ <button type="button" class="btn btn-outline-secondary" id="decreaseQuantity">-</button>
760
+ <input type="text" class="form-control text-center" id="quantityInput" value="1" readonly style="width: 50px;
761
+
762
 
763
  <!-- JavaScript -->
764
  <script>