-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontactus.html
More file actions
102 lines (93 loc) · 4.08 KB
/
contactus.html
File metadata and controls
102 lines (93 loc) · 4.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link rel="stylesheet" href="contactus.css">
</head>
<body>
<nav class="navbar">
<div class="logo">
<a href="./index.html">
CODE<span style="color: #ff6f61;">FOAD</span>
</a>
</div>
<button class="mobile-menu-button" id="mobileMenuButton">☰</button>
<ul class="navigationlinks" id="navLinks">
<li><a href="./index.html">Home</a></li>
<li class="tutdropdown">
<a>Tutorials</a>
<ul class="tutorialdropdownitems">
<li><a href="./python1.html">Python Essentials</a></li>
<li><a href="./bashscripting.html">Bash Scripting</a></li>
<li><a href="./html.html">HTML</a></li>
<li><a href="./css.html">CSS</a></li>
</ul>
</li>
<li><a href="./index.html#aboutus">About Us</a></li>
<li><a href="./contactus.html">Contact</a></li>
<li id="loginItem"><a href="./login.html" class="loginbutton">Login</a></li>
</ul>
</nav>
<div class="contactus">
<div class="contactuscontainer">
<div class="contactusinformation">
<h1>Contact Us</h1>
<p>We'd love to hear from you! Reach out to us using the details below or fill out the form to send us a message.</p>
<div class="Information">
<h4>Address</h4>
<p>Your space hostel, Revell Orchid Porwal Road Lohegaon, Pune 412001 </p>
</div>
<div class="Information">
<h4>Email</h4>
<p>codingtutor@gmail.com</p>
</div>
<div class="Information">
<h4>Phone</h4>
<p>+91-1234567890</p>
</div>
</div>
<div class="contactusform">
<h2>Send Us a Message</h2>
<form id="contactForm">
<div class="form-group">
<input type="text" name="name" id="name" placeholder="Your Name" required>
</div>
<div class="form-group">
<input type="email" name="email" id="email" placeholder="Your Email" required>
</div>
<div class="form-group">
<textarea name="message" id="message" rows="6" placeholder="Your Message" required></textarea>
</div>
<button type="submit">Send Message</button>
</form>
<div id="successMessage" style="display: none; margin-top: 20px; text-align: center; color: #ff6f61; font-weight: bold;">
Message sent successfully! We'll get back to you soon.
</div>
</div>
</div>
</div>
<script src="common.js"></script>
<script src="login.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const contactForm = document.getElementById('contactForm');
const successMessage = document.getElementById('successMessage');
if (contactForm) {
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
// In a real application, you would send the form data to a server here
// For this demo, we'll just simulate a successful submission
// Hide the form
contactForm.style.display = 'none';
// Show success message
successMessage.style.display = 'block';
// Optional: Reset form fields
contactForm.reset();
});
}
});
</script>
</body>
</html>