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
358 lines (303 loc) · 11.4 KB
/
Copy pathoffline.html
File metadata and controls
358 lines (303 loc) · 11.4 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
<!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"
/>
<title>Vehigo Offline Centers</title>
<!-- favicon -->
<link rel="shortcut icon" href="./public/favicon.svg" type="image/svg+xml" />
<!-- 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" />
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/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>
<header class="header" data-header>
<div class="container">
<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="#featured-car" class="navbar-link" data-nav-link>Explore cars</a>
</li>
<li>
<a href="#" class="navbar-link" data-nav-link>About us</a>
</li>
<li>
<a href="#blog" class="navbar-link" data-nav-link>Blog</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 -->
<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>
<button id="logoutBtn" style="display: none">Logout</button>
<a href="#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="./login.html" class="btn user-btn" aria-label="Profile">
<ion-icon name="person-outline"></ion-icon>
</a>
<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>
<main style="padding-top: 100px;">
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
#map {
width: 100%;
height: 60vh;
}
.cards-container {
display: flex;
flex-wrap: wrap;
gap: 16px;
padding: 16px;
justify-content: center;
}
.card {
border: 1px solid #ccc;
border-radius: 8px;
padding: 12px 16px;
width: 250px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.card h3 {
margin: 0;
font-size: 16px;
color: #333;
}
.card p {
margin: 6px 0;
font-size: 14px;
color: #555;
}
</style>
<div id="map"></div>
<div class="cards-container" id="cardsContainer"></div>
<!-- Leaflet JS -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
// 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 => {
// Add marker with popup
L.marker([center.lat, center.lng])
.addTo(map)
.bindPopup(`<strong>${center.name}</strong><br>${center.contact}`);
// Create card
const card = document.createElement('div');
card.className = 'card';
card.innerHTML = `
<h3>${center.city}</h3>
<p>${center.name}</p>
<p>📞 ${center.contact}</p>
`;
cardsContainer.appendChild(card);
});
</script>
<style>
.offline-main-content {
padding-top: 120px; /* Add top padding to account for fixed navbar */
position: relative;
z-index: 1; /* Reduced z-index to allow navbar to be clickable */
}
/* Ensure navbar is accessible */
.header { z-index: 1000 !important; }
.navbar { z-index: 1001 !important; }
.overlay { z-index: 999 !important; }
.nav-toggle-btn { z-index: 1002 !important; }
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
.offline-main-content {
padding-top: 100px; /* Slightly less padding on mobile */
padding: 20px 15px;
}
}
</style>
<!-- JavaScript files for navbar functionality -->
<script src="./assets/js/script.js"></script>
<script src="./scripts/logout.js"></script>
<script src="./scripts/offline.js"></script>
<!-- Leaflet JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script
type="module"
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/[email protected]/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>
</body>
<footer class="footer">
<div class="container">
<div class="footer-top">
<div class="footer-brand">
<a href="#" class="logo">
<img src="./assets/images/vehigologo.png" alt="VehiGo logo" />
</a>
<p class="footer-text">
Search for cheap rental cars in Madhaya Pradesh. We offers our
customers an attractive and fun selection of vehicals as well as
an opportunity to rent thier cars when not in use.
</p>
</div>
<ul class="footer-list">
<li>
<p class="footer-list-title">Company</p>
</li>
<li>
<a href="#" class="footer-link">About us</a>
</li>
<li>
<a href="#" class="footer-link">Pricing plans</a>
</li>
<li>
<a href="#" class="footer-link">Our blog</a>
</li>
<li>
<a href="./ContactUs.html" class="footer-link">Contact Us</a>
</li>
</ul>
<ul class="footer-list">
<li>
<p class="footer-list-title">Support</p>
</li>
<li>
<a href="#" class="footer-link">Help center</a>
</li>
<li>
<a href="src/pages/Askaques.html" class="footer-link">Ask a question</a>
</li>
<li>
<a href="privacypolicy.html" class="footer-link">Privacy policy</a>
</li>
<li>
<a href="src/pages/tandc.html" class="footer-link">Terms & conditions</a>
</li>
</ul>
</div>
<div class="footer-bottom">
<ul class="social-list">
<li>
<a href="#" class="social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="logo-linkedin"></ion-icon>
</a>
</li>
<li>
<a href="#" class="social-link">
<ion-icon name="mail-outline"></ion-icon>
</a>
</li>
</ul>
<p class="copyright">
© 2023 <a href="./ContactUs.html">VehiGo</a> Contact us through
</p>
</div>
</div>
</footer>
</html>