-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (133 loc) · 3.6 KB
/
index.html
File metadata and controls
135 lines (133 loc) · 3.6 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frontend Mentor | Interactive rating component</title>
<link rel="stylesheet" href="./src/style.css" />
<style>
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style>
</head>
<body>
<div class="container">
<!-- Rating state start-->
<div id="ratingcard" class="card">
<div class="star">
<img
height="18px"
width="18px"
src="./images/icon-star.svg"
alt="Star illustration"
/>
</div>
<h3 class="card-title">How did we do?</h3>
<p class="card-description">
Please let us know how we did with your support request. All feedback
is appreciated to help us improve our offering!
</p>
<ol class="ratings-list">
<li class="rating">
<label for="rating1">
<input
hidden
type="radio"
name="rating1"
id="rating1"
value="1"
/>
1
</label>
</li>
<li class="rating">
<label for="rating2">
<input
hidden
type="radio"
name="rating2"
id="rating2"
value="2"
/>
2
</label>
</li>
<li class="rating">
<label for="rating3">
<input
hidden
type="radio"
name="rating3"
id="rating3"
value="3"
/>
3
</label>
</li>
<li class="rating">
<label for="rating4">
<input
hidden
type="radio"
name="rating4"
id="rating4"
value="4"
/>
4
</label>
</li>
<li class="rating">
<label for="rating5">
<input
hidden
type="radio"
name="rating5"
id="rating5"
value="5"
/>
5
</label>
</li>
</ol>
<button id="submit" class="">Submit</button>
</div>
<!-- Rating state end -->
<!-- Thank you state start -->
<div id="thankyoucard" class="hidden">
<img
height="150px"
width="auto"
src="./images/illustration-thank-you.svg"
alt="Thank You illustration"
/>
<p class="card-summary">
You selected <span id="rating"></span> out of 5
</p>
<h4 class="card-title">Thank you!</h4>
<p class="card-description">
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 class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="https://github.com/roywaswa">Roy Waswa</a>.
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>