Rammohan0504 commited on
Commit
3988812
·
verified ·
1 Parent(s): 50379b2

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +0 -153
index.html CHANGED
@@ -1,153 +0,0 @@
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>Biryani Hub Menu</title>
7
- <style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- background-color: #f8f9fa;
11
- margin: 0;
12
- padding: 0;
13
- }
14
- h1 {
15
- text-align: center;
16
- color: #444;
17
- }
18
- .category-buttons {
19
- text-align: center;
20
- margin: 20px 0;
21
- }
22
- .category-buttons button {
23
- margin: 5px;
24
- padding: 10px 20px;
25
- border: none;
26
- background-color: #007bff;
27
- color: white;
28
- border-radius: 5px;
29
- cursor: pointer;
30
- font-size: 16px;
31
- }
32
- .category-buttons button:hover {
33
- background-color: #0056b3;
34
- }
35
- #menu {
36
- display: flex;
37
- flex-wrap: wrap;
38
- justify-content: center;
39
- gap: 20px;
40
- }
41
- .dish-card {
42
- border: 1px solid #ddd;
43
- padding: 10px;
44
- border-radius: 10px;
45
- width: 200px;
46
- text-align: center;
47
- background-color: #fff;
48
- cursor: pointer;
49
- }
50
- .dish-card img {
51
- width: 100%;
52
- height: 120px;
53
- object-fit: cover;
54
- border-radius: 10px;
55
- }
56
- .details {
57
- text-align: center;
58
- margin: 20px;
59
- }
60
- .order-section {
61
- margin: 20px auto;
62
- text-align: center;
63
- }
64
- select, button {
65
- margin-top: 10px;
66
- padding: 8px;
67
- font-size: 16px;
68
- }
69
- </style>
70
- </head>
71
- <body>
72
- <h1>🍛 Biryani Hub Menu 🍛</h1>
73
-
74
- <div class="category-buttons">
75
- <button onclick="showMenu('ALL')">ALL</button>
76
- <button onclick="showMenu('VEGAN')">VEGAN</button>
77
- <button onclick="showMenu('HALAL')">HALAL</button>
78
- </div>
79
-
80
- <div id="menu"></div>
81
-
82
- <div class="details" id="dish-details" style="display: none;">
83
- <img id="dish-image" src="" alt="Dish Image" style="width: 200px; height: 150px; border-radius: 10px;">
84
- <h2 id="dish-name"></h2>
85
- <p id="dish-description"></p>
86
- <div class="order-section">
87
- <label for="spice-level">Spice Level:</label>
88
- <select id="spice-level">
89
- <option>🌶 Mild</option>
90
- <option>🌶🌶 Medium</option>
91
- <option>🌶🌶🌶 High</option>
92
- </select>
93
- <label for="portion-size">Portion Size:</label>
94
- <select id="portion-size">
95
- <option>🧆 Small</option>
96
- <option>🍽 Medium</option>
97
- <option>🍛 Large</option>
98
- </select>
99
- <br>
100
- <button onclick="placeOrder()">Place Order</button>
101
- </div>
102
- <h3 id="order-status"></h3>
103
- </div>
104
-
105
- <script>
106
- const menuData = [
107
- { name: "Veg Burger", category: "VEGAN", image: "https://upload.wikimedia.org/wikipedia/commons/6/6e/Veggie_burger.jpg", description: "A delicious vegan burger with plant-based patty, lettuce, and tomato." },
108
- { name: "Chicken Biryani", category: "HALAL", image: "https://upload.wikimedia.org/wikipedia/commons/7/79/Chicken_Biryani.jpg", description: "Spicy chicken biryani with aromatic basmati rice and tender chicken pieces." },
109
- { name: "Paneer Butter Masala", category: "VEGAN", image: "https://upload.wikimedia.org/wikipedia/commons/3/3d/Paneer_Butter_Masala.jpg", description: "Paneer cooked in a rich and creamy tomato-based gravy." },
110
- { name: "Beef Steak", category: "HALAL", image: "https://upload.wikimedia.org/wikipedia/commons/d/d5/Beef_Steak.jpg", description: "Juicy beef steak served with mashed potatoes and grilled vegetables." },
111
- { name: "Mushroom Soup", category: "VEGAN", image: "https://upload.wikimedia.org/wikipedia/commons/3/3c/Mushroom_Soup.jpg", description: "Creamy mushroom soup with fresh herbs." }
112
- ];
113
-
114
- function showMenu(category) {
115
- const menu = document.getElementById("menu");
116
- menu.innerHTML = ""; // Clear previous items
117
- const filteredDishes = menuData.filter(dish => category === "ALL" || dish.category === category);
118
- filteredDishes.forEach(dish => {
119
- const card = document.createElement("div");
120
- card.className = "dish-card";
121
- card.innerHTML = `
122
- <img src="${dish.image}" alt="${dish.name}">
123
- <h4>${dish.name}</h4>
124
- `;
125
- card.onclick = () => showDetails(dish);
126
- menu.appendChild(card);
127
- });
128
- }
129
-
130
- function showDetails(dish) {
131
- document.getElementById("dish-details").style.display = "block";
132
- document.getElementById("dish-image").src = dish.image;
133
- document.getElementById("dish-name").innerText = dish.name;
134
- document.getElementById("dish-description").innerText = dish.description;
135
- }
136
-
137
- function placeOrder() {
138
- const dishName = document.getElementById("dish-name").innerText;
139
- const spiceLevel = document.getElementById("spice-level").value;
140
- const portionSize = document.getElementById("portion-size").value;
141
-
142
- if (dishName) {
143
- document.getElementById("order-status").innerText = `✅ Order Confirmed: '${dishName}' with ${spiceLevel} spice level and ${portionSize} portion size.`;
144
- } else {
145
- document.getElementById("order-status").innerText = "⚠️ Please select a dish before placing an order.";
146
- }
147
- }
148
-
149
- // Show all dishes on load
150
- showMenu("ALL");
151
- </script>
152
- </body>
153
- </html>