-
Notifications
You must be signed in to change notification settings - Fork 632
/
Contact.html
523 lines (445 loc) · 14.1 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
<!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">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<title>WildGuard - Give Love for Saving World Animals</title>
<!-- Google Translate script -->
<script type="text/javascript"
src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<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>
<!--
- favicon
-->
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
<!--
- custom css link
-->
<link rel="stylesheet" href="./assets/css/style.css">
<!--
- fontawesome icon link
-->
<script src="https://kit.fontawesome.com/418b80718b.js" crossorigin="anonymous"></script>
<!--
- 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=Inter:wght@400;500;600&family=Roboto:wght@300;400;500;700&family=Oswald:wght@600&display=swap"
rel="stylesheet" />
<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>
<link rel="stylesheet" href="./Events-Data/modal.css">
<style>
* {
margin: 0;
padding: 0;
/* box-sizing: border-box; */
}
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}
.header {
background-color: #9bc98b;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 20px 50px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
height: auto;
}
.header h1 {
font-size: 36px;
color: white;
letter-spacing: 2px;
font-weight: 700;
}
nav {
display: flex;
gap: 25px;
}
nav a {
color: white;
text-decoration: none;
font-size: 18px;
padding: 10px 20px;
transition: background-color 0.3s ease, color 0.3s ease;
border-radius: 6px;
}
nav a:hover {
color: #333;
background-color: rgba(255, 255, 255, 0.5);
}
/* Dropdown button for mobile view */
.dropdown-btn {
display: none;
background-color: transparent;
border: none;
font-size: 24px;
color: white;
cursor: pointer;
padding: 10px;
}
/* Media query for mobile view */
@media (max-width: 768px) {
.header {
flex-direction: column;
text-align: center;
height: 130px;
}
nav {
display: none;
/* Hide nav links by default */
border-radius: 10px;
background-color: #9bc98b;
flex-direction: column;
gap: 15px;
margin-top: 10px;
}
.show-nav {
display: flex;
/* Show nav links when dropdown is clicked */
}
.dropdown-btn {
display: block;
/* Show the dropdown button on mobile */
}
.header h1 {
font-size: 28px;
}
}
/* Container for both flip card and form */
.container {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 50px 20px;
max-width: 1200px;
margin: auto;
flex-wrap: wrap;
padding-top: 145px;
}
/* Flip Container */
.flip-container {
perspective: 1000px;
width: 45%;
height: 500px;
margin-right: 20px;
}
.flipper {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.6s ease;
}
.front, .back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 15px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}
.front img {
width: 100%;
height: 100%;
border-radius: 15px;
object-fit: cover;
}
.back {
background-color: white;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
transform: rotateY(180deg);
text-align: center;
color: #333;
border: 2px solid #99d28a;
}
.flip-container.hover .flipper {
transform: rotateY(180deg);
}
/* Hover effect */
.flip-container:hover .flipper {
transform: rotateY(180deg);
}
/* Form Container */
.form-container {
width: 45%;
background-color: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 3px solid #ccc;
}
/* Hover Effect for Form */
.form-container:hover {
transform: scale(1.02);
box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.2);
border-color: #99d28a;
}
/* Form Heading */
.form-container h2 {
font-size: 24px;
margin-bottom: 20px;
color: #99d28a;
text-align: left;
}
/* Form Labels */
.form-container label {
font-size: 16px;
margin-bottom: 8px;
display: block;
text-align: left;
}
/* Form Inputs and Textarea */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 2px solid #ccc;
border-radius: 8px;
font-size: 14px;
}
/* Submit Button */
.form-container input[type="submit"] {
background-color: #99d28a;
border: none;
color: white;
padding: 10px 20px;
border-radius: 20px;
cursor: pointer;
width: 120px;
font-size: 16px;
transition: background-color 0.3s ease;
}
.form-container input[type="submit"]:hover {
background-color: #88c17d;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
padding: 30px 10px;
padding-top: 175px;
}
.flip-container {
width: 100%;
height: 400px;
margin-bottom: 20px;
}
.form-container {
width: 100%;
padding: 20px;
margin-right: 18px;
}
}
@media (max-width: 480px) {
.flip-container {
height: 300px;
}
.form-container input[type="submit"] {
width: 100%;
}
}
footer {
background-color: #99d28a;
text-align: center;
padding: 15px;
color: white;
margin-top: 40px;
}
/* tooltip - styling */
.tooltip-container {
align-items: center;
position: relative;
}
/* Tooltip text */
.tooltip-container .tooltip-text {
visibility: hidden;
width: 190px;
background-color: #88c17d;
color: #fff;
text-align: center;
border-radius: 8px;
padding: 2px;
position: absolute;
left: 60%;
margin-left: -100px;
top: 69%;
transform: translateY(-50%);
opacity: 0;
transition: opacity 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
font-size: 13px;
}
/* Show the tooltip on hover */
.tooltip-container:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
</style>
</head>
<body>
<div class="header">
<h1>WildGuard</h1>
<button class="dropdown-btn" onclick="toggleMenu()">☰</button> <!-- Dropdown button -->
<nav id="navbar">
<a href="index.html">Home</a>
<a href="about.html">About Us</a>
<a href="#">Service</a>
<a href="contact.html">Contact Us</a>
<a href="donate.html">Donate</a>
<a href="login.html">Login</a>
</nav>
</div>
</div>
<div class="container">
<div class="flip-container" id="flip-container">
<div class="flipper">
<!-- Front: Image -->
<div class="front">
<img
src="https://i.pinimg.com/736x/53/f5/53/53f553136c1dc13c3fcc0dfcc9dcfb9a.jpg"
alt="Wild Animal">
</div>
<!-- Back: Contact Information -->
<div class="back">
<h3>Contact Us</h3>
<p>If you have any queries, please reach out to us at:</p>
<p>Email: [email protected]</p>
<p>Phone: +1234567890</p>
</div>
</div>
</div>
<!-- Right side: Contact Form -->
<div class="form-container">
<h2>Contact Us</h2>
<form id="contactForm">
<div class="tooltip-container">
<label for="name">Enter Your Name</label>
<input type="text" id="name" name="name" placeholder="Your Name" required pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Please enter your name without using numbers or special characters.')"
oninput="this.setCustomValidity('')">
<div class="tooltip-text">Please enter your full name here.</div>
</div>
<div class="tooltip-container">
<label for="email">Enter Your Email</label>
<input type="email" id="email" name="email" placeholder="Your Email" required>
<div class="tooltip-text">please enter a valid email like [email protected].</div>
</div>
<div class="tooltip-container">
<label for="phone">Enter Your Phone Number</label>
<input type="tel" id="phone" name="phone" placeholder="Your Phone Number" required pattern="[0-9]{10}"
maxlength="10" oninput="this.value = this.value.replace(/[^0-9]/g, '');">
<div class="tooltip-text">Please enter your phone number(10 digits).</div>
</div>
<div class="tooltip-container">
<label for="message">Write Your Message</label>
<textarea id="message" name="message" placeholder="Your Message" rows="5" required></textarea>
<div class="tooltip-text">Feel free to describe your message in detail.</div>
</div>
<input type="submit" value="Submit">
</form>
<!-- This is where the success message will be displayed -->
<div id="formMessage" style="display:none; margin-top: 20px; color: green;">
Thank you for reaching out to us! We will get back to you shortly.
</div>
</div>
</div>
<!--
- #FOOTER
-->
<footer id="footer" class="footer">
<div class="container footer-container">
<div class="footer-left">
<h3>
<a href="#" class="logo">WildGuard</a>
</h3>
<p>WildGuard is dedicated to preserving wildlife and protecting endangered species worldwide. Join us in our
mission to create a sustainable future for the planet's most vulnerable creatures.</p>
</div>
<div class="footer-middle">
<h4>Quick Links</h4>
<div class="quick-links">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="#service">Service</a></li>
<li><a href="donate.html">Donate</a></li>
<li><a href="Contact.html">Contact Us</a></li>
</ul>
</div>
</div>
<div class="footer-right">
<div class="">
<a href="review.html">
<button type="submit">🌟Rating/Review🌟</button>
</a>
</div>
<div class="subscribe-form">
<form action="#">
<input type="email" class="email-input" placeholder="Your email address">
<button type="submit">Subscribe</button>
</form>
</div>
<div class="footer-social-icons">
<div class="social-links">
<a href="https://www.facebook.com/"><ion-icon name="logo-facebook"></ion-icon></a>
<a href="https://x.com/"><ion-icon name="logo-twitter"></ion-icon></a>
<a href="https://www.instagram.com/"><ion-icon name="logo-instagram"></ion-icon></a>
<a href="https://www.linkedin.com/"><ion-icon name="logo-linkedin"></ion-icon></a>
<a href="https://www.youtube.com/"><ion-icon name="logo-youtube"></ion-icon></a>
</div>
<div class="message">Stay Connected</div>
</div>
</div>
</div>
<div class="footer-bottom" style="display: inline;">
<p>© 2024 <a href="copyright.html" style="display: inline;">WildGuard</a> All Rights Reserved</p>
<p>
<a href="./terms-of-use.html" class="footer-link" style="display: inline;">Terms of Service</a> |
<a href="./privacy-policy.html" class="footer-link" style="display: inline;">Privacy Policy</a>
</p>
</div>
</footer>
<!-- JavaScript for form submission alert
<script>
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault();
alert("Thank you for reaching out to us! We will get back to you shortly.");
});
</script> -->
<script>
document.getElementById('contactForm').addEventListener('submit', function (event) {
event.preventDefault(); // Prevent form submission
// Show the success message
var messageDiv = document.getElementById('formMessage');
messageDiv.style.display = 'block';
// Optional: Clear the form fields after submission
document.getElementById('contactForm').reset();
});
function toggleMenu() {
const navbar = document.getElementById('navbar');
navbar.classList.toggle('show-nav'); // Toggle the class to show/hide the nav
}
</script>
</body>
</html>