-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
190 lines (179 loc) · 7.69 KB
/
Copy pathcontact.html
File metadata and controls
190 lines (179 loc) · 7.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Secret Coder : Contact</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="img/icon.png" rel="icon" />
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Nunito:wght@600;700;800&display=swap" rel="stylesheet" />
<!-- Font Icons & Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet" />
<link href="lib/animate/animate.min.css" rel="stylesheet" />
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet" />
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="index.html" class="navbar-brand d-flex align-items-center px-4 px-lg-5">
<p class="m-0 fw-bold" style="font-size: 25px;"><img src="img/icon.png" alt="" height="50px" />Secret<span style="color: #fb873f;">Coder</span></p>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="index.html" class="nav-item nav-link">Home</a>
<a href="about.html" class="nav-item nav-link">About</a>
<a href="courses.html" class="nav-item nav-link">Courses</a>
<a href="contact.html" class="nav-item nav-link active">Contact</a>
<a href="login.html" class="nav-item nav-link"><i class="fa fa-user"></i></a>
</div>
</div>
</nav>
<!-- Header -->
<div class="container-fluid bg-primary py-5 mb-5 page-header">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-10 text-center">
<h1 class="display-3 text-white animated slideInDown">Contact</h1>
<ol class="breadcrumb justify-content-center">
<li class="breadcrumb-item"><a class="text-white" href="index.html">Home</a></li>
<li class="breadcrumb-item text-white active">Contact</li>
</ol>
</div>
</div>
</div>
</div>
<!-- Contact Section -->
<div class="container-xxl py-5">
<div class="container">
<div class="text-center wow fadeInUp" data-wow-delay="0.1s">
<h1 class="mb-5 bg-white text-center px-3">Contact Us</h1>
</div>
<div class="row g-4">
<!-- Contact Info -->
<div class="col-lg-6 col-md-6 wow fadeInUp" data-wow-delay="0.1s">
<h5>Get In Touch</h5>
<p class="mb-4">For any course or contribution-related queries, feel free to drop us a message.</p>
<div class="d-flex align-items-center mb-3">
<div class="icon-box"><i class="fa fa-map-marker-alt text-white"></i></div>
<div class="ms-3">
<h5>Office</h5>
<p class="mb-0">123 Street, Bangalore</p>
</div>
</div>
<div class="d-flex align-items-center mb-3">
<div class="icon-box"><i class="fa fa-phone-alt text-white"></i></div>
<div class="ms-3">
<h5>Mobile</h5>
<p class="mb-0">+91 8683045908</p>
</div>
</div>
<div class="d-flex align-items-center">
<div class="icon-box"><i class="fa fa-envelope-open text-white"></i></div>
<div class="ms-3">
<h5>Email</h5>
<p class="mb-0">demowebsiteform@gmail.com</p>
</div>
</div>
</div>
<!-- Contact Form -->
<div class="col-lg-6 col-md-12 wow fadeInUp" data-wow-delay="0.5s">
<form onsubmit="sendForm(event)">
<div class="row g-3">
<div class="col-md-6 form-floating">
<input type="text" class="form-control" name="name" placeholder="Your Name" required />
<label>Your Name</label>
</div>
<div class="col-md-6 form-floating">
<input type="email" class="form-control" name="email" placeholder="Your Email" required />
<label>Your Email</label>
</div>
<div class="col-12 form-floating">
<input type="text" class="form-control" name="subject" placeholder="Subject" required />
<label>Subject</label>
</div>
<div class="col-12 form-floating">
<textarea class="form-control" name="message" style="height: 150px" placeholder="Message" required></textarea>
<label>Message</label>
</div>
<div class="col-12">
<button class="btn btn-primary w-100 py-3" type="submit">Send Message</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Thank You Modal -->
<div class="modal fade" id="thankYouModal" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content text-center p-4">
<div class="modal-header border-0">
<h5 class="modal-title w-100">🎉 Thank You!</h5>
</div>
<div class="modal-body">
Your message has been sent successfully!
</div>
<div class="modal-footer border-0 justify-content-center">
<button type="button" class="btn btn-primary px-4" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="container-fluid bg-dark text-light footer pt-5 mt-5 wow fadeIn">
<div class="container py-5">
<div class="row g-5">
<div class="col-lg-4 col-md-6">
<h4 class="text-white mb-3">Quick Link</h4>
<a class="text-light" href="about.html">About Us</a><br />
<a class="text-light" href="contact.html">Contact Us</a><br />
<a class="text-light" href="#">Privacy Policy</a><br />
<a class="text-light" href="#">Terms & Conditions</a>
</div>
<div class="col-lg-4 col-md-6">
<h4 class="text-white mb-3">Contact</h4>
<p><i class="fa fa-map-marker-alt me-2"></i> Assam Downtown University</p>
<p><i class="fa fa-phone-alt me-2"></i> +91 7003035426</p>
<p><i class="fa fa-envelope me-2"></i> demowebsiteform@gmail.com</p>
</div>
</div>
</div>
</div>
<!-- JS (Bootstrap + Submit handler) -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script>
function sendForm(e) {
e.preventDefault();
const form = e.target;
fetch("https://formsubmit.co/ajax/demowebsiteform@gmail.com", {
method: "POST",
headers: { "Content-Type": "application/json", Accept: "application/json" },
body: JSON.stringify({
name: form.name.value,
email: form.email.value,
subject: form.subject.value,
message: form.message.value,
}),
})
.then((res) => {
if (res.ok) {
form.reset();
new bootstrap.Modal(document.getElementById("thankYouModal")).show();
} else {
alert("Failed to send. Try again later.");
}
});
}
</script>
</body>
</html>