-
Notifications
You must be signed in to change notification settings - Fork 151
/
review.html
369 lines (335 loc) · 16.7 KB
/
review.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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="img/logo1.png" type="image/png">
<title>Cabrental Reviews</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 80px;
}
.nav-items {
flex-grow: 1;
text-align: center;
}
.nav-items a {
margin: 0 1rem;
transition: color 0.3s ease;
}
.nav-items a:hover {
color: #6d28d9;
}
.navbar ul li:hover a {
background-color: #555;
transform: scale(1.2); /* Popup effect */
}
.circle {
height: 18px;
width: 18px;
border-radius: 24px;
background-color: #ff0000;
position: absolute;
top: 0;
left: 0;
z-index: 1000; /* Ensure the trail is above everything */
pointer-events: none; /* Prevent the circles from interfering with mouse events */
}
.navbar ul li:hover::after {
content: "";
position: absolute;
width: 100%;
height: 4px;
background-color: #00aced;
top: 100%;
left: 0;
transform: scaleX(1);
transition: all 0.3s ease;
}
.navbar ul li::after {
content: "";
position: absolute;
width: 100%;
height: 4px;
background-color: transparent;
top: 100%;
left: 0;
transform: scaleX(0);
transition: all 0.3s ease;
}
.card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.logo {
height: 40px;
width: auto;
}
.text-lg {
padding-left: 10px;
}
.bg-gradient-to-r {
background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 100%);
}
.rating-star {
color: #fbbf24;
}
</style>
</head>
<body class="bg-gray-100 font-sans leading-normal tracking-normal">
<!-- 20 circle elements -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<!-- Navbar -->
<nav class="bg-white shadow-md">
<div class="container mx-auto px-4 nav-container">
<div class="flex items-center">
<a href="index.html"><img src="img/logo.png" alt="Logo" class="logo"></a>
<a href="index.html"><div class="text-lg font-bold text-purple-800">
Cabrental
</div></a>
</div>
<div class="nav-items">
<a href="index.html" class="text-gray-800 hover:text-purple-800">Home</a>
<a href="ride.html" class="text-gray-800 hover:text-purple-800">Ride</a>
<a href="serv.html" class="text-gray-800 hover:text-purple-800">Service</a>
<a href="about.html" class="text-gray-800 hover:text-purple-800">About</a>
<a href="review.html" class="text-gray-800 hover:text-purple-800">Reviews</a>
<a href="contactus.html" class="text-gray-800 hover:text-purple-800">Contact</a>
</div>
<div>
<button class="bg-purple-500 text-white px-4 py-2 rounded shadow hover:bg-purple-600" onclick="window.location.href='login.html'">Login</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="bg-gradient-to-r from-purple-500 to-indigo-600 text-white py-20">
<div class="container mx-auto text-center">
<h1 class="text-4xl font-bold mb-2">Cabrental Reviews</h1>
<p class="text-lg mb-6">Read what our customers have to say about our car rental service!</p>
<button id="reviewButton" class="bg-white text-purple-800 px-4 py-2 rounded shadow hover:bg-gray-200">Leave a Review</button>
</div>
</section>
<!-- Reviews Section -->
<section class="container mx-auto px-4 py-16">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Review Cards -->
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/images (1).jpeg" alt="User Avatar">
<div>
<p class="text-xl font-bold">John Doe</p>
<p class="text-gray-600">March 25, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">The car rental service was excellent! The car was in perfect condition, and the process was smooth and hassle-free.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="rating-star">★</span>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/images (2).jpeg" alt="User Avatar">
<div>
<p class="text-xl font-bold">Jane Smith</p>
<p class="text-gray-600">April 10, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">Great service and friendly staff! I will definitely rent a car from Cabrental again in the future.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span>☆</span>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/istockphoto-1158014305-612x612.jpg" alt="User Avatar">
<div>
<p class="text-xl font-bold">Mark Wilson</p>
<p class="text-gray-600">May 5, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">I had an amazing experience with Cabrental. The car was clean and the booking process was seamless.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="rating-star">★</span>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/images (4).jpeg" alt="User Avatar">
<div>
<p class="text-xl font-bold">Alice Johnson</p>
<p class="text-gray-600">June 14, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">I love the convenience of renting a car from Cabrental. Their service is always reliable and efficient.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="rating-star">★</span>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/download.jpeg" alt="User Avatar">
<div>
<p class="text-xl font-bold">Chris Brown</p>
<p class="text-gray-600">July 20, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">Cabrental has been my go-to car rental service for years. They always provide top-notch service and quality cars.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="rating-star">★</span>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow-lg card">
<div class="flex items-center mb-4">
<img class="w-12 h-12 rounded-full mr-4" src="./images/images.jpeg" alt="User Avatar">
<div>
<p class="text-xl font-bold">Emily Davis</p>
<p class="text-gray-600">August 15, 2024</p>
</div>
</div>
<p class="text-gray-800 mb-4">The customer service at Cabrental is outstanding! They go above and beyond to ensure a great experience.</p>
<div class="text-yellow-500">
<span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span class="mr-1 rating-star">★</span><span>☆</span>
</div>
</div>
</div>
</section>
<!-- Review Form Modal -->
<div id="reviewModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
<div class="bg-white rounded-lg p-4 sm:p-8 w-full max-w-lg m-4 sm:m-8 shadow-lg transition-transform duration-300 scale-95 hover:scale-100">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl sm:text-2xl font-semibold text-gray-800">Leave a Review</h2>
<button id="closeModal" class="text-gray-600 hover:text-gray-900 text-3xl transition-transform duration-200 transform hover:scale-110">×</button>
</div>
<form method="post">
<div class="mb-5">
<label for="name" class="block text-sm font-semibold text-gray-800">Name</label>
<input type="text" id="name" class="mt-2 p-2 sm:p-3 border border-gray-300 rounded-lg w-full focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500" placeholder="Enter your name" required>
</div>
<div class="mb-5">
<label for="email" class="block text-sm font-semibold text-gray-800">Email</label>
<input type="email" id="email" class="mt-2 p-2 sm:p-3 border border-gray-300 rounded-lg w-full focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500" placeholder="Enter your email" required>
</div>
<div class="mb-5">
<label for="rating" class="block text-sm font-semibold text-gray-800">Rating</label>
<select id="rating" class="mt-2 p-2 sm:p-3 border border-gray-300 rounded-lg w-full focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500" required>
<option value="5">★★★★★ - 5 Stars</option>
<option value="4">★★★★☆ - 4 Stars</option>
<option value="3">★★★☆☆ - 3 Stars</option>
<option value="2">★★☆☆☆ - 2 Stars</option>
<option value="1">★☆☆☆☆ - 1 Star</option>
</select>
</div>
<div class="mb-5">
<label for="review" class="block text-sm font-semibold text-gray-800">Review</label>
<textarea id="review" class="mt-2 p-2 sm:p-3 border border-gray-300 rounded-lg w-full focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500" rows="4" placeholder="Write your review here..." required></textarea>
</div>
<div class="flex justify-end">
<button type="button" class="bg-gray-500 text-white px-4 py-2 sm:px-6 sm:py-3 rounded-lg shadow hover:bg-gray-600 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 mr-2" id="cancelButton">Cancel</button>
<button type="submit" class="bg-purple-600 text-white px-4 py-2 sm:px-6 sm:py-3 rounded-lg shadow hover:bg-purple-700 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2">Submit</button>
</div>
</form>
</div>
</div>
<footer class="bg-gray-800 text-white py-6">
<div class="container mx-auto text-center">
<p class="mb-2">© 2024 Cabrental. All rights reserved.</p>
<div class="flex justify-center space-x-4">
<a href="#" class="hover:text-purple-500">Privacy Policy</a>
<a href="#" class="hover:text-purple-500">Terms of Service</a>
<a href="contactus.html" class="hover:text-purple-500">Contact Us</a>
</div>
</div>
</footer>
<script>
// JavaScript to handle modal functionality
document.getElementById('reviewButton').addEventListener('click', function () {
document.getElementById('reviewModal').classList.remove('hidden');
});
document.getElementById('closeModal').addEventListener('click', function () {
document.getElementById('reviewModal').classList.add('hidden');
});
document.getElementById('cancelButton').addEventListener('click', function () {
document.getElementById('reviewModal').classList.add('hidden');
});
// Optionally, handle form submission here
document.querySelector('form').addEventListener('submit', function (e) {
e.preventDefault();
// Process form data and close modal
document.getElementById('reviewModal').classList.add('hidden');
alert('Thank you for your review!');
});
</script>
<script>
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
// Assign initial positions to the circles
circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});
window.addEventListener("mousemove", function (e) {
// Use pageX and pageY to account for scroll distance
coords.x = e.pageX;
coords.y = e.pageY;
});
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "2zn6LCEiOl1sZnaTGnPqp",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="2zn6LCEiOl1sZnaTGnPqp"
domain="www.chatbase.co"
defer>
</script>
</body>
</html>