-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathcontact.html
More file actions
488 lines (426 loc) · 22.6 KB
/
contact.html
File metadata and controls
488 lines (426 loc) · 22.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact BYAMN - YouTube Learning Verified Achievement Support</title>
<meta name="description"
content="Contact the BYAMN team for support with YouTube learning courses, verified achievement certificates, progress tracking, and partnership inquiries.">
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<link rel="icon" type="image/png" href="./logo.png">
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Inter font -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Custom styles -->
<link rel="stylesheet" href="assets/css/styles.css">
<!-- AOS (Animate On Scroll) -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<!-- Firebase SDK - Using compat versions without type="module" -->
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-analytics-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-database-compat.js"></script>
</head>
<body class="min-h-screen bg-gradient-to-br from-neutral-50 to-neutral-100">
<!-- Header -->
<header data-aos-duration="800" class="bg-white/90/90 backdrop-blur-sm shadow-sm sticky top-0 z-50">
<div data-aos="fade-down" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center py-4">
<!-- Logo and site name -->
<div class="flex items-center">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center h-10 w-10">
<img src="./logo.png" alt="BYAMN Logo" class="h-full w-full object-contain">
</div>
<h1
class="ml-3 font-bold bg-gradient-to-r from-indigo-600 to-purple-600 bg-clip-text text-transparent text-2xl">
BYAMN
</h1>
</div>
</div>
<!-- Desktop Navigation - hidden on mobile and tablets -->
<nav class="hidden lg:flex space-x-1">
<a href="index.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors duration-300">Home</a>
<a href="courses.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors duration-300">Courses</a>
<a href="about.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors duration-300">About</a>
<a href="faq.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors duration-300">FAQ</a>
<a href="contact.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors duration-300">Contact</a>
</nav>
<!-- User Actions Section -->
<div class="flex items-center space-x-3">
<!-- Mobile menu button - visible on mobile and tablets -->
<button id="mobile-menu-button"
class="lg:hidden p-2 rounded-lg bg-neutral-100 text-neutral-700 hover:bg-neutral-200 transition-colors"
aria-label="Toggle menu">
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
<!-- User-specific actions - shown only on large screens -->
<div id="user-actions-desktop" class="hidden lg:flex items-center space-x-3">
<a href="auth/login.html" id="login-btn" class="btn btn-outline">Login</a>
<a href="auth/register.html" id="signup-btn" class="btn btn-primary">Get Started</a>
</div>
</div>
</div>
<!-- Mobile Navigation - only visible when menu is open -->
<div id="mobile-menu" class="lg:hidden py-4 border-t border-neutral-200 hidden">
<div class="flex flex-col space-y-3 px-4">
<a href="index.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors">Home</a>
<a href="courses.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors">Courses</a>
<a href="about.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors">About</a>
<a href="faq.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors">FAQ</a>
<a href="contact.html"
class="px-3 py-2 rounded-lg text-neutral-600 hover:text-primary-600 font-medium transition-colors">Contact</a>
<!-- Mobile user actions -->
<div id="user-actions-mobile" class="pt-4 border-t border-neutral-200 space-y-3">
<a href="auth/login.html" id="login-btn" class="block w-full text-center btn btn-outline">Login</a>
<a href="auth/register.html" id="signup-btn" class="block w-full text-center btn btn-primary">Get
Started</a>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
<div data-aos="zoom-in" class="text-center mb-16">
<h1 class="text-4xl md:text-5xl font-bold text-gray-900 mb-6">Contact Us</h1>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Have questions or feedback? We'd love to hear from you. Get in touch with our team.
</p>
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-start">
<div data-aos="fade-right">
<div class="bg-white rounded-3xl shadow-xl p-8 border border-neutral-100 contact-card contact-card-interactive">
<h2 class="text-3xl font-bold text-gray-900 mb-2">Send us a message 🚀</h2>
<p class="text-gray-500 mb-8">Have a question? We usually respond within 24 hours.</p>
<form id="contactForm" class="space-y-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label for="name" class="block text-sm font-semibold text-gray-700 mb-2">Full Name</label>
<input type="text" id="name" name="name" required minlength="2" placeholder="John Doe"
class="w-full px-4 py-3 rounded-xl border-gray-200 bg-gray-50 text-gray-900 focus:bg-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200 outline-none">
<div class="error-message text-red-500 text-xs mt-1 hidden" id="nameError"></div>
</div>
<div>
<label for="email" class="block text-sm font-semibold text-gray-700 mb-2">Email Address</label>
<input type="email" id="email" name="email" required placeholder="john@example.com"
class="w-full px-4 py-3 rounded-xl border-gray-200 bg-gray-50 text-gray-900 focus:bg-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200 outline-none">
<div class="error-message text-red-500 text-xs mt-1 hidden" id="emailError"></div>
</div>
</div>
<div>
<label for="subject" class="block text-sm font-semibold text-gray-700 mb-2">Subject</label>
<input type="text" id="subject" name="subject" placeholder="How can we help?"
class="w-full px-4 py-3 rounded-xl border-gray-200 bg-gray-50 text-gray-900 focus:bg-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200 outline-none">
</div>
<div>
<label for="message" class="block text-sm font-semibold text-gray-700 mb-2">Message</label>
<textarea id="message" name="message" rows="4" required placeholder="Tell us more about your project..."
class="w-full px-4 py-3 rounded-xl border-gray-200 bg-gray-50 text-gray-900 focus:bg-white focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200 outline-none resize-none"></textarea>
</div>
<button type="submit"
class="w-full py-4 px-6 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 text-white font-bold text-lg hover:shadow-lg hover:scale-[1.02] transition-all duration-200">
Send Message
</button>
</form>
</div>
</div>
<div data-aos="fade-right">
<div class="bg-white rounded-2xl shadow-lg p-8 mb-8 contact-card contact-card-interactive">
<h2 class="text-2xl font-bold text-gray-900 mb-6">Get in touch</h2>
<div class="space-y-6">
<div class="flex items-start">
<div class="flex-shrink-0 h-12 w-12 rounded-full bg-indigo-100/30 flex items-center justify-center">
<svg class="h-6 w-6 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Email</h3>
<p class="text-gray-600 mt-1">support@byamn.com</p>
<p class="text-gray-600">partnerships@byamn.com</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-12 w-12 rounded-full bg-indigo-100/30 flex items-center justify-center">
<svg class="h-6 w-6 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Office</h3>
<p class="text-gray-600 mt-1">123 Education Street</p>
<p class="text-gray-600">San Francisco, CA 94103</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0 h-12 w-12 rounded-full bg-indigo-100/30 flex items-center justify-center">
<svg class="h-6 w-6 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
</div>
<div class="ml-4">
<h3 class="text-lg font-medium text-gray-900">Support Hours</h3>
<p class="text-gray-600 mt-1">Monday - Friday: 9AM - 5PM PST</p>
<p class="text-gray-600">Saturday: 10AM - 2PM PST</p>
</div>
</div>
</div>
</div>
<div data-aos="fade-left" class="space-y-8">
<div
class="bg-violet-900 rounded-3xl p-8 text-white shadow-xl relative overflow-hidden contact-card contact-card-interactive">
<div class="absolute top-0 right-0 -mt-4 -mr-4 w-24 h-24 bg-purple-500 rounded-full blur-2xl opacity-50">
</div>
<div class="relative z-10">
<h3 class="text-2xl font-bold mb-6">Join our community</h3>
<div class="flex items-center gap-8">
<div>
<p
class="text-4xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-white to-indigo-200">
50K+</p>
<p class="text-indigo-200 font-medium">Trusted Students</p>
</div>
<div class="w-px h-12 bg-indigo-700"></div>
<div>
<p
class="text-4xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-white to-indigo-200">
200+</p>
<p class="text-indigo-200 font-medium">Expert Courses</p>
</div>
</div>
</div>
</div>
</div>
<div>
</div>
</div>
</main>
<!-- Footer -->
<footer data-aos-duration="1000" class="bg-neutral-900 text-white mt-24 fade-in">
<div data-aos="fade-up" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:flex lg:gap-10 items-start px-8">
<!-- BRAND -->
<div class="lg:w-auto lg:mr-10 mb-10 lg:mb-0">
<div class="flex items-center mb-4">
<div class="flex-shrink-0 h-10 w-10">
<img src="./logo.png" alt="BYAMN Logo" class="h-full w-full object-contain" />
</div>
<h1
class="ml-3 font-bold bg-gradient-to-r from-indigo-600 to-purple-600 bg-clip-text text-transparent text-2xl">
BYAMN
</h1>
</div>
<p class="text-neutral-300 max-w-md">
Empowering learners worldwide with high-quality, accessible
education for the digital age.
</p>
</div>
<!-- PLATFORM -->
<div class="lg:w-40 mb-10 lg:mb-0">
<h3 class="text-white text-lg font-semibold mb-4">Platform</h3>
<ul class="space-y-2 text-neutral-300 whitespace-nowrap">
<li>
<a href="./courses.html" class="hover:text-white transition">Courses</a>
</li>
<li>
<a href="verification.html" class="hover:text-white transition">Certificate Verification</a>
</li>
<li>
<a href="./about.html" class="hover:text-white transition">About Us</a>
</li>
<li>
<a href="./faq.html" class="hover:text-white transition">FAQ</a>
</li>
<li>
<a href="./contact.html" class="hover:text-white transition">Contact</a>
</li>
</ul>
</div>
<!-- LEGAL -->
<div class="lg:w-40 mb-10 lg:mb-0">
<h3 class="text-white text-lg font-semibold mb-4">Legal</h3>
<ul class="space-y-2 text-neutral-300 whitespace-nowrap">
<li>
<a href="./privacy.html" class="hover:text-white transition">Privacy Policy</a>
</li>
<li>
<a href="./terms.html" class="hover:text-white transition">Terms of Service</a>
</li>
</ul>
</div>
<!-- NEWSLETTER (large width) -->
<div class="md:col-span-1 gap-4">
<div class="bg-neutral-800 p-6 rounded-xl w-full md:w-full lg:w-[90%] xl:w-[80%] 2xl:w-[75%]">
<h3 class="text-white text-xl font-semibold mb-4">
Stay Updated
</h3>
<p class="text-neutral-300 text-sm mb-4">
Get the latest course updates, learning tips, and exclusive
offers delivered to your inbox.
</p>
<div class="flex items-center gap-3 flex-wrap">
<input type="email" placeholder="Enter your email address"
class="flex-1 px-4 py-2 w-full md:w-full bg-neutral-700 border border-neutral-600 rounded-lg text-white placeholder-neutral-400 focus:ring-2 focus:ring-primary-500" />
<button class="bg-purple-600 hover:bg-purple-700 px-5 py-2 rounded-lg text-white whitespace-nowrap">
Subscribe
</button>
</div>
<p class="mt-3 text-xs text-gray-400">
By subscribing, you agree to our
<a class="underline" href="#">Privacy Policy</a>.
</p>
</div>
</div>
</div>
<div class="border-t border-neutral-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
<p class="text-neutral-300">© 2026 BYAMN. All rights reserved.</p>
<div class="flex space-x-6 mt-4 md:mt-0">
<a href="https://www.linkedin.com/company/byamn/" target="_blank" rel="noopener noreferrer"
class="text-neutral-300 hover:text-white transition-colors duration-200 transform hover:scale-110">
<span class="sr-only">LinkedIn</span>
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path fill-rule="evenodd"
d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="https://www.facebook.com/byamn.byamn/" target="_blank" rel="noopener noreferrer"
class="text-neutral-300 hover:text-white transition-colors duration-200 transform hover:scale-110">
<span class="sr-only">Facebook</span>
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path fill-rule="evenodd"
d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="https://x.com/byamn.ai" target="_blank" rel="noopener noreferrer"
class="text-neutral-300 hover:text-white transition-colors duration-200 transform hover:scale-110">
<span class="sr-only">X (Twitter)</span> <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 512 512"
aria-hidden="true">
<path
d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" />
</svg>
</a>
</div>
</div>
</div>
</div>
</footer>
<!-- Initialize AOS -->
<script>
AOS.init({
duration: 1200, // optional: animation duration in ms
once: true // optional: run animation only once
});
</script>
<!-- Firebase configuration -->
<script type="module" src="./assets/js/firebase.js"></script>
<!-- Main JavaScript -->
<script src="assets/js/main.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const form = document.getElementById('contactForm');
const emailField = document.getElementById('email');
const emailError = document.getElementById('emailError');
const nameField = document.getElementById('name');
const nameError = document.getElementById('nameError');
// Enhanced email regex
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
// Name regex
const nameRegex = /^[a-zA-Z\s]+$/;
// Email validation function
function validateEmail() {
const value = emailField.value.trim();
if (value === '') {
emailError.textContent = 'Email is required';
emailError.classList.remove('hidden');
emailField.classList.add('border-red-500');
emailField.classList.remove('border-green-500');
return false;
}
if (!emailRegex.test(value)) {
emailError.textContent = 'Please enter a valid email address';
emailError.classList.remove('hidden');
emailField.classList.add('border-red-500');
emailField.classList.remove('border-green-500');
return false;
}
// Valid email
emailError.classList.add('hidden');
emailField.classList.remove('border-red-500');
emailField.classList.add('border-green-500');
return true;
}
// Name validation function
function validateName() {
const value = nameField.value.trim();
if (value === '') {
nameError.textContent = 'Name is required';
nameError.classList.remove('hidden');
nameField.classList.add('border-red-500');
return false;
}
if (!nameRegex.test(value) || value.length < 2 || value.length > 50) {
nameError.textContent = 'Please enter a valid name';
nameError.classList.remove('hidden');
nameField.classList.add('border-red-500');
return false;
}
// Valid name
nameError.classList.add('hidden');
nameField.classList.remove('border-red-500');
nameField.classList.add('border-green-500');
return true;
}
// Real-time validation
emailField.addEventListener('input', validateEmail);
emailField.addEventListener('blur', validateEmail);
nameField.addEventListener('input', validateName);
nameField.addEventListener('blur', validateName);
// Input masking for name field
nameField.addEventListener('input', function () {
// Remove numbers and special characters (keep only letters and spaces)
this.value = this.value.replace(/[^a-zA-Z\s]/g, '');
});
// Form submission
form.addEventListener('submit', function (e) {
e.preventDefault();
const isEmailValid = validateEmail();
const isNameValid = validateName();
if (isEmailValid && isNameValid) {
// Form is valid - you can submit via AJAX or regular form submission
alert('Form submitted successfully!');
form.reset();
emailField.classList.remove('border-green-500');
} else {
// Scroll to first error
const firstError = document.querySelector('.error-message:not(.hidden)');
if (firstError) {
firstError.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}
});
});
</script>
</body>
</html>