-
Notifications
You must be signed in to change notification settings - Fork 15
/
contact.php
400 lines (382 loc) · 13.8 KB
/
contact.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Red Stream - connect the donors</title>
<!-- favicon-->
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<!--css-->
<link rel="stylesheet" href="./assets/css/style.css">
<!-- google font link-->
<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=Poppins:wght@600;700;800&family=Roboto:wght@400;500;600&display=swap" rel="stylesheet">
<style>
/* Popup styles */
.popup {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 20px;
background: linear-gradient(135deg, #ffffff, #a3d2ee);
color: #0e254e;
font-size: 16px;
z-index: 9999;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
@media screen and (max-width: 768px) {
.hero-form {
display: flex;
flex-direction: column;
}
.email-field {
margin-bottom: 10px;
}
.hero-banner iframe {
width: 100%;
height: 200px;
}
}
@media screen and (max-width: 900px) {
.hero-form {
display: flex;
flex-direction: column;
}
.email-field {
margin-bottom: 10px;
}
.hero-banner iframe {
width: 100%;
height: 250px;
}
}
/* Media query for screen sizes between 905x800 and 1197x800 */
@media screen and (min-width: 905px) and (max-width: 1197px) {
.hero-form {
max-width: 70%;
margin: 0 auto;
}
.hero-banner iframe {
width: 100%;
height: 300px;
}
}
</style>
<script>
// Function to display the popup message
function showPopup(message) {
const popup = document.createElement("div");
popup.className = "popup";
popup.textContent = message;
document.body.appendChild(popup);
// Automatically close the popup after 3 seconds
setTimeout(function () {
popup.remove();
}, 3000);
}
</script>
</head>
<body id="top">
<!-- HEADER-->
<header class="header">
<div class="header-top">
<div class="container">
<ul class="contact-list">
<li class="contact-item">
<ion-icon name="mail-outline"></ion-icon>
<a href="mailto:[email protected]" class="contact-link">[email protected]</a>
</li>
<li class="contact-item">
<ion-icon name="call-outline"></ion-icon>
<a href="tel:+917558951351" class="contact-link">+91-7558-951-351</a>
</li>
</ul>
<ul class="social-list">
<li>
<a href="https://www.facebook.com/andro.pool.54?mibextid=ZbWKwL" class="social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="https://www.instagram.com/_vladimir_putin.___/" class="social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
<li>
<a href="https://twitter.com/Annabel07785340" class="social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="https://youtu.be/Af0gk_kiGac" class="social-link">
<ion-icon name="logo-youtube"></ion-icon>
</a>
</li>
</ul>
</div>
</div>
<div class="header-bottom" data-header>
<div class="container">
<a href="#" class="logo">Red Stream</a>
<nav class="navbar container" data-navbar>
<ul class="navbar-list">
<li>
<a href="index.php" class="navbar-link" data-nav-link>Home</a>
</li>
<li>
<a href="#service" class="navbar-link" data-nav-link>Find donor</a>
</li>
<li>
<a href="about.html" class="navbar-link" data-nav-link>About Us</a>
</li>
<li>
<a href="#blog" class="navbar-link" data-nav-link>Blog</a>
</li>
<li>
<a href="contact.php" class="navbar-link" data-nav-link>Contact</a>
</li>
</ul>
</nav>
<a href="register.php" class="btn">Login / Register</a>
<button class="nav-toggle-btn" aria-label="Toggle menu" data-nav-toggler>
<ion-icon name="menu-sharp" aria-hidden="true" class="menu-icon"></ion-icon>
<ion-icon name="close-sharp" aria-hidden="true" class="close-icon"></ion-icon>
</button>
</div>
</div>
</header>
<main>
<article>
<!--HERO-->
<section class="section hero" id="home" style="background-image: url('./assets/images/hero-bg.png')"
aria-label="hero">
<div class="container">
<div class="hero-content">
<img src="assets/images/blood-icon.png" alt="ICON" width="70" height="70">
<p class="section-subtitle">Red Stream</p>
<h1 class="h1 hero-title">Contact Us</h1>
<h2 style="color: var(--royal-blue-light);">Address</h2>
<p class="hero-text">
Red Stream, Vaikom Road, Near Thalook Headquarters<br>
kottayam, Kerala, IN<br>
Pin 686141
</p>
<h2 style="color: var(--royal-blue-light);">Contact Details</h2>
<p class="hero-text">
MOBILE: +91 7558 9513 51 | TELEPHONE: 0484-292674<br>
EMAIL : [email protected]<br>
</p>
<form action="" class="hero-form" method="POST">
<input type="email" name="email_address" aria-label="email" placeholder="Your Email Address..." required
class="email-field">
<button type="submit" class="btn">Get Response Back</button>
</form>
</div>
<figure class="hero-banner">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d245.76164524118906!2d76.39003912368983!3d9.750279515331268!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3b08790da3aa8ec7%3A0x58b351f9df4075a3!2sBlood%20Storage%20Center!5e0!3m2!1sen!2sin!4v1689507408879!5m2!1sen!2sin" width="700" height="600" style="border:1;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</figure>
</div>
</section>
<!--FOOTER-->
<footer class="footer">
<div class="footer-top section">
<div class="container">
<div class="footer-brand">
<a href="#" class="logo">Red Stream</a>
<p class="footer-text">
We are passionate about connecting blood donors with recipients and bridging the gap in the healthcare industry.
We strive to create a community that fosters empathy, support, and solidarity among individuals who are committed to making a difference.
</p>
<div class="schedule">
<div class="schedule-icon">
<ion-icon name="time-outline"></ion-icon>
</div>
<span class="span">
24 X 7:<br>
365 Days
</span>
</div>
</div>
<ul class="footer-list">
<li>
<p class="footer-list-title">Other Links</p>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">Home</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">Find donor</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">About us</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">Blog</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">Contact</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">Login / Register</span>
</a>
</li>
</ul>
<ul class="footer-list">
<li>
<p class="footer-list-title">Our Services</p>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
<li>
<a href="#" class="footer-link">
<ion-icon name="add-outline"></ion-icon>
<span class="span">xxxxxxxxx</span>
</a>
</li>
</ul>
<ul class="footer-list">
<li>
<p class="footer-list-title">Contact Us</p>
</li>
<li class="footer-item">
<div class="item-icon">
<ion-icon name="location-outline"></ion-icon>
</div>
<a href="https://goo.gl/maps/BYA5MxQUg5B8ZFLcA">
<address class="item-text">
Near Thaluk Headquarters,<br>
Vaikom, Kottayam, Kerala IN
</address>
</a>
</li>
<li class="footer-item">
<div class="item-icon">
<ion-icon name="call-outline"></ion-icon>
</div>
<a href="tel:+917052101786" class="footer-link">+91-7558-951-351</a>
</li>
<li class="footer-item">
<div class="item-icon">
<ion-icon name="mail-outline"></ion-icon>
</div>
<a href="mailto:[email protected]" class="footer-link">[email protected]</a>
</li>
</ul>
</div>
</div>
<div class="footer-bottom">
<div class="container">
<p class="copyright">
© 2024 All Rights Reserved by Red Stream
</p>
<ul class="social-list">
<li>
<a href="https://www.facebook.com/andro.pool.54?mibextid=ZbWKwL" class="social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="https://www.instagram.com/_vladimir_putin.___/" class="social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
<li>
<a href="https://twitter.com/Annabel07785340" class="social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
</ul>
</div>
</div>
</footer>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (isset($_POST["email_address"]) && filter_var($_POST["email_address"], FILTER_VALIDATE_EMAIL)) {
// Sanitize the email address to prevent SQL injection
$email = htmlspecialchars($_POST["email_address"]);
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "redstream_db";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$stmt = $conn->prepare("INSERT INTO response_back (email) VALUES (?)");
$stmt->bind_param("s", $email);
$stmt->execute();
if ($stmt->affected_rows > 0) {
echo '<script>showPopup("Email added successfully!");</script>';
} else {
echo '<script>showPopup("Error: Unable to add email. Please try again later.");</script>';
}
$stmt->close();
$conn->close();
} else {
echo '<script>showPopup("Error: Invalid email address. Please enter a valid email.");</script>';
}
}
?>
<!--BACK TO TOP-->
<a href="#top" class="back-top-btn" aria-label="back to top" data-back-top-btn>
<ion-icon name="caret-up" aria-hidden="true"></ion-icon>
</a>
<!--custom js link-->
<script src="./assets/js/script.js" defer></script>
<!--ionicon link-->
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>
</html>