Spaces:
Sleeping
Sleeping
Create popup_card.html
Browse files- templates/popup_card.html +13 -0
templates/popup_card.html
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="1" max="10" 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>
|