forked from ANSHIKA-26/WordWise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact_us.html
496 lines (455 loc) · 13.5 KB
/
contact_us.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="/images/favi.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contact Us</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./contact_us.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="Scroll_and_progressbar.css" />
<style>
/* Custom popup styles */
.popup {
display: none;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 300px;
background-color: #fff;
border: 2px solid #ea5541;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 1000;
border-radius: 5px;
}
.popup h3 {
color: #ea5541;
font-size: 18px;
margin: 0;
}
.popup p {
color: #333;
font-size: 14px;
margin: 10px 0;
}
.popup button {
background-color: #ea5541;
color: #fff;
border: none;
padding: 8px 16px;
cursor: pointer;
border-radius: 4px;
float: right;
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
}
</style>
<!-- Script for Navbar Toggle -->
<script>
function toggleMenu() {
const menu = document.getElementById("nav-menu");
menu.classList.toggle("active");
}
</script>
</head>
<body>
<div class="progress-container">
<div class="progress-bar" id="progress-bar"></div>
</div>
<header class="navbar">
<div class="logo">
<h2><a class="home-link" href="index.html">WordWise</a></h2>
</div>
<button class="toggle-button" onclick="toggleMenu()">
☰
<!-- Hamburger icon -->
</button>
<nav class="nav-menu" id="nav-menu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="blog.html">Leading Blog</a></li>
<li><a href="start_writing.html">Start Writing</a></li>
<li><a href="category.html">Categories</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact_us.html">Contact Us</a></li>
<li><a href="contact_us.html">Give Feedback</a></li>
</ul>
</nav>
<!-- Navigation Bar Ends -->
<div class="auth-buttons">
<a href="#login" class="login-btn" onclick="openForm('login')">Login</a>
<a href="#signup" class="signup-btn" onclick="openForm('signup')"
>Signup</a
>
</div>
<!-- Login Form -->
<div class="form-popup" id="loginForm">
<form class="form-container" onsubmit="return validateLoginForm()">
<h2>Login</h2>
<label for="loginEmail"><b>Email</b></label>
<input type="email" id="loginEmail" placeholder="Enter Email" name="email" required>
<div class="form-group position-relative">
<label for="loginPsw"><b>Password</b></label>
<input type="password" id="loginPsw" placeholder="Enter Password" name="psw" required minlength="6">
<i class="bi bi-eye eye-icon" id="toggleLoginPassword" onclick="togglePasswordVisibility('loginPsw', 'toggleLoginPassword')"></i>
</div>
<button type="submit" class="btn">LOGIN</button>
<button type="button" class="btn cancel" onclick="closeForm('login')">CLOSE</button>
</form>
</div>
<!-- Signup Form -->
<div class="form-popup" id="signupForm">
<form class="form-container" onsubmit="return validateSignupForm()">
<h2>Signup</h2>
<div class="form-group">
<label for="name"><b>Full Name</b></label>
<input type="text" id="name" placeholder="Enter Full Name" name="name" required>
</div>
<div class="form-group">
<label for="signupEmail"><b>Email</b></label>
<input type="email" id="signupEmail" placeholder="Enter Email" name="email" required>
</div>
<div class="form-group position-relative">
<label for="signupPsw"><b>Password</b></label>
<input type="password" id="signupPsw" placeholder="Enter Password" name="psw" required minlength="6">
<i class="bi bi-eye eye-icon" id="toggleSignupPassword" onclick="togglePasswordVisibility('signupPsw', 'toggleSignupPassword')"></i>
</div>
<div class="form-group position-relative">
<label for="confirmPsw"><b>Confirm Password</b></label>
<input type="password" id="confirmPsw" placeholder="Confirm Password" name="confirmPsw" required minlength="6">
<i class="bi bi-eye eye-icon" id="toggleConfirmPassword" onclick="togglePasswordVisibility('confirmPsw', 'toggleConfirmPassword')"></i>
</div>
<button type="submit" class="btn">SIGNUP</button>
<button type="button" class="btn cancel" onclick="closeForm('signup')">CLOSE</button>
</form>
</div>
<!-- Bootstrap Icons and Script for Eye Icon Functionality -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script>
function togglePasswordVisibility(passwordFieldId, iconId) {
const passwordField = document.getElementById(passwordFieldId);
const togglePassword = document.getElementById(iconId);
if (passwordField.type === 'password') {
passwordField.type = 'text';
togglePassword.classList.remove('bi-eye');
togglePassword.classList.add('bi-eye-slash');
} else {
passwordField.type = 'password';
togglePassword.classList.remove('bi-eye-slash');
togglePassword.classList.add('bi-eye');
}
}
</script>
<style>
/* Form Container Styles */
.form-popup {
width: 400px;
margin: auto;
background-color: #ffffff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.form-container h2 {
margin-bottom: 20px;
color: #333;
}
.form-control {
border-radius: 5px;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s;
}
.form-control:focus {
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.btn {
margin-top: 15px;
border-radius: 5px;
}
.eye-icon {
position: absolute;
right: 15px;
top: 38px; /* Adjust according to input field height */
cursor: pointer;
color: #007bff;
}
.position-relative {
position: relative;
}
.btn-block {
width: 100%;
}
/* Hover Effects */
.btn:hover {
background-color: #0056b3;
border-color: #0056b3;
}
.btn.cancel:hover {
background-color: #6c757d;
border-color: #6c757d;
}
</style>
<script src="signup.js"></script>
<!-- Link to your JavaScript file -->
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider">
<img
src="https://img.icons8.com/emoji/48/000000/sun-emoji.png"
alt="Sun"
class="icon sun-icon"
/>
<img
src="https://img.icons8.com/emoji/48/000000/crescent-moon-emoji.png"
alt="Moon"
class="icon moon-icon"
/>
</div>
</label>
<span id="mode-label"></span>
</div>
</header>
<div
class="container"
style="
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
text-align: center;
"
>
<h2 style="color: #3498db; font-size: 28px; margin-bottom: 10px">
Get in Touch
</h2>
<p style="color: #777; font-size: 16px; margin-bottom: 20px">
Whether you have questions, feedback, or need assistance, our team is
here to help. Please fill out the form below, and we'll get back to you
as soon as possible.
</p>
<form id="contactForm">
<div class="form-group" style="margin-bottom: 15px">
<label
for="firstName"
style="
display: block;
text-align: left;
margin-bottom: 5px;
color: #333;
font-size: 14px;
"
>First Name</label
>
<input
type="text"
id="firstName"
name="firstName"
required
style="
width: 100%;
padding: 10px;
font-size: 14px;
border: 2px solid #ddd;
border-radius: 5px;
"
/>
</div>
<div class="form-group" style="margin-bottom: 15px">
<label
for="lastName"
style="
display: block;
text-align: left;
margin-bottom: 5px;
color: #333;
font-size: 14px;
"
>Last Name</label
>
<input
type="text"
id="lastName"
name="lastName"
required
style="
width: 100%;
padding: 10px;
font-size: 14px;
border: 2px solid #ddd;
border-radius: 5px;
"
/>
</div>
<div class="form-group" style="margin-bottom: 15px">
<label
for="email"
style="
display: block;
text-align: left;
margin-bottom: 5px;
color: #333;
font-size: 14px;
"
>Email Address</label
>
<input
type="email"
id="email"
name="email"
required
style="
width: 100%;
padding: 10px;
font-size: 14px;
border: 2px solid #ddd;
border-radius: 5px;
"
/>
</div>
<div class="form-group" style="margin-bottom: 15px">
<label
for="phone"
style="
display: block;
text-align: left;
margin-bottom: 5px;
color: #333;
font-size: 14px;
"
>Phone Number</label
>
<input
type="tel"
id="phone"
name="phone"
required
style="
width: 100%;
padding: 10px;
font-size: 14px;
border: 2px solid #ddd;
border-radius: 5px;
"
/>
</div>
<div class="form-group" style="margin-bottom: 15px">
<label
for="message"
style="
display: block;
text-align: left;
margin-bottom: 5px;
color: #333;
font-size: 14px;
"
>Message</label
>
<textarea
id="message"
name="message"
rows="4"
required
style="
width: 100%;
padding: 10px;
font-size: 14px;
border: 2px solid #ddd;
border-radius: 5px;
"
></textarea>
</div>
<button
type="button"
onclick="SendEmail(event)"
style="
background-color: #3498db;
color: white;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
"
>
Send
</button>
</form>
<!-- Custom popup -->
<div
class="overlay"
id="overlay"
style="
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 999;
"
></div>
<div
class="popup"
id="popupMessage"
style="
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
padding: 20px;
border-radius: 10px;
text-align: center;
z-index: 1000;
"
>
<h3 style="color: #3498db">Message Sent</h3>
<p>Thank you for contacting us! We will get back to you soon.</p>
<button
id="closePopup"
style="
background-color: #3498db;
color: white;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
"
>
Close
</button>
</div>
</div>
<script src="./darkMode.js"></script>
<script src="progress_bar.js"></script>
<script src="main.js"></script>
<!-- added script for contact form -->
<script src="contact_us.js"></script>
</body>
</html>