forked from Ctoic/Lisbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
597 lines (524 loc) · 20.9 KB
/
contact.html
File metadata and controls
597 lines (524 loc) · 20.9 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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<!-- Favicon -->
<link rel="icon" href="Images/favicon.jpg" type="image/png" />
<script src="https://cdn.tailwindcss.com"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script type="text/javascript" data-cmp-ab="1" src="https://cdn.consentmanager.net/delivery/autoblocking/1dae96c2c2031.js" data-cmp-host="a.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net" data-cmp-codesrc="16"></script>
<title>My Favorite Books Music App</title>
<style>
/* Enhanced animations and styling */
.contact-hero {
background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, rgba(17, 24, 39, 0.9) 100%);
position: relative;
overflow: hidden;
}
.floating-element {
position: absolute;
background: rgba(29, 185, 84, 0.1);
border-radius: 50%;
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}
.contact-card {
backdrop-filter: blur(10px);
background: rgba(31, 41, 55, 0.7);
border: 1px solid rgba(29, 185, 84, 0.2);
transition: all 0.3s ease;
}
.contact-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(29, 185, 84, 0.15);
border-color: rgba(29, 185, 84, 0.4);
}
.form-input {
transition: all 0.3s ease;
border: 1px solid rgba(75, 85, 99, 0.5);
}
.form-input:focus {
border-color: #1db954;
box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
}
.social-icon {
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(31, 41, 55, 0.7);
}
.social-icon:hover {
transform: scale(1.1);
background: rgba(29, 185, 84, 0.2);
}
.pulse-animation {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.typing-demo {
width: 22ch;
animation: typing 2s steps(22), blink .5s step-end infinite alternate;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid;
font-family: monospace;
}
@keyframes typing {
from { width: 0 }
}
@keyframes blink {
50% { border-color: transparent }
}
.map-container {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.contact-option {
transition: all 0.3s ease;
cursor: pointer;
}
.contact-option:hover {
background: rgba(29, 185, 84, 0.1);
transform: translateX(5px);
}
.success-animation {
animation: success 0.5s ease-in-out;
}
@keyframes success {
0% { transform: scale(0.8); opacity: 0; }
50% { transform: scale(1.1); }
100% { transform: scale(1); opacity: 1; }
}
.chat-bubble {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: #1db954;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 15px rgba(29, 185, 84, 0.4);
z-index: 1000;
transition: all 0.3s ease;
}
.chat-bubble:hover {
transform: scale(1.1);
}
.chat-window {
position: fixed;
bottom: 90px;
right: 20px;
width: 350px;
height: 450px;
background: rgba(31, 41, 55, 0.95);
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
z-index: 1000;
display: none;
flex-direction: column;
overflow: hidden;
backdrop-filter: blur(10px);
border: 1px solid rgba(29, 185, 84, 0.2);
}
.chat-header {
padding: 15px;
background: rgba(29, 185, 84, 0.2);
display: flex;
justify-content: space-between;
align-items: center;
}
.chat-messages {
flex: 1;
padding: 15px;
overflow-y: auto;
}
.message {
margin-bottom: 15px;
padding: 10px 15px;
border-radius: 18px;
max-width: 80%;
}
.bot-message {
background: rgba(75, 85, 99, 0.5);
align-self: flex-start;
border-bottom-left-radius: 5px;
}
.user-message {
background: rgba(29, 185, 84, 0.3);
align-self: flex-end;
margin-left: auto;
border-bottom-right-radius: 5px;
}
.chat-input {
display: flex;
padding: 15px;
border-top: 1px solid rgba(75, 85, 99, 0.5);
}
.chat-input input {
flex: 1;
padding: 10px 15px;
border-radius: 25px;
background: rgba(75, 85, 99, 0.3);
border: none;
color: white;
margin-right: 10px;
}
.chat-input button {
background: #1db954;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
}
.chat-input button:hover {
background: #1ed760;
}
</style>
</head>
<body class="bg-gray-900 text-gray-300 d-flex flex-column min-vh-100">
<script>
(function() {
try {
const saved = localStorage.getItem('theme');
const theme = saved === 'light' ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', theme);
if (document.body) {
document.body.classList.remove('light-theme', 'dark-theme');
document.body.classList.add(theme + '-theme');
}
} catch (e) { console.warn('Theme init error', e); }
})();
</script>
<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 id="loader" class="spinner-container">
<div
class="spinner-border"
role="status"
style="width: 4rem; height: 4rem; color: #1db954"
>
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- Dynamic Navbar Placeholder -->
<div id="navbar-placeholder"></div>
<!-- Enhanced Contact Section -->
<section class="contact-hero py-5">
<!-- Floating elements for visual interest -->
<div class="floating-element" style="width: 80px; height: 80px; top: 10%; left: 5%;"></div>
<div class="floating-element" style="width: 60px; height: 60px; top: 20%; right: 10%; animation-delay: 1s;"></div>
<div class="floating-element" style="width: 100px; height: 100px; bottom: 15%; left: 15%; animation-delay: 2s;"></div>
<div class="floating-element" style="width: 70px; height: 70px; bottom: 25%; right: 5%; animation-delay: 3s;"></div>
<div class="container my-5">
<div class="row align-items-center">
<div class="col-lg-6 mb-5 mb-lg-0">
<h2 class="display-5 fw-semibold mb-3">Get in <span class="text-green-500 typing-demo">Touch</span></h2>
<p class="lead mb-4">Our friendly team would love to hear from you! We're here to help with any questions about our app, features, or anything else.</p>
<!-- Contact Options -->
<div class="contact-options mb-5">
<div class="contact-option p-3 rounded-lg mb-3">
<div class="d-flex align-items-center">
<div class="me-3 text-green-500">
<i class="bi bi-envelope-fill h-4 w-4"></i>
</div>
<div>
<h5 class="mb-1">Email us</h5>
<p class="mb-0 text-gray-400">contact-us@gmail.com</p>
</div>
</div>
</div>
<div class="contact-option p-3 rounded-lg mb-3">
<div class="d-flex align-items-center">
<div class="me-3 text-green-500">
<i class="bi bi-telephone-fill h-4 w-4"></i>
</div>
<div>
<h5 class="mb-1">Call us</h5>
<p class="mb-0 text-gray-400">IN +91 000-000-0000</p>
</div>
</div>
</div>
<div class="contact-option p-3 rounded-lg">
<div class="d-flex align-items-center">
<div class="me-3 text-green-500">
<i class="bi bi-geo-alt-fill h-4 w-4"></i>
</div>
<div>
<h5 class="mb-1">Visit us</h5>
<p class="mb-0 text-gray-400">Bangalore, Karnataka, India</p>
</div>
</div>
</div>
</div>
<!-- Social Media Icons -->
<div class="social-icons d-flex justify-content-start">
<a href="https://www.instagram.com/dev_with_ctoic" class="social-icon text-gray-300 hover:text-green-500 me-3" target="_blank">
<i class="bi bi-instagram h-5 w-5"></i>
</a>
<a href="https://x.com/Ct0ic" class="social-icon text-gray-300 hover:text-green-500 me-3" target="_blank">
<i class="bi bi-twitter-x h-5 w-5"></i>
</a>
<a href="https://www.linkedin.com/in/ctoic/" class="social-icon text-gray-300 hover:text-green-500 me-3" target="_blank">
<i class="bi bi-linkedin h-5 w-5"></i>
</a>
<a href="https://github.com/Ctoic" class="social-icon text-gray-300 hover:text-green-500" target="_blank">
<i class="bi bi-github h-5 w-5"></i>
</a>
</div>
</div>
<div class="col-lg-6">
<!-- Contact Form Card -->
<div class="contact-card p-4 p-md-5 rounded-xl">
<h3 class="mb-4 text-center">Send us a message</h3>
<form id="contact-form" class="space-y-4">
<!-- First and Last Name in Two Columns -->
<div class="row mb-3">
<div class="col-md-6 mb-3 mb-md-0">
<label for="first-name" class="block text-sm font-medium mb-2">First name:</label>
<input type="text" id="first-name" name="first-name" placeholder="John" class="form-input w-full p-3 rounded-lg bg-gray-700 text-white" required />
</div>
<div class="col-md-6">
<label for="last-name" class="block text-sm font-medium mb-2">Last name:</label>
<input type="text" id="last-name" name="last-name" placeholder="Doe" class="form-input w-full p-3 rounded-lg bg-gray-700 text-white" required />
</div>
</div>
<!-- Email -->
<div class="mb-3">
<label for="email" class="block text-sm font-medium mb-2">Email:</label>
<input type="email" id="email" name="email" placeholder="contact-us@gmail.com" class="form-input w-full p-3 rounded-lg bg-gray-700 text-white" required />
</div>
<!-- Phone -->
<div class="mb-3">
<label for="phone" class="block text-sm font-medium mb-2">Phone number:</label>
<input type="tel" id="phone" name="phone" placeholder="IN +91 000-000-0000" class="form-input w-full p-3 rounded-lg bg-gray-700 text-white" pattern="[0-9]{10}" required />
</div>
<!-- Message -->
<div class="mb-4">
<label for="message" class="block text-sm font-medium mb-2">Message:</label>
<textarea id="message" name="message" rows="4" class="form-input w-full p-3 rounded-lg bg-gray-700 text-white" placeholder="Tell us how we can help..." required></textarea>
</div>
<!-- Submit Button -->
<div class="text-center mt-4">
<button type="submit" class="bg-green-500 text-white py-3 px-8 rounded-full hover:bg-green-600 pulse-animation font-medium">
Send Message
</button>
</div>
<!-- Success Message -->
<div id="success-msg" class="text-green-500 mt-4 text-center hidden success-animation">
<i class="bi bi-check-circle-fill me-2"></i>
Message sent successfully! We'll get back to you soon.
</div>
</form>
</div>
</div>
</div>
</div>
</section>
<!-- Enhanced Map Section -->
<section class="container my-5">
<div class="row">
<div class="col-12">
<h3 class="text-center mb-4">Find Us Here</h3>
<div class="map-container">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3916.491339599082!2d77.59456291440737!3d12.971598616057055!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3bae1687391781db%3A0x5ef3b46e7aa569b6!2sBangalore%2C%20Karnataka%2C%20India!5e0!3m2!1sen!2sin!4v1638827560011"
width="100%"
height="400"
style="border: 0"
allowfullscreen=""
loading="lazy"
></iframe>
</div>
</div>
</div>
</section>
<!-- Live Chat Widget -->
<div class="chat-bubble" id="chat-bubble">
<i class="bi bi-chat-dots-fill text-white h-5 w-5"></i>
</div>
<div class="chat-window" id="chat-window">
<div class="chat-header">
<h5 class="mb-0">Live Support</h5>
<button id="close-chat" class="text-gray-300 hover:text-white">
<i class="bi bi-x-lg"></i>
</button>
</div>
<div class="chat-messages" id="chat-messages">
<div class="message bot-message">
Hi there! 👋 How can we help you today?
</div>
</div>
<div class="chat-input">
<input type="text" id="chat-input" placeholder="Type your message...">
<button id="send-message">
<i class="bi bi-send-fill text-white"></i>
</button>
</div>
</div>
<!-- Footer -->
<div id="footer-placeholder" class="mt-auto"></div>
<!-- JavaScript -->
<script src="https://unpkg.com/typed.js@2.1.0/dist/typed.umd.js"></script>
<script src="./script.js"></script>
<script src="dynamic-components.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script>
// Enhanced contact form functionality
document.addEventListener('DOMContentLoaded', function() {
// Typing animation for the heading
const typed = new Typed('.typing-demo', {
strings: ['Touch', 'Contact', 'Connected'],
typeSpeed: 100,
backSpeed: 60,
loop: true
});
// Contact form submission
const contactForm = document.getElementById('contact-form');
const successMsg = document.getElementById('success-msg');
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
// Simple validation
const firstName = document.getElementById('first-name').value;
const lastName = document.getElementById('last-name').value;
const email = document.getElementById('email').value;
const phone = document.getElementById('phone').value;
const message = document.getElementById('message').value;
if (firstName && lastName && email && phone && message) {
// In a real application, you would send the form data to a server here
console.log('Form submitted:', { firstName, lastName, email, phone, message });
// Show success message
successMsg.classList.remove('hidden');
successMsg.classList.add('success-animation');
// Reset form
contactForm.reset();
// Hide success message after 5 seconds
setTimeout(() => {
successMsg.classList.add('hidden');
}, 5000);
}
});
// Live chat functionality
const chatBubble = document.getElementById('chat-bubble');
const chatWindow = document.getElementById('chat-window');
const closeChat = document.getElementById('close-chat');
const chatMessages = document.getElementById('chat-messages');
const chatInput = document.getElementById('chat-input');
const sendMessage = document.getElementById('send-message');
chatBubble.addEventListener('click', function() {
chatWindow.style.display = 'flex';
});
closeChat.addEventListener('click', function() {
chatWindow.style.display = 'none';
});
function addMessage(text, isUser = false) {
const messageDiv = document.createElement('div');
messageDiv.classList.add('message');
messageDiv.classList.add(isUser ? 'user-message' : 'bot-message');
messageDiv.textContent = text;
chatMessages.appendChild(messageDiv);
chatMessages.scrollTop = chatMessages.scrollHeight;
}
sendMessage.addEventListener('click', function() {
const message = chatInput.value.trim();
if (message) {
addMessage(message, true);
chatInput.value = '';
// Simulate bot response
setTimeout(() => {
const responses = [
"Thanks for your message! Our team will get back to you soon.",
"I understand. Let me connect you with a support specialist.",
"That's a great question! One of our team members will assist you shortly.",
"I've noted your concern. We'll be in touch via email soon."
];
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
addMessage(randomResponse);
}, 1000);
}
});
chatInput.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
sendMessage.click();
}
});
// Add floating animation to contact options on scroll
const contactOptions = document.querySelectorAll('.contact-option');
function checkScroll() {
contactOptions.forEach(option => {
const position = option.getBoundingClientRect().top;
const screenPosition = window.innerHeight / 1.3;
if (position < screenPosition) {
option.style.opacity = '1';
option.style.transform = 'translateX(0)';
}
});
}
// Initialize opacity and position
contactOptions.forEach(option => {
option.style.opacity = '0';
option.style.transform = 'translateX(-20px)';
option.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
});
window.addEventListener('scroll', checkScroll);
// Check on page load
checkScroll();
});
</script>
</body>
</html>