Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,27 +56,45 @@ with gr.Blocks() as demo:
|
|
| 56 |
with gr.Row():
|
| 57 |
gr.HTML(generate_food_menu()) # Render food menu
|
| 58 |
gr.HTML("""
|
| 59 |
-
<div id=\"popup\" class=\"popup\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); width:
|
| 60 |
<div class=\"popup-content\" style=\"background:#fff; padding:20px; border-radius:15px; width:100%; text-align:center;\">
|
| 61 |
<img id=\"popup-image\" src=\"\" alt=\"Food Image\" style=\"width:100%; height:auto; border-radius:10px;\">
|
| 62 |
<h2 id=\"popup-name\" style=\"margin: 15px 0;\"></h2>
|
| 63 |
<p id=\"popup-price\" style=\"margin: 0; font-size: 16px; color: #333;\"></p>
|
| 64 |
<p id=\"popup-description\" style=\"margin: 10px 0; font-size: 14px; color: #666;\"></p>
|
| 65 |
<div style=\"margin: 10px 0; text-align: left;\">
|
| 66 |
-
<h4>Choose a spice level:</h4>
|
|
|
|
| 67 |
<div style=\"display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;\">
|
| 68 |
-
<label><input type=\"radio\" name=\"spice-level\"> Mild</label>
|
| 69 |
-
<label><input type=\"radio\" name=\"spice-level\"> Medium</label>
|
| 70 |
-
<label><input type=\"radio\" name=\"spice-level\"> Spicy</label>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</div>
|
| 72 |
-
<h4 style=\"margin-top: 15px;\">
|
|
|
|
| 73 |
<div style=\"display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;\">
|
| 74 |
-
<label><input type=\"checkbox\"> Extra
|
| 75 |
-
<label><input type=\"checkbox\">
|
| 76 |
-
<label><input type=\"checkbox\"> Extra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
-
<button
|
| 80 |
</div>
|
| 81 |
</div>
|
| 82 |
""")
|
|
|
|
| 56 |
with gr.Row():
|
| 57 |
gr.HTML(generate_food_menu()) # Render food menu
|
| 58 |
gr.HTML("""
|
| 59 |
+
<div id=\"popup\" class=\"popup\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); max-width:90%; width:600px; background:rgba(255, 255, 255, 0.95); display:flex; flex-direction: column; justify-content:center; align-items:center; border-radius: 15px; padding: 20px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);\">
|
| 60 |
<div class=\"popup-content\" style=\"background:#fff; padding:20px; border-radius:15px; width:100%; text-align:center;\">
|
| 61 |
<img id=\"popup-image\" src=\"\" alt=\"Food Image\" style=\"width:100%; height:auto; border-radius:10px;\">
|
| 62 |
<h2 id=\"popup-name\" style=\"margin: 15px 0;\"></h2>
|
| 63 |
<p id=\"popup-price\" style=\"margin: 0; font-size: 16px; color: #333;\"></p>
|
| 64 |
<p id=\"popup-description\" style=\"margin: 10px 0; font-size: 14px; color: #666;\"></p>
|
| 65 |
<div style=\"margin: 10px 0; text-align: left;\">
|
| 66 |
+
<h4 style=\"margin-bottom: 5px;\">Choose a spice level:</h4>
|
| 67 |
+
<p style=\"font-size: 12px; color: #777; margin: 0 0 10px;\">Required - Choose 1.</p>
|
| 68 |
<div style=\"display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;\">
|
| 69 |
+
<label><input type=\"radio\" name=\"spice-level\"> American Mild</label>
|
| 70 |
+
<label><input type=\"radio\" name=\"spice-level\"> American Medium</label>
|
| 71 |
+
<label><input type=\"radio\" name=\"spice-level\"> American Spicy</label>
|
| 72 |
+
<label><input type=\"radio\" name=\"spice-level\"> Indian Mid</label>
|
| 73 |
+
<label><input type=\"radio\" name=\"spice-level\"> Indian Medium</label>
|
| 74 |
+
<label><input type=\"radio\" name=\"spice-level\"> Indian Spicy</label>
|
| 75 |
+
<label><input type=\"radio\" name=\"spice-level\"> Indian Very Spicy</label>
|
| 76 |
</div>
|
| 77 |
+
<h4 style=\"margin-top: 15px;\">Biryani Extra's</h4>
|
| 78 |
+
<p style=\"font-size: 12px; color: #777; margin: 0 0 10px;\">Optional - Choose as many as you like.</p>
|
| 79 |
<div style=\"display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;\">
|
| 80 |
+
<label><input type=\"checkbox\"> Extra Raitha 4oz + $1.00</label>
|
| 81 |
+
<label><input type=\"checkbox\"> Extra Raitha 8oz + $2.00</label>
|
| 82 |
+
<label><input type=\"checkbox\"> Extra Salan 4oz + $1.00</label>
|
| 83 |
+
<label><input type=\"checkbox\"> Extra Salan 8oz + $2.00</label>
|
| 84 |
+
<label><input type=\"checkbox\"> Extra Onion + $1.00</label>
|
| 85 |
+
<label><input type=\"checkbox\"> Extra Onion & Lemon + $2.00</label>
|
| 86 |
+
<label><input type=\"checkbox\"> Extra Fried Onion 4oz + $2.00</label>
|
| 87 |
+
</div>
|
| 88 |
+
<h4 style=\"margin-top: 15px;\">Special instructions</h4>
|
| 89 |
+
<textarea placeholder=\"Add any requests here.\" style=\"width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ddd;\"></textarea>
|
| 90 |
+
<h4 style=\"margin-top: 15px;\">Quantity</h4>
|
| 91 |
+
<div style=\"display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 15px;\">
|
| 92 |
+
<button style=\"padding: 5px 10px; font-size: 16px;\">-</button>
|
| 93 |
+
<input type=\"number\" value=\"1\" min=\"1\" style=\"width: 50px; text-align: center;\">
|
| 94 |
+
<button style=\"padding: 5px 10px; font-size: 16px;\">+</button>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
+
<button style=\"margin-top:20px; padding:10px 20px; background:purple; color:#fff; border:none; border-radius:5px; cursor:pointer;\">Add to Bag</button>
|
| 98 |
</div>
|
| 99 |
</div>
|
| 100 |
""")
|