forked from InnoWebLabs/Vehigo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
448 lines (401 loc) Β· 19.3 KB
/
Copy pathoffline.html
File metadata and controls
448 lines (401 loc) Β· 19.3 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
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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<link rel="stylesheet" href=" https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
<link rel="icon" href="favicon.svg">
<link rel="stylesheet" href="preloader.css"/>
<title>Vehigo Offline Centers</title>
<!-- custom css links -->
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/dark.css" />
<link rel="stylesheet" href="./styles/offline.css" />
<link rel="stylesheet" href="./modern-improvements.css" />
<link rel="stylesheet" href="./offline-animations.css" />
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600&family=Open+Sans&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div id="preloader">
<div class="spinner"></div>
</div>
<div id="app">
<header class="header" data-header>
<div class="container" style="background-color: #4e7fb4">
<div class="overlay" data-overlay></div>
<a href="index.html" class="logo">
<img src="./assets/images/vehigologo.png" alt="VehiGo logo">
</a>
<nav class="navbar" data-navbar>
<ul class="navbar-list">
<li>
<a href="index.html" class="navbar-link" data-nav-link>Home</a>
</li>
<li>
<a href="index.html#featured-car" class="navbar-link" data-nav-link>Explore cars</a>
</li>
<li>
<a href="./src/pages/about.html" class="navbar-link" data-nav-link>About us</a>
</li>
<li>
<a href="blog.html" class="navbar-link" data-nav-link>Blog</a>
</li>
<!-- changes -->
<li>
<a href="ContactUs.html" class="navbar-link" data-nav-link>Contact Us</a>
</li>
<li>
<a href="offline.html" class="navbar-link" data-nav-link>Offline Centers</a>
</li>
<li>
<a href="rentcar.html" class="navbar-link" data-nav-link>Rent Your Car</a>
</li>
</ul>
</nav>
<div class="header-actions">
<div class="header-contact">
<a href="tel:1800100100" class="contact-link">1800-100-100</a>
<span class="contact-time">Mon - Sat: 9:00 am - 6:00 pm</span>
</div>
<!-- Theme Toggle Switch with SVG icons -->
<style>
.theme-switch { position: fixed; top: 1rem; right: calc(1rem + 1cm); cursor: pointer; z-index: 1000; }
.theme-switch input { display: none; }
.slider { display: flex; align-items: center; gap: 8px; }
.icon svg { transition: transform 0.3s ease; }
.theme-switch .icon.moon { display: none; }
.theme-switch input:checked~.slider .sun { display: none; }
.theme-switch input:checked~.slider .moon { display: inline; }
body.dark-theme { background-color: #121212; color: #f5f5f5; }
</style>
<label class="theme-switch" for="theme-toggle">
<input type="checkbox" id="theme-toggle" />
<span class="slider">
<span class="icon sun" aria-label="Light mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="orange" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5" />
<line x1="12" y1="1" x2="12" y2="3" />
<line x1="12" y1="21" x2="12" y2="23" />
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
<line x1="1" y1="12" x2="3" y2="12" />
<line x1="21" y1="12" x2="23" y2="12" />
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
</svg>
</span>
<span class="icon moon" aria-label="Dark mode">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#f5f5f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z" />
</svg>
</span>
</span>
</label>
<script>
const toggle = document.getElementById("theme-toggle");
if (localStorage.getItem("theme") === "dark") {
document.body.classList.add("dark-theme");
toggle.checked = true;
}
toggle.addEventListener("change", () => {
document.body.classList.toggle("dark-theme");
if (document.body.classList.contains("dark-theme")) {
localStorage.setItem("theme", "dark");
} else {
localStorage.setItem("theme", "light");
}
});
</script>
<a href="index.html#featured-car" class="btn" aria-labelledby="aria-label-txt">
<ion-icon name="car-outline"></ion-icon>
<span id="aria-label-txt">Explore cars</span>
</a>
<a href="./src/pages/login.html" class="btn user-btn" id="loginBtn" aria-label="Profile">
<ion-icon name="person-outline"></ion-icon>
</a>
<button id="logoutBtn" class="btn user-btn" style="display: none;" aria-label="Logout">
<ion-icon name="log-out-outline"></ion-icon>
</button>
<button class="nav-toggle-btn" data-nav-toggle-btn aria-label="Toggle Menu">
<span class="one"></span>
<span class="two"></span>
<span class="three"></span>
</button>
</div>
</div>
</header>
<!-- Quick Links Bar -->
<nav aria-label="Section links" style="background:#ffffff; border-bottom:1px solid #e5e7eb; margin-top:70px; position:sticky; top:70px; z-index:3;">
<div class="container quick-links" style="display:flex; flex-wrap:wrap; gap:36px; align-items:center; justify-content:center; padding:12px 20px;">
<a href="index.html" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">Home</a>
<a href="index.html#featured-car" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">Explore cars</a>
<a href="./src/pages/about.html" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">About us</a>
<a href="blog.html" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">Blog</a>
<a href="offline.html" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">Offline Centers</a>
<a href="rentcar.html" class="navbar-link ql" style="text-decoration:none; color:#29465b; font-weight:600; padding:6px 10px; border-radius:8px;">Rent Your Car</a>
</div>
<style>
.quick-links .ql:hover { background:#e9f2ff; color:#1f3a56; }
.offline-main-content { margin-top: 0; }
.offline-hero-section { padding-top: 8px; }
</style>
</nav>
<main class="offline-main-content modern-section">
<div class="offline-hero-section">
<div class="container">
<h1 class="gradient-text animate-title">πΊοΈ Find VehiGo Centers Near You</h1>
<p class="hero-subtitle animate-subtitle">Discover our offline centers across India for personalized service and support</p>
</div>
</div>
<div class="map-section animate-section">
<div id="map" class="modern-map"></div>
</div>
<div class="centers-section">
<div class="container">
<h2 class="section-title gradient-text">π Our Service Centers</h2>
<div class="cards-container" id="cardsContainer"></div>
</div>
</div>
</main>
<!-- Leaflet JS and other scripts -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Offline center data
const offlineCenters = [
{ city: "Delhi", name: "Delhi Center", lat: 28.6139, lng: 77.2090, contact: "+91 99999 11111" },
{ city: "Mumbai", name: "Mumbai Center", lat: 19.0760, lng: 72.8777, contact: "+91 88888 22222" },
{ city: "Kolkata", name: "Kolkata Center", lat: 22.5726, lng: 88.3639, contact: "+91 77777 33333" },
{ city: "Chennai", name: "Chennai Center", lat: 13.0827, lng: 80.2707, contact: "+91 66666 44444" },
{ city: "Bangalore", name: "Bangalore Center", lat: 12.9716, lng: 77.5946, contact: "+91 55555 55555" },
{ city: "Hyderabad", name: "Hyderabad Center", lat: 17.3850, lng: 78.4867, contact: "+91 44444 66666" },
{ city: "Pune", name: "Pune Center", lat: 18.5204, lng: 73.8567, contact: "+91 33333 77777" }
];
// Initialize Leaflet map
const map = L.map('map').setView([22.9734, 78.6569], 5); // India center
// Add OpenStreetMap tiles
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);
// Cards container
const cardsContainer = document.getElementById('cardsContainer');
// Add markers and cards
offlineCenters.forEach((center, index) => {
const marker = L.marker([center.lat, center.lng])
.addTo(map)
.bindPopup(`
<div style="text-align: center; padding: 10px;">
<strong style="color: #007bff; font-size: 16px;">${center.name}</strong><br>
<p style="margin: 8px 0; color: #666;">π ${center.city}</p>
<p style="margin: 0; color: #28a745; font-weight: 600;">π ${center.contact}</p>
</div>
`);
const card = document.createElement('div');
card.className = 'card animate-card';
card.style.animationDelay = `${0.2 + index * 0.1}s`;
card.innerHTML = `
<h3>${center.city}</h3>
<p><strong>${center.name}</strong></p>
<p>Located in ${center.city}</p>
<p>π ${center.contact}</p>
`;
card.addEventListener('click', () => {
map.setView([center.lat, center.lng], 12);
marker.openPopup();
document.querySelectorAll('.card').forEach(c => c.classList.remove('active'));
card.classList.add('active');
});
cardsContainer.appendChild(card);
});
// Smooth map loading animation
map.whenReady(() => {
const mapElement = document.getElementById('map');
mapElement.style.opacity = '0';
mapElement.style.transform = 'scale(0.95)';
setTimeout(() => {
mapElement.style.transition = 'all 0.8s ease-out';
mapElement.style.opacity = '1';
mapElement.style.transform = 'scale(1)';
}, 100);
});
});
</script>
<!-- <script>
document.addEventListener('DOMContentLoaded', () => {
// Offline center data
const offlineCenters = [
{ city: "Delhi", name: "Delhi Center", lat: 28.6139, lng: 77.2090, contact: "+91 99999 11111" },
{ city: "Mumbai", name: "Mumbai Center", lat: 19.0760, lng: 72.8777, contact: "+91 88888 22222" },
{ city: "Kolkata", name: "Kolkata Center", lat: 22.5726, lng: 88.3639, contact: "+91 77777 33333" },
{ city: "Chennai", name: "Chennai Center", lat: 13.0827, lng: 80.2707, contact: "+91 66666 44444" },
{ city: "Bangalore", name: "Bangalore Center", lat: 12.9716, lng: 77.5946, contact: "+91 55555 55555" },
{ city: "Hyderabad", name: "Hyderabad Center", lat: 17.3850, lng: 78.4867, contact: "+91 44444 66666" },
{ city: "Pune", name: "Pune Center", lat: 18.5204, lng: 73.8567, contact: "+91 33333 77777" }
];
// Initialize Leaflet map
const map = L.map('map').setView([22.9734, 78.6569], 5); // India center
// Add OpenStreetMap tiles
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© OpenStreetMap contributors'
}).addTo(map);
// Cards container
const cardsContainer = document.getElementById('cardsContainer');
// Add markers and cards
offlineCenters.forEach((center, index) => {
const marker = L.marker([center.lat, center.lng])
.addTo(map)
.bindPopup(`
<div style="text-align: center; padding: 10px;">
<strong style="color: #007bff; font-size: 16px;">${center.name}</strong><br>
<p style="margin: 8px 0; color: #666;">π ${center.city}</p>
<p style="margin: 0; color: #28a745; font-weight: 600;">π ${center.contact}</p>
</div>
`);
const card = document.createElement('div');
card.className = 'card animate-card';
card.style.animationDelay = `${0.2 + index * 0.1}s`;
card.innerHTML = `
<h3>π ${center.city}</h3>
<p><strong>${center.name}</strong></p>
<p>π Located in ${center.city}</p>
<p>π ${center.contact}</p>
`;
card.addEventListener('click', () => {
map.setView([center.lat, center.lng], 12);
marker.openPopup();
document.querySelectorAll('.card').forEach(c => c.classList.remove('active'));
card.classList.add('active');
});
cardsContainer.appendChild(card);
});
// Smooth map loading animation
map.whenReady(() => {
const mapElement = document.getElementById('map');
mapElement.style.opacity = '0';
mapElement.style.transform = 'scale(0.95)';
setTimeout(() => {
mapElement.style.transition = 'all 0.8s ease-out';
mapElement.style.opacity = '1';
mapElement.style.transform = 'scale(1)';
}, 100);
});
});
</script> -->
<script src="./assets/js/script.js"></script>
<script src="./scripts/logout.js"></script>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
<a href="./offline.html" style="
position: fixed;
bottom: 30px;
right: 30px;
background-color: #007BFF;
color: white;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
z-index: 999;
transition: background-color 0.3s;"
onmouseover="this.style.backgroundColor='#0056b3'" onmouseout="this.style.backgroundColor='#007BFF'">
<ion-icon name="chevron-up-outline" style="font-size: 24px;"></ion-icon>
</a>
<footer data-aos="fade-up" class="footer" style="width:100vw">
<div data-aos="fade-up" class="container" style="max-width: 1200px; margin: auto">
<!-- Top Section -->
<div class="footer-top" style="
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 2.5rem;
">
<!-- Brand Section -->
<div class="footer-brand" style="flex: 1 1 300px">
<a href="#" class="logo">
<img data-aos="fade-up" src="./assets/images/vehigologo.png" alt="VehiGo logo" style="width: 160px" />
</a>
<p data-aos="fade-up" class="footer-text" style="margin-top: 1rem; line-height: 1.6">
π <strong>Find affordable rental cars across Madhya Pradesh!</strong><br />
Choose from a wide range of vehicles, or rent out your own when
not in use. We make car rental easy, accessible, and efficient for
everyone.
</p>
</div>
<!-- Company Section -->
<ul class="footer-list">
<li>
<p data-aos="fade-up" class="footer-list-title">Company</p>
</li>
<li>
<a data-aos="fade-up" href="./src/pages/about.html" class="footer-link">About Us</a>
</li>
<li>
<a data-aos="fade-up" href="./src/pages/pricing.html" class="footer-link">Pricing Plans</a>
</li>
<li><a data-aos="fade-up" href="./blog.html" class="footer-link">Our Blog</a></li>
<li>
<a data-aos="fade-up" href="./ContactUs.html" class="footer-link">Contact Us</a>
</li>
</ul>
<!-- Support Section -->
<ul class="footer-list">
<li>
<p data-aos="fade-up" class="footer-list-title">Support</p>
</li>
<li>
<a data-aos="fade-up" href="./src/pages/help-center.html" class="footer-link">Help Center</a>
</li>
<li>
<a data-aos="fade-up" href="./src/pages/Askaques.html" class="footer-link">Ask a Question</a>
</li>
<li>
<a data-aos="fade-up" href="./privacypolicy.html" class="footer-link">Privacy Policy</a>
</li>
<li>
<a data-aos="fade-up" href="./tandc.html" class="footer-link">Terms & Conditions</a>
</li>
</ul>
</div>
<!-- Bottom Section -->
<div class="footer-bottom" style="display: flex;flex-direction:row;gap:2px;">
<div data-aos="fade-up" class="social-icons" style="text-align: center; margin-bottom: 10px;display: flex;flex-direction:row;gap:2px;">
<a href="https://www.linkedin.com" target="_blank" style="margin: 0 10px; font-size: 24px; color: #0077b5" class="iconss"><i
class="fab fa-linkedin"></i></a>
<a href="https://www.twitter.com" target="_blank" style="margin: 0 10px; font-size: 24px; color: #1da1f2" class="iconss"><i
class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com" target="_blank" style="margin: 0 10px; font-size: 24px; color: #e1306c" class="iconss"><i
class="fab fa-instagram"></i></a>
<a href="https://www.facebook.com" target="_blank" style="margin: 0 10px; font-size: 24px; color: #3b5998" class="iconss"><i
class="fab fa-facebook"></i></a>
</div>
<p style="text-align: center; font-size: 14px; color: white">
Β© 2023 Vehigo β All rights
reserved.
</p>
<!-- logic for dynamic year -->
<script>
document.getElementById("copyright-year").textContent = new Date().getFullYear();
</script>
</div>
</div>
</footer>
</div>
<script src="preloader.js"></script>
</body>
</html>