forked from anuragverma108/WildGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
review.html
319 lines (282 loc) · 7.89 KB
/
review.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Animal Organization Ratings</title>
<link rel="stylesheet" href="./assets/css/review.css" />
<script src="./assets/js/review.js" defer></script>
<!-- font Awsome cdn -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<style>
/* Improved CSS for Rate Us Page */
body {
font-family: 'Arial', sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.bodys {
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
padding: 20px;
border-radius: 10px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 30px;
text-align: center;
max-width: 400px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card h2 {
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
.fa-house {
color: #f76c6c;
font-size: 24px;
text-decoration: none;
margin-bottom: 10px;
}
.star {
font-size: 40px;
color: #e0e0e0;
cursor: pointer;
transition: color 0.2s;
}
.star:hover,
.star.active {
color: #f76c6c;
}
#output {
font-size: 18px;
color: #333;
margin-top: 10px;
}
#ratingForm {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}
#reviewInput {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
resize: none;
min-height: 100px;
margin-bottom: 15px;
font-family: 'Arial', sans-serif;
font-size: 16px;
}
button[type="submit"] {
background-color: #f76c6c;
border: none;
padding: 10px 20px;
color: #fff;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
button[type="submit"]:hover {
background-color: #e05b5b;
}
#popup {
display: none;
background-color: #4caf50;
color: #fff;
padding: 10px;
border-radius: 5px;
margin-top: 15px;
}
main {
max-width: 1000px;
margin: 40px auto;
}
main h1 {
text-align: center;
font-size: 28px;
color: #333;
margin-bottom: 20px;
}
.slider {
overflow: hidden;
max-width: 100%;
margin: 0 auto;
padding: 0 10px;
}
.slide-row {
display: flex;
transition: transform 0.3s ease-in-out;
}
.slide-col {
flex: 1;
margin-right: 20px;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: space-between;
}
.slide-col .content {
max-width: 60%;
}
.slide-col h2 {
color: #333;
font-size: 20px;
margin-bottom: 10px;
}
.slide-col p {
font-size: 14px;
color: #555;
}
.hero img {
border-radius: 50%;
width: 80px;
height: 80px;
}
.indicator {
display: flex;
justify-content: center;
margin-top: 10px;
}
.indicator .btn {
width: 10px;
height: 10px;
background-color: #ddd;
border-radius: 50%;
margin: 0 5px;
cursor: pointer;
transition: background-color 0.2s;
}
.indicator .btn.active {
background-color: #f76c6c;
}
.indicator .btn:hover {
background-color: #e05b5b;
}
</style>
</head>
<body>
<div class="bodys">
<div class="card">
<a href="./index.html"><i class="fa-solid fa-house"></i></a>
<h2>Rate Us</h2>
<br />
<span onclick="gfg(1)" class="star">★</span>
<span onclick="gfg(2)" class="star">★</span>
<span onclick="gfg(3)" class="star">★</span>
<span onclick="gfg(4)" class="star">★</span>
<span onclick="gfg(5)" class="star">★</span>
<h5 id="output">Rating is: 0/5</h5>
<form id="ratingForm">
<textarea
id="reviewInput"
placeholder="Write your Review"
required
></textarea>
<button type="submit">Submit</button>
</form>
<div id="popup">Review Submitted !</div>
</div>
</div>
<main>
<h1>Reviews</h1>
<div class="slider">
<div class="slide-row" id="slide-row">
<div class="slide-col">
<div class="content">
<p>
Zen Doan is a business analyst, entrepreneur and media
proprietor, and investor. She also known as the best selling
book author.
</p>
<h2>Zen</h2>
<p>Author</p>
</div>
<div class="hero">
<img
src="https://user-images.githubusercontent.com/13468728/234031693-6bbaba7d-632c-4d7d-965f-75a76a549ce2.jpg"
alt="avatar"
/>
</div>
</div>
<div class="slide-col">
<div class="content">
<p>
Jonathan Koletic is an American internet entrepreneur and media
proprietor, and investor. He is the founder of the
multi-national technology company Treymont.
</p>
<h2>Jonathan</h2>
<p>Treymont Inc.</p>
</div>
<div class="hero">
<img
src="https://user-images.githubusercontent.com/13468728/234031617-2dfb19ea-01d0-4370-b63b-bb6bdfb4f78e.jpg"
alt="avatar"
/>
</div>
</div>
<div class="slide-col">
<div class="content">
<p>
Charlie Green is an European entrepreneur and media consultant,
and investor. He is the founder of the Hallmark Inc.
</p>
<h2>Charlie</h2>
<p>Hallmark Inc.</p>
</div>
<div class="hero">
<img
src="https://user-images.githubusercontent.com/13468728/234031646-10533999-39e5-4c7b-ab54-d0299b13ce74.jpg"
alt="avatar"
/>
</div>
</div>
<div class="slide-col">
<div class="content">
<p>
Sarah Dam is an American internet entrepreneur and media
consultant. She is the co-founder and CEO of Treymont.
</p>
<h2>Sarah</h2>
<p>Treymont Inc.</p>
</div>
<div class="hero">
<img
src="https://user-images.githubusercontent.com/13468728/234031654-f891d60e-53c6-420b-b57f-0c4c898e5b78.jpg"
alt="avatar"
/>
</div>
</div>
</div>
</div>
<div class="indicator">
<span class="btn active" onclick="slide(0)"></span>
<span class="btn" onclick="slide(1)"></span>
<span class="btn" onclick="slide(2)"></span>
</div>
</main>
</body>
</html>