-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
344 lines (344 loc) ยท 14.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IndianTreats - Order Delicious Samosa and Roll ๐ด</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<style>
body {
font-family: Arial, sans-serif;
}
.hero {
background-image: linear-gradient(to bottom, #ffd7b3, #ffe6cc);
color: #fff;
padding: 100px;
text-align: center;
}
.hero h1 {
font-size: 48px;
animation: fadeInDown 1s;
}
.features {
background-color: #f7f7f7;
padding: 50px;
text-align: center;
}
.features h2 {
font-size: 36px;
margin-bottom: 20px;
}
.menu {
background-color: #fefefe;
padding: 50px;
text-align: center;
}
.menu-item {
background-color: #fff;
padding: 20px;
margin: 20px;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.order {
background-color: #add8e6;
padding: 50px;
text-align: center;
}
.order-form {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #f7f7f7;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.catering {
background-color: #c6efce;
padding: 50px;
text-align: center;
}
.catering-form {
max-width: 500px;
margin: 0 auto;
padding: 20px;
background-color: #f7f7f7;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.halal-cert {
background-color: #f5f5dc;
padding: 50px;
text-align: center;
}
.footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
}
.menu img {
width: 150px;
height: 150px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 20px;
}
.halal-cert img {
width: 100%;
height: auto;
margin-bottom: 20px;
}
.navbar {
background-color: #333;
padding: 10px;
text-align: center;
}
.navbar a {
color: #fff;
text-decoration: none;
margin: 10px;
}
.fa {
font-size: 24px;
margin: 10px;
}
</style>
</head>
<body>
<nav class="navbar">
<a href="#hero">Home ๐ </a>
<a href="#features">Features ๐</a>
<a href="#menu">Menu ๐ด</a>
<a href="#order">Order Now! ๐๏ธ</a>
<a href="#catering">Catering ๐</a>
<a href="#halal-cert">Halal Certification ๐</a>
</nav>
<div id="hero" class="hero">
<h1>Welcome to IndianTreats! ๐</h1>
<p>Order delicious samosa and roll online at IndianTreats! ๐ด</p>
<button type="button" class="btn btn-secondary" data-bs-toggle="modal" data-bs-target="#translateModal">Translate ๐</button>
</div>
<div id="features" class="features">
<h2>Why Choose Us? ๐ค</h2>
<ul>
<li>Fresh and hygienic food ๐ฒ</li>
<li>Best taste in town ๐คค</li>
<li>Affordable prices ๐ธ</li>
</ul>
</div>
<div id="menu" class="menu">
<h2>Menu ๐ด</h2>
<div class="row">
<div class="col-md-6">
<div class="menu-item">
<img src="https://source.unsplash.com/150x150/?samosa" alt="Samosa">
<h3>Samosa ๐ด</h3>
<p>Price: $5 ๐ธ</p>
<p>Description: Crunchy pastry filled with spiced potatoes and peas. ๐ฅ</p>
</div>
</div>
<div class="col-md-6">
<div class="menu-item">
<img src="https://source.unsplash.com/150x150/?roll" alt="Roll">
<h3>Roll ๐ฅ</h3>
<p>Price: $6 ๐ธ</p>
<p>Description: Soft and fluffy roll filled with spiced chicken or vegetables. ๐</p>
</div>
</div>
</div>
</div>
<div id="order" class="order">
<h2>Order Now! ๐๏ธ</h2>
<p>Order your favorite samosa or roll now! ๐ด</p>
<div class="order-form">
<form>
<div class="form-group">
<label for="name">Name: ๐</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email: ๐ง</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="phone">Phone: ๐</label>
<input type="tel" id="phone" name="phone" required>
</div>
<div class="form-group">
<label for="order">Order: ๐ด</label>
<select id="order" name="order" required>
<option value="">Select an item ๐ค</option>
<option value="samosa">Samosa ($5) ๐ด</option>
<option value="roll">Roll ($6) ๐ฅ</option>
</select>
</div>
<div class="form-group">
<label for="flavor">Flavor: ๐ถ๏ธ</label>
<select id="flavor" name="flavor" required>
<option value="">Select a flavor ๐ค</option>
<option value="chicken">Chicken ($1 extra) ๐</option>
<option value="beef">Beef ($2 extra) ๐ฎ</option>
<option value="vegetable">Vegetable (no extra charge) ๐ฅ</option>
</select>
</div>
<div class="form-group">
<label for="spicylevel">Spicylevel: ๐ฅ</label>
<select id="spicylevel" name="spicylevel" required>
<option value="">Select a spicylevel ๐ค</option>
<option value="high">High ๐ฅ</option>
<option value="low">Low โ๏ธ</option>
</select>
</div>
<div class="form-group">
<label for="quantity">Quantity: ๐</label>
<input type="number" id="quantity" name="quantity" required>
</div>
<button type="button" id="order-now" class="btn btn-primary">Order Now! ๐๏ธ</button>
</form>
</div>
</div>
<div id="catering" class="catering">
<h2>Catering Services ๐</h2>
<p>We offer catering services for events and parties. Please fill out the form below to inquire about our catering packages. ๐</p>
<div class="catering-form">
<form>
<div class="form-group">
<label for="catering-name">Name: ๐</label>
<input type="text" id="catering-name" name="catering-name" required>
</div>
<div class="form-group">
<label for="catering-email">Email: ๐ง</label>
<input type="email" id="catering-email" name="catering-email" required>
</div>
<div class="form-group">
<label for="catering-phone">Phone: ๐</label>
<input type="tel" id="catering-phone" name="catering-phone" required>
</div>
<div class="form-group">
<label for="catering-event">Event: ๐</label>
<input type="text" id="catering-event" name="catering-event" required>
</div>
<div class="form-group">
<label for="catering-guests">Number of Guests: ๐</label>
<input type="number" id="catering-guests" name="catering-guests" required>
</div>
<button type="submit" class="btn btn-primary">Inquire About Catering ๐จ</button>
</form>
</div>
<h3>Catering Packages ๐</h3>
<ul>
<li>Package 1: $500 (50 guests) ๐</li>
<li>Package 2: $1000 (100 guests) ๐</li>
<li>Package 3: $1500 (150 guests) ๐</li>
</ul>
</div>
<div id="halal-cert" class="halal-cert">
<h2>Halal Certificate ๐</h2>
<p>We are proud to announce that our food is certified Halal by the relevant authorities. ๐</p>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#halalModal">View Certificate ๐</button>
</div>
<div class="footer">
<p> 2023 IndianTreats. All rights reserved. ๐</p>
<ul>
<li><a href="#" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i> Facebook</a></li>
<li><a href="#" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i> Instagram</a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i> Twitter</a></li>
</ul>
</div>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Order Confirmation ๐</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="order-detail">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close ๐ซ</button>
</div>
</div>
</div>
</div>
<div id="halalModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Halal Certificate ๐</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<img src="https://source.unsplash.com/800x600/?halal-certificate" alt="Halal Certificate" class="img-fluid">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close ๐ซ</button>
</div>
</div>
</div>
</div>
<div id="translateModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Translate ๐</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div id="google_translate_element"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close ๐ซ</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
$(document).ready(function() {
$('#order-now').click(function() {
var name = $('#name').val();
var email = $('#email').val();
var phone = $('#phone').val();
var order = $('#order').val();
var flavor = $('#flavor').val();
var spicylevel = $('#spicylevel').val();
var quantity = parseInt($('#quantity').val());
var price = 0;
if (order == 'samosa') {
price = 5 * quantity;
} else if (order == 'roll') {
price = 6 * quantity;
}
if (flavor == 'chicken') {
price += quantity;
} else if (flavor == 'beef') {
price += 2 * quantity;
}
var body = `
<h2>Order Details:</h2>
<p><b>Name:</b> ${name}</p>
<p><b>Email:</b> ${email}</p>
<p><b>Phone:</b> ${phone}</p>
<p><b>Order:</b> ${order}</p>
<p><b>Flavor:</b> ${flavor}</p>
<p><b>Spicylevel:</b> ${spicylevel}</p>
<p><b>Quantity:</b> ${quantity}</p>
<p><b>Total Price:</b> $${price}</p>
`;
$('#order-detail').html(body);
var mailTo = 'mailto:shop-mine-94@outlook.fr?subject=Order&body=' + encodeURIComponent(`Name: ${name}\nEmail: ${email}\nPhone: ${phone}\nOrder: ${order}\nFlavor: ${flavor}\nSpicylevel: ${spicylevel}\nQuantity: ${quantity}\nTotal Price: $${price}`);
window.location.href = mailTo;
$('#myModal').modal('show');
});
});
</script>
</body>
</html>