forked from vimistify/AmbuFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeedback.html
398 lines (351 loc) · 10.6 KB
/
Feedback.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Feedback - AmbuFlow</title>
<link rel="stylesheet" href="preloaderStyle.css">
<link rel="stylesheet" href="src/css/index.css">
<link rel="stylesheet" href="src/css/navbar.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<div class="gtranslate_wrapper"></div>
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
}
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<style>
body {
background-color: white;
}
/* font size of button */
.buttons .login,
.buttons .get-started,
.dark-mode-toggle {
font-size: 18px;
/* Increase font size */
padding: 10px 15px;
/* Adjust padding for better appearance */
}
/* more addition for dark mode theme */
.dark-mode .logo img {
filter: brightness(0) invert(1);
/* Inverts the color to make it white */
}
/* adding dark mode for contact info */
.content {
transition: background-color 0.3s, color 0.3s;
/* Smooth transitions */
}
.dark-mode h3 {
color: wheat;
}
.dark-mode .content {
background-color: rgba(50, 50, 50, 0.95);
/* Match body background opacity */
/* padding: 20px; */
/* Optional: add padding for better spacing */
}
/* end */
footer {
background-color: #C4D7FF;
color: white;
text-align: center;
padding: 10px 0;
position: relative;
bottom: 0;
width: 100%;
}
.content {
margin: 2rem 3rem;
padding: 4rem 1rem;
/* width: 90vw; */
background-color: #f7f5f5;
border-radius: 5px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
text-align: center;
color: blue;
}
h3 {
text-align: center;
color: #2c3e50;
margin-bottom: 1rem;
}
.star-rating {
display: flex;
justify-content: center;
margin-top: 10px;
flex-direction: row-reverse;
}
.star-rating input {
display: none;
/* Hide radio inputs */
}
.star-rating label {
font-size: 3.5rem;
/* Increased size for better visibility */
color: #ddd;
cursor: pointer;
transition: color 0.2s;
}
/* Color the stars based on the selected rating */
.star-rating input:checked~label {
color: #ffdd00;
/* Color for selected stars */
}
/* Color on hover */
.star-rating label:hover,
.star-rating label:hover~label {
color: #ffdd00;
/* Color on hover */
}
button {
padding: 10px 20px;
background-color: #ff5733;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
/* Smooth transition */
}
textarea {
width: 100%;
/* Full width for better usability */
max-width: 500px;
/* Limiting max width */
padding: 10px;
margin-top: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Added the hover animation on the footer social icons */
.social-icon {
transition: transform 0.3s ease;
/* Smooth transition effect */
}
.social-icon:hover {
transform: scale(1.3);
/* Scale the element to 1.3 times its size */
}
.fa-facebook:hover {
color: blue;
/* Icon color change to blue on hover */
}
.fa-x-twitter:hover {
color: black;
/* Icon color change to black on hover */
}
.fa-instagram:hover {
color: orangered;
/* Icon color change to orangered on hover */
}
.fa-linkedin-in:hover {
color: rgb(16, 13, 195);
/* Icon color change to rgb(16, 13, 195) on hover */
}
@keyframes logoAnimation {
0% {
opacity: 0;
transform: translateX(-100px);
/* Start from the left */
}
50% {
transform: translateX(10px);
/* Move slightly to the right */
}
100% {
opacity: 1;
transform: translateX(0);
/* End at original position */
}
}
/* feedback form */
.feedback-box {
border: 1px solid #939aa1;
width: 40%;
min-width: 400px;
min-height: 350px;
border-radius: 15px;
background-color: #edf6ff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.feed-btn {
text-align: center;
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}
.feed-btn:hover {
transform: scale(1.03);
transition: all 0.3s ease;
}
.feed-msg {
border: none;
}
.feed-msg:focus {
outline: none;
}
#thank-you-message {
text-align: center;
display: none;
justify-content: center;
align-items: center;
border: 1px solid #939aa1;
width: 40%;
min-width: 400px;
min-height: 350px;
border-radius: 15px;
background-color: #edf6ff;
font-size: 2rem;
font-weight: 500;
color: green;
}
</style>
</head>
<body>
<!-- pre loader -->
<div id="preloader">
<div class="wrapper">
<div class="box-wrap">
<div class="box one"></div>
<div class="box two"></div>
<div class="box three"></div>
<div class="box four"></div>
<div class="box five"></div>
<div class="box six"></div>
</div>
</div>
</div>
<div class="container" id="container">
<div class="logo">
<div class="brand-name">
<span class="letter red" style="--letter-index: 1;">A</span>
<span class="letter red" style="--letter-index: 2;">m</span>
<span class="letter red" style="--letter-index: 3;">b</span>
<span class="letter red" style="--letter-index: 4;">u</span>
<span class="letter" style="--letter-index: 5;">F</span>
<span class="letter" style="--letter-index: 6;">l</span>
<span class="letter" style="--letter-index: 7;">o</span>
<span class="letter" style="--letter-index: 8;">w</span>
</div>
<img src="images/logo2-w.webp" alt="Ambulance Monitoring System Logo" style="width: 80px; height: auto" />
</div>
<nav class="menu">
<ul>
<li>
<a href="#container" style="color: #333;">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.34314 11.5858L12 5.92893M12 5.92893L17.6568 11.5858M12 5.92893V18.0711" stroke="currentColor">
</path>
</svg>
</a>
</li>
<li>
<a href="index.html" id="home-link" class="menu_links" data-link="Home">
<span>Home</span>
</a>
</li>
<li>
<a href="features.html" id="features-link" class="menu_links" data-link="Features">
<span>Features</span>
</a>
</li>
<li>
<a href="aboutus.html" id="about-link" class="menu_links" data-link="About Us">
<span>About Us</span>
</a>
</li>
<li>
<a href="contact.html" id="contact-link" class="menu_links" data-link="Contact">
<span>Contact</span>
</a>
</li>
<li>
<a href="feedback.html" id="feedback-link" class="menu_links" data-link="Feedback" style="color: #333;">
<span>Feedback</span>
</a>
</li>
</ul>
</nav>
<div class="content">
<h1>Feedback</h1>
<div class="feedback-box">
<h3>Please rate your experience:</h3>
<form id="feedback-box">
<div class="star-rating">
<input type="radio" id="star5" name="rating" value="5" aria-label="5 stars" />
<label for="star5" title="5 stars">★</label>
<input type="radio" id="star4" name="rating" value="4" aria-label="4 stars" />
<label for="star4" title="4 stars">★</label>
<input type="radio" id="star3" name="rating" value="3" aria-label="3 stars" />
<label for="star3" title="3 stars">★</label>
<input type="radio" id="star2" name="rating" value="2" aria-label="2 stars" />
<label for="star2" title="2 stars">★</label>
<input type="radio" id="star1" name="rating" value="1" aria-label="1 star" />
<label for="star1" title="1 star">★</label>
</div>
<h3>Your Comments:</h3>
<textarea class="feed-msg" rows="5" placeholder="Share your feedback..." required></textarea>
<div class="feed-btn">
<button type="submit">Submit Feedback</button>
</div>
</form>
</div>
<div id="thank-you-message">
Thank you for your feedback!
</div>
</div>
</div>
<footer>
<div>
<h3>Connect with us!</h3>
<div>
<a href="https://facebook.com" class="social-icon" aria-label="Facebook">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="https://twitter.com" class="social-icon" aria-label="Twitter">
<i class="fa-brands fa-x-twitter"></i>
</a>
<a href="https://instagram.com" class="social-icon" aria-label="Instagram">
<i class="fa-brands fa-instagram"></i>
</a>
<a href="https://linkedin.com" class="social-icon" aria-label="LinkedIn">
<i class="fa-brands fa-linkedin-in"></i>
</a>
</div>
</div>
<p>© 2024 AmbuFlow. All rights reserved.</p>
</footer>
<script>
// Preloader hide on load
window.onload = function () {
document.getElementById('preloader').style.display = 'none';
};
// Feedback form submission
document.getElementById('feedback-box').addEventListener('submit', function (event) {
event.preventDefault(); // Prevent the form from actually submitting
// Hide the feedback box and show the thank you message
document.querySelector('.feedback-box').style.display = 'none';
document.getElementById('thank-you-message').style.display = 'flex'; // Show the message
});
// Toggle dark mode functionality
const toggleDarkMode = () => {
document.body.classList.toggle('dark-mode');
};
// Add event listener to a dark mode toggle button (if implemented)
document.querySelector('.dark-mode-toggle').addEventListener('click', toggleDarkMode);
</script>
</body>
</html>