-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (40 loc) · 1.71 KB
/
index.html
File metadata and controls
42 lines (40 loc) · 1.71 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Interactive Rating Component</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="card">
<!-- Rating state start -->
<div class="rating-state">
<div class="star-icon">
<img src="./images/icon-star.svg" alt="Star Icon">
</div>
<h1>How did we do?</h1>
<p>Please let us know how we did with your support request. All feedback is appreciated to help us improve our offering!</p>
<div class="rating-buttons">
<button type="button" class="rating" onclick="selectRating(1)">1</button>
<button type="button" class="rating" onclick="selectRating(2)">2</button>
<button type="button" class="rating" onclick="selectRating(3)">3</button>
<button type="button" class="rating" onclick="selectRating(4)">4</button>
<button type="button" class="rating" onclick="selectRating(5)">5</button>
</div>
<button type="button" class="submit-button" onclick="submitRating()">Submit</button>
</div>
<!-- Rating state end -->
<!-- Thank you state start -->
<div class="thank-you">
<img src="./images/illustration-thank-you.svg" alt="Thank You">
<p class="selected-rating">You selected <span id="rating-value"></span> out of 5</p>
<h2>Thank you!</h2>
<p>We appreciate you taking the time to give a rating. If you ever need more support, don’t hesitate to get in touch!</p>
</div>
<!-- Thank you state end -->
</div>
<script src="script.js"></script>
</body>
</html>