-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
659 lines (628 loc) · 24.9 KB
/
index.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
<!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 {
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);
}
</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/whxitte" 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" 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">Welcome To Red Stream</p>
<h1 class="h1 hero-title">Connecting The Donors...</h1>
<p class="hero-text">
Our mission is to bridge the gap between blood donors and recipients, providing a seamless and efficient experience for both parties.
You can trust us,
we provide the best service...
</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">
<img src="./assets/images/hero-banner.png" width="587" height="839" alt="hero banner" class="w-100">
</figure>
</div>
</section>
<!--SERVICE-->
<section class="section service" id="service" aria-label="service">
<div class="container">
<p class="section-subtitle text-center">Find the best Donor For You</p>
<h2 class="h2 section-title text-center">FIND DONOR</h2>
<!-- Replace the existing content with your form -->
<form class="donor-form">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="blood-type">Blood Type:</label>
<select id="blood-type" name="blood-type">
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select>
</div>
<div class="form-group">
<label for="city">City:</label>
<input type="text" id="city" name="city" required>
</div>
<div class="form-group">
<label for="state">State:</label>
<input type="text" id="state" name="state" required>
</div>
<button type="submit" class="btn">Find Donor</button>
</form>
</div>
</section>
<!--ABOUT-->
<section class="section about" id="about" aria-label="about">
<div class="container">
<figure class="about-banner">
<img src="./assets/images/about-banner.png" width="470" height="538" loading="lazy" alt="about banner"
class="w-100">
</figure>
<div class="about-content">
<p class="section-subtitle">About Us</p>
<h2 class="h2 section-title">We Care For Your Loved Ones ꨄ︎</h2>
<p class="section-text section-text-1">
At Red Stream, we are passionate about connecting blood donors with recipients and bridging the gap in the healthcare industry.
Our mission is to provide a seamless and efficient experience for both donors and recipients, ensuring timely access to life-saving blood transfusions.
</p>
<p class="section-text">
We strive to create a community that fosters empathy, support, and solidarity among individuals who are committed to making a difference.
Whether you're a potential donor or someone in need of blood, we are here to assist you every step of the way.
</p>
<a href="about.html" class="btn">Read more About Us</a>
</div>
</div>
</section>
<!--services-->
<section class="section doctor" aria-label="doctor">
<div class="container">
<p class="section-subtitle text-center">Emergency !</p>
<h2 class="h2 section-title text-center">Our other services</h2>
<ul class="has-scrollbar">
<li class="scrollbar-item">
<div class="doctor-card">
<div class="card-banner img-holder" style="--width: 460; --height: 500;">
<img src="./assets/images/doctor-1.png" width="460" height="500" loading="lazy" alt="PREBOOK"
class="img-cover">
</div>
<h3 class="h3">
<a href="#" class="card-title">Pre Book Blood</a>
</h3>
<p class="card-subtitle">Book Blood For An upcoming Date</p>
<ul class="card-social-list">
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
</ul>
</div>
</li>
<li class="scrollbar-item">
<div class="doctor-card">
<div class="card-banner img-holder" style="--width: 460; --height: 500;">
<img src="./assets/images/doctor-2.png" width="460" height="500" loading="lazy" alt="AMBULANCE"
class="img-cover">
</div>
<h3 class="h3">
<a href="#" class="card-title">Call Ambulance</a>
</h3>
<p class="card-subtitle">Get our ambulance service</p>
<ul class="card-social-list">
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
</ul>
</div>
</li>
<li class="scrollbar-item">
<div class="doctor-card">
<div class="card-banner img-holder" style="--width: 460; --height: 500;">
<img src="./assets/images/doctor-3.png" width="460" height="500" loading="lazy" alt="WHY DONATE ?"
class="img-cover">
</div>
<h3 class="h3">
<a href="#" class="card-title">Why Donate ?</a>
</h3>
<p class="card-subtitle">Why donate blood ?</p>
<ul class="card-social-list">
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
</ul>
</div>
</li>
<li class="scrollbar-item">
<div class="doctor-card">
<div class="card-banner img-holder" style="--width: 460; --height: 500;">
<img src="./assets/images/doctor-4.png" width="460" height="500" loading="lazy" alt="CAN YOU DONATE"
class="img-cover">
</div>
<h3 class="h3">
<a href="canyoudonate.html" class="card-title">Can You Donate ?</a>
</h3>
<p class="card-subtitle">Check that can you donate blood</p>
<ul class="card-social-list">
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li>
<a href="#" class="card-social-link">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
</section>
<!--CTA-->
<section class="section cta" aria-label="cta">
<div class="container">
<figure class="cta-banner">
<img src="./assets/images/cta-banner.png" width="1056" height="1076" loading="lazy" alt="cta banner"
class="w-100">
</figure>
<div class="cta-content">
<p class="section-subtitle">Give Blood Directly To Us</p>
<h2 class="h2 section-title">We Are open And Welcoming Donors</h2>
<a href="#" class="btn">Book schedule</a>
</div>
</div>
</section>
<!--BLOG-->
<section class="section blog" id="blog" aria-label="blog">
<div class="container">
<p class="section-subtitle text-center">Our Blog</p>
<h2 class="h2 section-title text-center">Latest Blog & News</h2>
<ul class="blog-list">
<li>
<div class="blog-card">
<figure class="card-banner img-holder" style="--width: 1180; --height: 800;">
<img src="./assets/images/blog-1.jpg" width="1180" height="800" loading="lazy"
alt="Cras accumsan nulla nec lacus ultricies placerat." class="img-cover">
<div class="card-badge">
<ion-icon name="calendar-outline"></ion-icon>
<time class="time" datetime="2022-03-24">24th March 2022</time>
</div>
</figure>
<div class="card-content">
<h3 class="h3">
<a href="#" class="card-title">Write whatever you want here. Blah Blah Blah</a>
</h3>
<p class="card-text">
When it spins, when it swirls When it whirls, when it twirls Two little beautiful girls Lookin' puzzled, in a daze I know it's confusing you
</p>
<a href="#" class="card-link">Read More</a>
</div>
</div>
</li>
<li>
<div class="blog-card">
<figure class="card-banner img-holder" style="--width: 1180; --height: 800;">
<img src="./assets/images/blog-2.jpg" width="1180" height="800" loading="lazy"
alt="Dras accumsan nulla nec lacus ultricies placerat." class="img-cover">
<div class="card-badge">
<ion-icon name="calendar-outline"></ion-icon>
<time class="time" datetime="2022-03-24">24th March 2022</time>
</div>
</figure>
<div class="card-content">
<h3 class="h3">
<a href="#" class="card-title">Write whatever you want here. Foo foo foo</a>
</h3>
<p class="card-text">
Now hush little baby, don't you cry Everything's gonna be alright Stiffen that upper lip up little lady, I told ya Daddy's here to hold ya through the night I know mommy's not here right now
</p>
<a href="#" class="card-link">Read More</a>
</div>
</div>
</li>
<li>
<div class="blog-card">
<figure class="card-banner img-holder" style="--width: 1180; --height: 800;">
<img src="./assets/images/blog-3.jpg" width="1180" height="800" loading="lazy"
alt="Seas accumsan nulla nec lacus ultricies placerat." class="img-cover">
<div class="card-badge">
<ion-icon name="calendar-outline"></ion-icon>
<time class="time" datetime="2022-03-24">24th March 2022</time>
</div>
</figure>
<div class="card-content">
<h3 class="h3">
<a href="#" class="card-title">Write whatever you want here. Wee wee wee</a>
</h3>
<p class="card-text">
Victim of the great machine, in love with everything I see Neon lights surrounding me, I indulge in luxury Everything I do is wrong
</p>
<a href="#" class="card-link">Read More</a>
</div>
</div>
</li>
</ul>
</div>
</section>
</article>
</main>
<!--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/whxitte" 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
// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Validate the email address
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"]);
// Database connection details
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "redstream_db";
// Create a connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Prepare and execute the SQL query to insert the email into the database
$stmt = $conn->prepare("INSERT INTO response_back (email) VALUES (?)");
$stmt->bind_param("s", $email);
$stmt->execute();
// Check if the email is inserted successfully
if ($stmt->affected_rows > 0) {
// Email added successfully, show the popup message
echo '<script>showPopup("Email added successfully!");</script>';
} else {
// Unable to add email, show the popup message
echo '<script>showPopup("Error: Unable to add email. Please try again later.");</script>';
}
// Close the statement and connection
$stmt->close();
$conn->close();
} else {
// Invalid email address, show the popup message
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>