-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (92 loc) · 3.14 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- links -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/images/favicon-32x32.png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Overpass:wght@400;500&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./styles/reset.css" />
<link rel="stylesheet" href="./styles/index.css" />
<title>Interactive rating component by Lucas 💖</title>
</head>
<body>
<main class="app">
<!-- FIRST COMPONENT -->
<div class="rating-body">
<div class="flex round star">
<img src="./assets/images/icon-star.svg" alt="" aria-hidden="true" />
</div>
<section class="rating-body__description">
<h2>How did we do?</h2>
<p>
Please let us know how we did with your support request. All
feedback is appreciated to help us improve our offering!
</p>
</section>
<div class="flex rating-body__rates">
<input type="checkbox" name="rating" id="1" />
<label tabindex="0" for="1" class="flex round rate scale-on-hover"
>1</label
>
<input type="checkbox" name="rating" id="2" />
<label tabindex="0" for="2" class="flex round rate scale-on-hover"
>2</label
>
<input type="checkbox" name="rating" id="3" />
<label tabindex="0" for="3" class="flex round rate scale-on-hover"
>3</label
>
<input type="checkbox" name="rating" id="4" />
<label tabindex="0" for="4" class="flex round rate scale-on-hover"
>4</label
>
<input type="checkbox" name="rating" id="5" />
<label tabindex="0" for="5" class="flex round rate scale-on-hover"
>5</label
>
</div>
<button type="submit" class="rating-body__button flex">
SUBMIT
</button>
</div>
<!-- SECUNDARY COMPONENT -->
<div class="rating-body submited hidden ">
<button
tabindex="0"
type="button"
title="go back to previous card"
class="flex round rollback scale-on-hover"
>
<img src="./assets/images/arrow.svg" alt="" aria-hidden="true" />
</button>
<img
src="./assets/images/illustration-thank-you.svg"
alt=""
aria-hidden="true"
/>
<div class="submited__rating">
<p>You selected <span class="rate--submited">4</span> out of 5</p>
</div>
<section class="submited__description">
<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>
</section>
</div>
</main>
<script src="./js/index.js"></script>
</body>
</html>