Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -346,17 +346,17 @@ def app():
|
|
| 346 |
|
| 347 |
# Modal window
|
| 348 |
modal_window = gr.HTML("""
|
| 349 |
-
<div id="modal" style="display: none; position: fixed; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000; width: 90%; max-width: 500px; height: 750px; overflow-y:
|
| 350 |
<div style="text-align: right; height: 30px;">
|
| 351 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer; height: 30px; width: 30px;">×</button>
|
| 352 |
</div>
|
| 353 |
-
<img id="modal-image" style="width: 100%; height: 300px; border-radius: 8px; margin-bottom:
|
| 354 |
<h2 id="modal-name" style="font-size: 20px; height: auto; margin-bottom: 10px;"></h2>
|
| 355 |
<p id="modal-description" style="font-size: 16px; height: auto; margin-bottom: 10px;"></p>
|
| 356 |
-
<p id="modal-price" style="font-size: 16px; height: auto; margin-bottom:
|
| 357 |
<!-- Biryani Extras -->
|
| 358 |
-
<label for="biryani-extras" style="display: block; font-size: 14px; margin-bottom:
|
| 359 |
-
<div id="biryani-extras-options" style="display: flex; flex-wrap: wrap; gap:
|
| 360 |
<label><input type="checkbox" name="biryani-extra" value="Thums up" /> Thums up + $2.00</label>
|
| 361 |
<label><input type="checkbox" name="biryani-extra" value="Sprite" /> Sprite + $2.00</label>
|
| 362 |
<label><input type="checkbox" name="biryani-extra" value="Extra Raitha" /> Extra Raitha + $1.00</label>
|
|
@@ -372,10 +372,12 @@ def app():
|
|
| 372 |
</div>
|
| 373 |
<div style="margin-bottom: 10px;">
|
| 374 |
<label for="special-instructions" style="display: block; font-size: 14px; margin-bottom: 5px;">Special Instructions:</label>
|
| 375 |
-
<textarea id="special-instructions" placeholder="Add special instructions here..." style="width: 100%; height:
|
| 376 |
</div>
|
| 377 |
<!-- Add to Cart Button -->
|
| 378 |
-
<
|
|
|
|
|
|
|
| 379 |
</div>
|
| 380 |
""")
|
| 381 |
# Update menu dynamically based on preference
|
|
|
|
| 346 |
|
| 347 |
# Modal window
|
| 348 |
modal_window = gr.HTML("""
|
| 349 |
+
<div id="modal" style="display: none; position: fixed; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000; width: 90%; max-width: 500px; height: 750px; overflow-y: hidden;">
|
| 350 |
<div style="text-align: right; height: 30px;">
|
| 351 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer; height: 30px; width: 30px;">×</button>
|
| 352 |
</div>
|
| 353 |
+
<img id="modal-image" style="width: 100%; height: 300px; border-radius: 8px; margin-bottom: 10px;" />
|
| 354 |
<h2 id="modal-name" style="font-size: 20px; height: auto; margin-bottom: 10px;"></h2>
|
| 355 |
<p id="modal-description" style="font-size: 16px; height: auto; margin-bottom: 10px;"></p>
|
| 356 |
+
<p id="modal-price" style="font-size: 16px; height: auto; margin-bottom: 15px;"></p>
|
| 357 |
<!-- Biryani Extras -->
|
| 358 |
+
<label for="biryani-extras" style="display: block; font-size: 14px; margin-bottom: 5px;">Extras :</label>
|
| 359 |
+
<div id="biryani-extras-options" style="display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; height: 80px; overflow-y: auto;">
|
| 360 |
<label><input type="checkbox" name="biryani-extra" value="Thums up" /> Thums up + $2.00</label>
|
| 361 |
<label><input type="checkbox" name="biryani-extra" value="Sprite" /> Sprite + $2.00</label>
|
| 362 |
<label><input type="checkbox" name="biryani-extra" value="Extra Raitha" /> Extra Raitha + $1.00</label>
|
|
|
|
| 372 |
</div>
|
| 373 |
<div style="margin-bottom: 10px;">
|
| 374 |
<label for="special-instructions" style="display: block; font-size: 14px; margin-bottom: 5px;">Special Instructions:</label>
|
| 375 |
+
<textarea id="special-instructions" placeholder="Add special instructions here..." style="width: 100%; height: 80px; font-size: 14px;"></textarea>
|
| 376 |
</div>
|
| 377 |
<!-- Add to Cart Button -->
|
| 378 |
+
<div style="text-align: center; margin-top: 10px;">
|
| 379 |
+
<button style="background-color: #28a745; color: white; border: none; padding: 10px 20px; font-size: 14px; border-radius: 5px; cursor: pointer; height: 40px; width: auto;">Add to Cart</button>
|
| 380 |
+
</div>
|
| 381 |
</div>
|
| 382 |
""")
|
| 383 |
# Update menu dynamically based on preference
|