-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
281 lines (249 loc) · 8.57 KB
/
Copy pathindex.html
File metadata and controls
281 lines (249 loc) · 8.57 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Eatery Spot</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
header {
background-color: #333;
padding: 1rem;
text-align: center;
color: white;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
display: inline-block;
margin-right: 20px;
}
nav ul li a {
color: white;
text-decoration: none;
}
.hero {
background-color: #f4a7a7; /* Pink background */
padding: 1rem 0;
color: white;
text-align: center;
position: relative;
overflow: hidden;
}
.hero-content {
z-index: 2;
padding: 0 20px;
}
.hero h2 {
font-size: 2.5em;
margin-bottom: 0.5em;
z-index: 2;
}
.hero p {
font-size: 1.2em;
margin-bottom: 1.5em;
z-index: 2;
}
.btn {
padding: 10px 20px;
background-color: #e63946;
color: white;
text-decoration: none;
border-radius: 5px;
z-index: 2;
}
.hero-image-container {
width: 100%;
height: auto;
}
.hero-image {
width: 100%;
height: auto;
}
.quote-container {
text-align: center;
padding: 20px 0;
background-color: #f4a7a7; /* Same pink background */
margin-top: 0;
}
.quote-container p {
font-size: 1.2em;
font-style: italic;
margin: 0;
}
.menu-section {
text-align: center;
padding: 2rem 0;
}
.menu-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
}
.menu-item {
width: 200px;
text-align: center;
}
.menu-item img {
width: 100%;
border-radius: 8px;
}
.about-section, .location-section {
padding: 2rem;
text-align: center;
}
.map {
margin-top: 20px;
}
footer {
background-color: #333;
color: white;
padding: 1rem;
text-align: center;
margin-top: 2rem;
}
/* Chatbot styling */
.chatbot-container {
position: fixed;
bottom: 20px;
right: 20px;
width: 80px; /* Minimized width */
height: 80px; /* Minimized height */
z-index: 1000;
border: 2px solid #333;
border-radius: 50%; /* Circular shape when minimized */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
overflow: hidden;
transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}
.chatbot-container iframe {
border: none;
width: 100%;
height: 100%;
border-radius: 50%;
pointer-events: none; /* Disable interactions in minimized state */
}
.chatbot-container.expanded {
width: 320px; /* Expanded width */
height: 450px; /* Expanded height */
border-radius: 10px;
}
.chatbot-container.expanded iframe {
border-radius: 10px;
pointer-events: auto; /* Enable interactions in expanded state */
}
</style>
</head>
<body>
<header>
<nav>
<h1>The Eatery Spot</h1>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#location">Location</a></li>
</ul>
</nav>
</header>
<section id="home" class="hero">
<div class="hero-content">
<h2>Welcome to The Eatery Spot</h2>
<p>Your favorite spot for quick and delicious meals!</p>
<a href="#menu" class="btn">Explore Our Menu</a>
</div>
<div class="hero-image-container">
<img src="family-eating.jpg" alt="Family enjoying samosa and lassi" class="hero-image">
</div>
<div class="quote-container">
<p>"Family is not an important thing, it's everything. And sharing good food makes it even better."</p>
</div>
</section>
<section id="menu" class="menu-section">
<h2>Our Menu</h2>
<div class="menu-grid">
<div class="menu-item">
<img src="pav-bhaji.jpg" alt="Pav Bhaji">
<h3>Pav Bhaji</h3>
</div>
<div class="menu-item">
<img src="chhole-bhature.jpeg" alt="Chhole Bhature">
<h3>Chhole Bhature</h3>
</div>
<div class="menu-item">
<img src="pizza.jpg" alt="Pizza">
<h3>Pizza</h3>
</div>
<div class="menu-item">
<img src="mango-lassi.jpg" alt="Mango Lassi">
<h3>Mango Lassi</h3>
</div>
<div class="menu-item">
<img src="masala-dosa.jpg" alt="Masala Dosa">
<h3>Masala Dosa</h3>
</div>
<div class="menu-item">
<img src="rava-dosa.jpg" alt="Rava Dosa">
<h3>Rava Dosa</h3>
</div>
<div class="menu-item">
<img src="samosa.jpg" alt="Samosa">
<h3>Samosa</h3>
</div>
<div class="menu-item">
<img src="vada-pav.jpg" alt="Vada Pav">
<h3>Vada Pav</h3>
</div>
<div class="menu-item">
<img src="veg-biryani.jpg" alt="Veg Biryani">
<h3>Veg Biryani</h3>
</div>
</div>
</section>
<section id="about" class="about-section">
<h2>About Us</h2>
<p>At The Eatery Spot, we aim to serve you the best fast food with a mix of traditional and modern flavors. Our menu is curated to satisfy all your cravings, whether you're in the mood for something spicy, savory, or sweet.</p>
</section>
<section id="location" class="location-section">
<h2>Visit Us</h2>
<p>Location: Jaycees Chauraha, Jaunpur</p>
<p>Open Daily: 10 AM - 10 PM</p>
<div class="map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3609.7587636786013!2d82.68365967492856!3d25.754743824079998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3991fe8c7afc9391%3A0x8bbf22660e75d8d2!2sJaycees%20Chauraha%2C%20Jaunpur%2C%20Uttar%20Pradesh%20222002!5e0!3m2!1sen!2sin!4v1692451576228!5m2!1sen!2sin" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
</section>
<!-- Chatbot Section -->
<div id="chatbot" class="chatbot-container minimized">
<iframe
allow="microphone;"
src="https://console.dialogflow.com/api-client/demo/embedded/121be9f6-29ea-48c9-8d01-f4dc21002061">
</iframe>
</div>
<footer>
<p>© 2024 The Eatery Spot. All rights reserved.</p>
</footer>
<script>
window.addEventListener('scroll', function() {
const chatbot = document.getElementById('chatbot');
const aboutSection = document.getElementById('about');
const aboutSectionTop = aboutSection.getBoundingClientRect().top;
if (aboutSectionTop <= window.innerHeight) {
chatbot.classList.add('expanded');
} else {
chatbot.classList.remove('expanded');
}
});
</script>
</body>
</html>