Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- templates/index.html +39 -0
templates/index.html
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Dynamic Food Menu</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div id="menu-items">
|
| 11 |
+
<div class="food-item">
|
| 12 |
+
<img src="images/veg-samosa.jpg" alt="Veg Samosa" class="food-image" data-item="Veg Samosa">
|
| 13 |
+
<p>Veg Samosa - $9</p>
|
| 14 |
+
<button class="add-button" data-item="Veg Samosa">Add</button>
|
| 15 |
+
</div>
|
| 16 |
+
<div class="food-item">
|
| 17 |
+
<img src="images/onion-pakoda.jpg" alt="Onion Pakoda" class="food-image" data-item="Onion Pakoda">
|
| 18 |
+
<p>Onion Pakoda - $10</p>
|
| 19 |
+
<button class="add-button" data-item="Onion Pakoda">Add</button>
|
| 20 |
+
</div>
|
| 21 |
+
<!-- Add more items here -->
|
| 22 |
+
</div>
|
| 23 |
+
|
| 24 |
+
<!-- Modal -->
|
| 25 |
+
<div id="suggestion-modal" class="modal">
|
| 26 |
+
<div class="modal-content">
|
| 27 |
+
<span class="close-button">×</span>
|
| 28 |
+
<h3 id="selected-item"></h3>
|
| 29 |
+
<p>Suggested Combinations:</p>
|
| 30 |
+
<ul id="suggestion-list"></ul>
|
| 31 |
+
<label for="quantity">Quantity:</label>
|
| 32 |
+
<input type="number" id="quantity" value="1" min="1">
|
| 33 |
+
<button id="add-to-cart-button">Add to Cart</button>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<script src="script.js"></script>
|
| 38 |
+
</body>
|
| 39 |
+
</html>
|