-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
608 lines (521 loc) · 29.9 KB
/
contact.html
File metadata and controls
608 lines (521 loc) · 29.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
598
599
600
601
602
603
604
605
606
607
608
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Same head as index.html -->
<title>Contact Us | TheGreatTech</title>
<meta name="description"
content="Get in touch with TheGreatTech for your web development, mobile app, and cloud solution needs.">
<!-- <script src="https://www.google.com/recaptcha/api.js" async defer></script> -->
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="assets/images/greattech_logo.svg">
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- AOS Animation -->
<!-- <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> -->
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/animations.css">
</head>
<body>
<!-- Preloader -->
<div class="preloader">
<div class="loader">
<img src="assets/images/greattech_logo.svg" alt="TheGreatTech Logo">
<div class="loading-bar"></div>
</div>
</div>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="assets/images/greattech_logo_white.svg" alt="TheGreatTech Logo" height="30">
<!-- <span>TheGreatTech</span> -->
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link active" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">About</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="servicesDropdown"
data-bs-toggle="dropdown" aria-expanded="false">Services<i
class="fas fa-chevron-down small ms-1 "></i></a>
<div class="dropdown-menu ">
<a class="dropdown-item" href="services.html#web">Web Development</a>
<a class="dropdown-item" href="services.html#mobile">Mobile Apps</a>
<a class="dropdown-item" href="services.html#cloud">Cloud Solutions</a>
<a class="dropdown-item" href="services.html#ai">AI Integration</a>
</div>
</li>
<li class="nav-item"><a class="nav-link" href="portfolio.html">Portfolio</a></li>
<li class="nav-item"><a class="nav-link" href="blog.html">Blog</a></li>
<li class="nav-item"><a class="nav-link" href="careers.html">Careers</a></li>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li>
<li class="nav-item"><a class="nav-link btn btn-primary" href="contact.html#quote">Get Quote</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Contact Hero -->
<header class="page-hero contact-hero">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8 mx-auto text-center" data-aos="fade-up">
<h1>Contact Us</h1>
<p class="lead">We'd love to hear from you! Get in touch for inquiries, quotes, or just to say
hello.</p>
</div>
</div>
</div>
</header>
<!-- Contact Section -->
<section class="section contact-section">
<div class="container">
<div class="row">
<div class="col-lg-6" data-aos="fade-right">
<div class="contact-info">
<h2>Get In Touch</h2>
<p>Have a project in mind or want to learn more about our services? Fill out the form or contact
us directly.</p>
<div class="contact-methods">
<div class="contact-method">
<div class="contact-icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<div class="contact-details">
<h3>Our Office</h3>
<p>Aripanthan <br>Beerwah Budgam J&K India</p>
</div>
</div>
<div class="contact-method">
<div class="contact-icon">
<i class="fas fa-phone-alt"></i>
</div>
<div class="contact-details">
<h3>Phone</h3>
<p>+91 7889528326<br>Mon-sat, 9am-5pm </p>
</div>
</div>
<div class="contact-method">
<div class="contact-icon">
<i class="fas fa-envelope"></i>
</div>
<div class="contact-details">
<h3>Email</h3>
<p>thegreattechofficial@gmail.com<br>maqsood@thegreattech.tech</p>
</div>
</div>
</div>
<div class="social-links">
<h3>Follow Us</h3>
<a href="https://wa.me/917889528326"><i class="fab fa-whatsapp"></i></a>
<a href="mailto:thegreattechofficial@gmail.com"><i class="fab fa-google"></i></a>
<a href="https://github.com/TheGreatTech"><i class="fab fa-github"></i></a>
</div>
</div>
</div>
<div class="col-lg-6" data-aos="fade-left">
<div class="contact-form dark-mode:bg-[#121212] dark-mode:shadow-[0_5px_15px_rgba(0,0,0,0.2)]">
<h2 class="dark-mode:text-white">Send Us a Message</h2>
<form id="contact-form">
<div class="form-group">
<input type="text" id="name"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Your Name" required>
</div>
<div class="form-group">
<input type="email" id="email"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Your Email" required>
</div>
<div class="form-group">
<input type="text" id="subject"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Subject">
</div>
<div class="form-group">
<textarea id="message"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
rows="5" placeholder="Your Message" required></textarea>
</div>
<!-- CAPTCHA Container -->
<div id="captcha-container" class="my-3">
<div id="contact-recaptcha"></div>
</div>
<!-- Loading Indicator -->
<div id="loading" class="my-2" style="display: none;">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- Status Message -->
<div id="status-message" class="alert mt-3" style="display: none;"></div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
</div>
<div class="quote-form mt-5 dark-mode:bg-[#121212] dark-mode:shadow-[0_5px_15px_rgba(0,0,0,0.2)]"
id="quote">
<h2 class="dark-mode:text-white">Request a Free Quote</h2>
<form id="quote-form">
<div class="form-group">
<input type="text" id="quote-company"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Company Name" required>
</div>
<div class="form-group">
<select id="quote-service"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
required>
<option value="" disabled selected>Select Service</option>
<option value="Web Development">Web Development</option>
<option value="Mobile App">Mobile App</option>
<option value="Cloud Solutions">Cloud Solutions</option>
<option value="AI Integration">AI Integration</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group">
<textarea id="quote-details"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
rows="3" placeholder="Project Details" required></textarea>
</div>
<div class="form-group">
<input type="email" id="quote-email"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Your Email" required>
</div>
<div class="form-group">
<input type="tel" id="quote-phone"
class="form-control dark-mode:bg-[#2d2d2d] dark-mode:border-[#444] dark-mode:text-white"
placeholder="Phone Number">
</div>
<!-- CAPTCHA -->
<div id="quote-captcha-container" class="my-3" style="display: none;">
<div id="quote-recaptcha"></div>
</div>
<!-- Loading -->
<div id="quote-loading" class="my-2" style="display: none;">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<!-- Status -->
<div id="quote-status-message" class="alert mt-3" style="display: none;"></div>
<button type="submit" id="submit-quote" class="btn btn-primary">Get Quote</button>
</form>
</div>
<script>
let contactWidgetId, quoteWidgetId;
function onRecaptchaLoad() {
contactWidgetId = grecaptcha.render('contact-recaptcha', {
'sitekey': '6LcM1NorAAAAAEiULaf4CB2FHHjtrxFhcMx44lT6'
});
quoteWidgetId = grecaptcha.render('quote-recaptcha', {
'sitekey': '6Let1NorAAAAAFn0LQxMWuq_onbrJB9MLp6m7_cv'
});
}
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.getElementById('quote-captcha-container').style.display = 'block';
const form = document.getElementById('quote-form');
const captchaContainer = document.getElementById('quote-captcha-container');
form.addEventListener('submit', async function (e) {
e.preventDefault();
// Get form values
const company = document.getElementById('quote-company').value.trim();
const service = document.getElementById('quote-service').value;
const details = document.getElementById('quote-details').value.trim();
const email = document.getElementById('quote-email').value.trim();
const phone = document.getElementById('quote-phone').value.trim();
const loading = document.getElementById('quote-loading');
const statusMessage = document.getElementById('quote-status-message');
// Validate required fields
if (!company || !service || !details || !email) {
return showStatusMessage('Please fill all required fields', false);
}
// Validate email format
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) {
return showStatusMessage('Please enter a valid email address', false);
}
// Show CAPTCHA if not already shown
if (captchaContainer.style.display === 'none') {
captchaContainer.style.display = 'block';
return showStatusMessage('Please complete the CAPTCHA verification', false);
}
// Verify CAPTCHA
const captchaResponse = grecaptcha.getResponse(quoteWidgetId);
if (!captchaResponse) {
return showStatusMessage('Please complete the CAPTCHA verification', false);
}
// Show loading
loading.style.display = 'block';
statusMessage.style.display = 'none';
try {
const response = await fetch('https://script.google.com/macros/s/AKfycbxmdo3DvU27Eq32jSXbVM8AuYz25XFus6C6QcHm2eOytdKhmJIYiOZ_MavxYZukdld1/exec', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: `company=${encodeURIComponent(company)}&service=${encodeURIComponent(service)}&details=${encodeURIComponent(details)}&email=${encodeURIComponent(email)}&phone=${encodeURIComponent(phone)}&g-recaptcha-response=${encodeURIComponent(captchaResponse)}`
});
if (!response.ok) {
throw new Error('Network response was not ok');
}
const result = await response.json();
if (!result.success) {
throw new Error(result.message || 'Submission failed');
}
showStatusMessage(result.message || 'Your quote request has been submitted successfully!', true);
form.reset();
grecaptcha.reset();
captchaContainer.style.display = 'none';
} catch (error) {
console.error('Error:', error);
showStatusMessage(error.message || 'Failed to submit. Please try again.', false);
} finally {
loading.style.display = 'none';
}
grecaptcha.reset(contactWidgetId);
});
function showStatusMessage(text, isSuccess) {
const statusMessage = document.getElementById('quote-status-message');
const isDarkMode = document.documentElement.classList.contains('dark-mode');
statusMessage.textContent = text;
statusMessage.className = 'alert mt-3 ' + (isSuccess ?
(isDarkMode ? 'bg-green-900 text-green-200 border-green-800' : 'bg-green-100 text-green-800 border-green-300') :
(isDarkMode ? 'bg-red-900 text-red-200 border-red-800' : 'bg-red-100 text-red-800 border-red-300'));
statusMessage.style.display = 'block';
statusMessage.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
});
</script>
</div>
</div>
</div>
</section>
<!-- Map Section -->
<section class="map-section">
<div class="container-fluid p-0">
<div class="map-container">
<iframe
src="https://www.google.com/maps/embed?pb=!1m12!1m8!1m3!1d2337.2926854556863!2d74.57610093280304!3d34.0584637548488!3m2!1i1024!2i768!4f13.1!2m1!1sMAQSOOD%20HUSSAIN%20WANI!5e0!3m2!1sen!2sin!4v1747304372425!5m2!1sen!2sin"
width="100%" height="450" style="border:0;" allowfullscreen="" loading="lazy"></iframe>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="section cta">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8" data-aos="fade-right">
<h2>Ready to Transform Your Business?</h2>
<p class="mb-0">Get started with a free consultation and quote for your project.</p>
</div>
<div class="col-lg-4 text-lg-end" data-aos="fade-left">
<a href="contact.html#quote" class="btn btn-light btn-lg">Get Free Quote</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-4 footer-about">
<img src="assets/images/greattech_logo_white.svg" alt="TheGreatTech Logo" height="40">
<p>Providing affordable, high-quality digital solutions since 2023. Helping businesses establish and
grow their online presence.</p>
<div class="social-links">
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-facebook-f"></i></a> -->
<a href="https://wa.me/917889528326"><i class="fab fa-whatsapp"></i></a>
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-linkedin-in"></i></a> -->
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-instagram"></i></a> -->
<a href="https://github.com/TheGreatTech"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="col-lg-2 footer-links">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
</div>
<div class="col-lg-3 footer-links">
<h3>Services</h3>
<ul>
<li><a href="services.html#web">Web Development</a></li>
<li><a href="services.html#mobile">Mobile Applications</a></li>
<li><a href="services.html#cloud">Cloud Solutions</a></li>
<li><a href="services.html#ai">AI Integration</a></li>
<li><a href="services.html#support">Support & Maintenance</a></li>
</ul>
</div>
<div class="col-lg-3 footer-contact">
<h3>Contact Us</h3>
<ul>
<li><i class="fas fa-map-marker-alt"></i> BEERWAH BUDGAM J&K</li>
<li><i class="fas fa-phone"></i> +91 7889528326</li>
<li><i class="fas fa-envelope"></i> thegreattechofficial@gmail.com</li>
</ul>
<a href="contact.html" class="btn btn-outline-light">Contact Form</a>
</div>
</div>
<hr>
<div class="footer-bottom">
<div class="row">
<div class="col-md-6">
<p>© 2023 TheGreatTech. All rights reserved.</p>
</div>
<div class="col-md-6 text-md-end">
<a href="privacy.html">Privacy Policy</a> |
<a href="terms.html">Terms of Service</a> |
<a href="cookies.html">Cookie Policy</a>
</div>
</div>
</div>
</div>
</footer>
<!-- Back to Top -->
<a href="#" class="back-to-top"><i class="fas fa-arrow-up"></i></a>
<script src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit" async defer></script>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/form-handler.js"></script>
<script src="assets/js/blog-loader.js"></script>
<script>
// Initialize AOS animation
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Load services data
$(document).ready(function () {
$.getJSON('data/services.json', function (data) {
let servicesHtml = '';
data.slice(0, 3).forEach(service => {
servicesHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${service.id * 100}">
<div class="service-card">
<div class="service-icon">
<i class="${service.icon}"></i>
</div>
<h3>${service.title}</h3>
<p>${service.description}</p>
<a href="services.html#${service.id}" class="read-more">Learn more <i class="fas fa-arrow-right"></i></a>
</div>
</div>
`;
});
$('#services-container').html(servicesHtml);
});
// Load testimonials
$.getJSON('data/testimonials.json', function (data) {
let testimonialsHtml = '';
data.forEach(testimonial => {
testimonialsHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${testimonial.id * 100}">
<div class="testimonial-card">
<div class="testimonial-content">
<p>"${testimonial.content}"</p>
</div>
<div class="testimonial-author">
<img src="${testimonial.avatar}" alt="${testimonial.name}">
<div>
<h4>${testimonial.name}</h4>
<span>${testimonial.position}, ${testimonial.company}</span>
</div>
</div>
</div>
</div>
`;
});
$('#testimonials-container').html(testimonialsHtml);
});
// Load blog preview
$.getJSON('data/blog-posts.json', function (data) {
let blogHtml = '';
data.slice(0, 3).forEach(post => {
blogHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${post.id * 100}">
<div class="blog-card">
<div class="blog-image">
<img src="${post.image}" alt="${post.title}" class="img-fluid">
<div class="blog-date">${post.date}</div>
</div>
<div class="blog-content">
<h3><a href="blog-single.html?id=${post.id}">${post.title}</a></h3>
<p>${post.excerpt}</p>
<a href="blog-single.html?id=${post.id}" class="read-more">Read More <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>
`;
});
$('#blog-preview-container').html(blogHtml);
});
});
</script>
<!-- Additional script for contact page -->
<!-- <script>
$(document).ready(function () {
// Contact form submission
$('#contact-form').submit(function (e) {
e.preventDefault();
const form = $(this);
const submitBtn = form.find('button[type="submit"]');
const originalBtnText = submitBtn.html();
submitBtn.prop('disabled', true);
submitBtn.html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Sending...');
// Simulate form submission
setTimeout(() => {
form.prepend(`
<div class="alert alert-success alert-dismissible fade show" role="alert">
Thank you for your message! We'll get back to you soon.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
`);
form.trigger('reset');
submitBtn.prop('disabled', false);
submitBtn.html(originalBtnText);
}, 1500);
});
// Quote form submission
$('#quote-form').submit(function (e) {
e.preventDefault();
const form = $(this);
const submitBtn = form.find('button[type="submit"]');
const originalBtnText = submitBtn.html();
submitBtn.prop('disabled', true);
submitBtn.html('<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> Processing...');
// Simulate form submission
setTimeout(() => {
form.prepend(`
<div class="alert alert-success alert-dismissible fade show" role="alert">
Thank you for your quote request! We'll review your project and get back to you within 24 hours.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
`);
form.trigger('reset');
submitBtn.prop('disabled', false);
submitBtn.html(originalBtnText);
}, 1500);
});
});
</script> -->
</body>
</html>