Spaces:
Sleeping
Sleeping
Rename templates/popup_card.html to templates/card.html
Browse files- templates/card.html +7 -0
- templates/popup_card.html +0 -13
templates/card.html
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div class="popup-card">
|
| 2 |
+
<h3>{{ dish_name }}</h3>
|
| 3 |
+
<img src="{{ image_path }}" alt="{{ dish_name }}">
|
| 4 |
+
<p><strong>Portion Size:</strong> {{ portion_size }}</p>
|
| 5 |
+
<textarea placeholder="Add your custom preferences here"></textarea>
|
| 6 |
+
<button>Add to Cart</button>
|
| 7 |
+
</div>
|
templates/popup_card.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
| 1 |
-
<div class="popup-container">
|
| 2 |
-
<h3>{{ item_name }}</h3>
|
| 3 |
-
<model-viewer src="{{ model_path }}" alt="3D Model of {{ item_name }}" auto-rotate camera-controls></model-viewer>
|
| 4 |
-
<textarea placeholder="Special Instructions"></textarea>
|
| 5 |
-
<input type="number" min="10" max="20" placeholder="Quantity">
|
| 6 |
-
<button>Add to Cart</button>
|
| 7 |
-
<button onclick="closePopup()">Close</button>
|
| 8 |
-
</div>
|
| 9 |
-
<script>
|
| 10 |
-
function closePopup() {
|
| 11 |
-
document.querySelector('.popup-container').style.display = 'none';
|
| 12 |
-
}
|
| 13 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|