forked from ML-Fusion-Lab/ML-Fusion-Lab-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
775 lines (653 loc) · 17.7 KB
/
contact.html
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
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="ml-fusion-lab-logo.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - ML Fusion Labs</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="contact.css">
<link rel="stylesheet" href="scroll.css">
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
nav ul {
list-style: none;
margin-left: auto;
padding: 0;
display: flex;
align-items: center;
}
nav ul li {
margin-left: 20px;
}
nav ul li a {
text-decoration: none;
color: white;
font-size: 18px;
font-weight: 500;
padding: 10px 15px;
transition: background 0.3s ease, color 0.3s ease;
border-radius: 5px;
}
nav ul li a:hover {
background-color: white;
color: #007BFF;
}
.footer-links a,
.footer-socials a {
color: white;
text-decoration: none;
margin: 0 10px;
transition: color 0.3s;
}
.footer-links a:hover,
.footer-socials a:hover {
color: #007BFF;
}
.footer-contact a {
color: white;
}
/* Container for the progress bar */
#progress-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 8px;
background-color: #f3f3f3;
z-index: 99;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Progress bar with glowing effect */
#progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #9be5ff, #0074e1);
box-shadow: 0 0 15px rgba(0, 116, 225, 0.7),
0 0 30px rgba(0, 116, 225, 0.5);
border-radius: 4px;
transition: width 0.25s ease-out;
}
/* Glowing animation */
#progress-bar::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
opacity: 0.5;
animation: glow 2s infinite;
border-radius: inherit;
}
/* Glowing animation keyframes */
@keyframes glow {
0% {
opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
opacity: 0.5;
}
}
/* Responsive adjustments */
@media screen and (max-width: 600px) {
#progress-container {
height: 6px;
}
}
header {
height: 100px;
}
body{
min-height:100vh;
max-width:100vw;
}
.logo {
margin: 5px 0px 5px 0px;
width: 100px;
aspect-ratio: auto 100 / 100;
height: 100px;
}
body {
.container h2 {
font-size: 40px;
}
/* Styles for larger screens */
@media (min-width: 901px) {
header{
height: auto;
}
header nav .hamburger {
display: none;
}
header nav ul {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
}
/* header nav ul li {
margin: 0 0.5rem; /* Reduce margin between items */
} */
header nav ul li a:hover {
background-color: #00c6ff;
color: #000;
border-radius: 0.75rem; /* Rounded corners for active link */
}
}
header {
height: 100px;
}
footer {
background: #333;
color: white;
text-align: center;
padding: 20px 0;
margin-top: auto;
}
.footer-container {
max-width: 800px;
margin: auto;
padding: 0 20px;
}
.footer-links,
.footer-socials {
margin: 10px 0;
}
.footer-links a,
.footer-socials a {
color: white;
text-decoration: none;
margin: 0 10px;
transition: color 0.3s;
}
.footer-links a:hover,
.footer-socials a:hover {
color: #007bff;
}
.footer-contact {
margin: 10px 0;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
.container h2 {
font-size:40px;
}
/Newsletter Styles/ .newsletter {
height: 200px;
width: 100%;
background-color: whitesmoke;
margin-top: 30px;
display: flex;
flex-direction: row;
justify-content: space-between;
text-align: center;
align-items: center;
box-shadow: 10px 10px 10px solid white;
}
.newsletter-left {
margin-left: 60px;
}
.newsletter-left h1 {
font-size: 1.5rem;
font-family: Poppins;
font-weight: 500;
}
.newsletter-left p {
font-size: 1rem;
font-family: Poppins;
font-weight: 300;
}
@media (max-width: 1000px) {
.newsletter {
height: 300px;
padding: 40px;
width: 100%;
background-color: whitesmoke;
display: flex;
flex-direction: column;
justify-content: center;
align-items:center;
box-shadow: 10px 10px 10px solid white;
}
.newsletter-left{
margin-left :0;
}
.newsletter-right {
display: flex;
justify-content: center;
padding-left: 200px;
width: 80%;
}
}
}
/* Header Styles */
header {
background-color: #1a1a1a;
padding: 0px 20px;
/* Adjusted padding for more space(35 to 30px) */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: sticky;
top: 0;
z-index: 1000;
border-bottom: 3px solid #00c6ff;
display: flex;
/* Flexbox for better alignment */
justify-content: space-between;
/* Space between logo and navigation */
align-items: center;
}
header .logo h1 {
color: #fff;
font-weight: 700;
font-size: 36px;
letter-spacing: 2px;
text-transform: uppercase;
margin: 0;
/* Remove margin for better centering */
/* padding-bottom: 25px; */
}
header nav ul {
list-style: none;
display: flex;
gap: 30px;
/* Increase spacing between nav items */
}
header nav ul li {
margin: 0;
/* Remove extra margin */
}
header nav ul li a {
color: #fff;
text-decoration: none;
font-weight: 600;
font-size: 18px;
transition: color 0.3s, border-bottom 0.3s;
padding-bottom: 5px;
background-color: #333;
padding: 1rem 1rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 1000;
}
header nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
/* Adjust padding to reduce overall height */
}
/* header nav .brand {
color: #fff;
font-weight: 700;
font-size: 1.5rem;
text-decoration: none;
} */
header nav .logo h1 {
color: #fff;
font-weight: 700;
font-size: 28px;
margin: 0;
/* Remove margin */
}
header nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
/* header nav ul li {
margin: 0 0.5rem;
} */
header nav ul li a {
color: #fff;
text-decoration: none;
font-weight: 500;
font-size: 16px;
/* margin-right: -1rem; */
/* padding: 0.5rem 0.75rem; */
/* Adjust padding for links */
transition: color 0.3s ease;
}
/* Responsive styles */
@media (max-width: 900px) {
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1rem;
/* Adjust padding to reduce overall height */
}
header nav {
flex-direction: column;
align-items: flex-start;
width: 100%;
}
header nav .hamburger {
display: block;
font-size: 28px;
cursor: pointer;
color: #fff;
padding: 1rem;
/* Adjust padding for hamburger icon */
position: absolute;
top: 0;
right: 1rem;
/* Adjust right position as needed */
}
header nav ul {
flex-direction: column;
align-items: flex-start;
display: none;
/* Hide the navbar items */
width: 100%;
height:100vh;
/* Full width for mobile view */
position: absolute;
top: 100%;
right: 0;
background-color: #333;
/* Background color for the floating menu */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/* Add a box shadow */
padding: 1rem;
/* Add padding */
border-radius: 0 0 8px 8px;
/* Rounded corners at the bottom */
}
header nav ul.show {
display: flex;
/* Show the navbar items when the hamburger is clicked */
align-items: flex-end;
}
/* header nav ul li {
/* margin: 0.5rem 0; */
/* Adjust margin for vertical spacing */
*/
header nav ul li a:hover {
color: #00c6ff;
border-bottom: 2px solid #00c6ff;
/* color: #000; */
/* border-radius: .75rem; Rounded corners for active link */
}
}
/* Styles for larger screens */
@media (min-width: 901px) {
header nav .hamburger {
display: none;
}
header nav ul {
display: flex;
flex-direction: row;
align-items: center;
}
header nav ul li {
margin: 0 0.5rem;
/* Reduce margin between items */
}
header nav ul li a:hover {
background-color: #00c6ff;
color: #000;
border-radius: 0.75rem;
/* Rounded corners for active link */
}
}
footer {
background-color: #1a1a1a;
color: white;
padding: 40px 0;
text-align: center;
}
footer p {
margin: 10px 0;
}
footer p a {
color: #00c6ff;
text-decoration: none;
}
footer p a:hover {
text-decoration: underline;
}
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");
.container .registration{
display: block;
}
#check{
display: none;
}
.container .form{
padding: 2rem;
}
.form header{
font-size: 2rem;
font-weight: 500;
text-align: center;
margin-bottom: 1.5rem;
}
.form input{
height: 60px;
width: 100%;
padding: 0 15px;
font-size: 17px;
margin-bottom: 1.3rem;
border: 1px solid #ddd;
border-radius: 6px;
outline: none;
}
.form input:focus{
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.form a{
font-size: 16px;
color: #00c6ff;
text-decoration: none;
}
.form a:hover{
text-decoration: underline;
}
.form input.button{
color: #fff;
background:#00c6ff;;
font-size: 1.2rem;
font-weight: 500;
letter-spacing: 1px;
margin-top: 1.7rem;
cursor: pointer;
transition: 0.4s;
}
.form input.button:hover{
background: #435681;
}
.signup{
font-size: 17px;
text-align: center;
}
.signup label{
color: #009579;
cursor: pointer;
}
.signup label:hover{
text-decoration: underline;
}
a {
text-decoration: none;
}
img {
width: 100%;
display: flex;
}
.section__container {
max-width: var(--max-width);
margin: auto;
padding: 5rem 1rem;
}
.section__header {
font-size: 2rem;
font-weight: 600;
color: var(--text-dark);
text-align: center;
}
.contact-form .image-container {
width: 40%;
display: flex;
justify-content: right;
align-items: right;
padding: 0.3rem;
}
</style>
</head>
<body>
<header>
<div id="progress-container">
<div id="progress-bar"></div>
</div>
<div class="logo">
<a href="index.html">
<h1>
<img src="ml fusion lab log.jpg" alt="ML Fusion Lab Logo" width= "100"; height=" 100";>
</h1>
</a>
</div>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="courses.html">Courses</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<section class = "contact-section">
<div class = "contact-bg">
<h3>Get in Touch with Us</h3>
<h2>contact us</h2>
<div class = "line">
<div></div>
<div></div>
<div></div>
</div>
<p class = "text">We're here to assist you. Reach out to us for any inquiries or assistance you may need.</p>
</div>
<div class = "contact-body">
<div class = "contact-info">
<div>
<span><i class = "fas fa-mobile-alt"></i></span>
<span>Phone No.</span>
<span class = "text"> +1 (555) 123-4567</span>
</div>
<div>
<span><i class = "fas fa-envelope-open"></i></span>
<span>E-mail</span>
<span class = "text">[email protected]</span>
</div>
<div>
<span><i class = "fas fa-map-marker-alt"></i></span>
<span>Address</span>
<span class = "text">Tejashwi Nagar Jalandhar Cantt, Jalandhar , Pin Code:- 144005.</span>
</div>
<div>
<span><i class = "fas fa-clock"></i></span>
<span>Opening Hours</span>
<span class = "text">Monday - Friday (9:00 AM to 5:00 PM)</span>
</div>
</div>
<div class="contact-form">
<form id="contactForm">
<div>
<input type="text" class="form-control" id="firstName" placeholder="First Name" required>
<input type="text" class="form-control" id="lastName" placeholder="Last Name" required>
</div>
<div>
<input type="email" class="form-control" id="email" placeholder="E-mail" required>
<input type="text" class="form-control" id="phone" placeholder="Phone" required>
</div>
<textarea rows="5" placeholder="Message" class="form-control" id="message" required></textarea>
<input type="submit" class="send-btn" value="Send Message">
</form>
<div class="image-container">
<img src="Assets/contact.webp" alt="Contact">
</div>
</div>
</div>
<div class = "map">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3441.911005285574!2d75.6909327144019!3d31.253255681433364!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x391a9089cd71f61f%3A0x3d684c9690d14a5!2sLovely%20Professional%20University%2C%20Jalandhar%2C%20Punjab%20144401%2C%20India!5e0!3m2!1sen!2sus!4v1649982737577!5m2!1sen!2sin" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
</div>
</section>
<footer>
<div class="footer-container">
<p>© 2024 ML Fusion Labs | All Rights Reserved</p>
<div class="footer-links">
<a href="privacy.html">Privacy Policy</a> |
<a href="terms.html">Terms of Service</a> |
<a href="about.html">About Us</a> |
<a href="contact.html">Contact</a>
</div>
<div class="footer-socials">
Follow us on:
<a href="https://facebook.com" target="_blank"><i class="fab fa-facebook-f"></i></a>
<a href="https://twitter.com" target="_blank"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://linkedin.com" target="_blank"><i class="fab fa-linkedin-in"></i></a>
</div>
<div class="footer-contact">
<p>Contact us: <a href="mailto:[email protected]">[email protected]</a> | Phone: +1 (555) 123-4567</p>
</div>
</div>
</footer>
<button id="scrollTopBtn" onclick="scrollToTop()"> <i class="fas fa-arrow-up"></i></button>
<script src="scroll.js"></script>
<script src="script.js"></script>
<script>
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form from submitting
// Get form values
const firstName = document.getElementById('firstName').value.trim();
const lastName = document.getElementById('lastName').value.trim();
const email = document.getElementById('email').value.trim();
const phone = document.getElementById('phone').value.trim();
const message = document.getElementById('message').value.trim();
// Validate first and last name
if (firstName === '' || lastName === '') {
alert('Please enter your first and last name.');
return;
}
// Validate email format
const emailPattern = /^[^ ]+@[^ ]+\.[a-z]{2,3}$/;
if (!emailPattern.test(email)) {
alert('Please enter a valid email address.');
return;
}
// Validate phone number (for simplicity, checking if it's all digits and has 10-15 characters)
const phonePattern = /^[0-9]{10,15}$/;
if (!phonePattern.test(phone)) {
alert('Please enter a valid phone number (10-15 digits).');
return;
}
// Validate message
if (message === '') {
alert('Please enter your message.');
return;
}
// If all validations pass
alert('Form submitted successfully!');
// You can submit the form here, for example:
// this.submit();
});
</script>
</body>
</html>