-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (64 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="sass/output.css">
<script src="js/script.js"></script>
<title>Frontend Mentor | Interactive rating component</title>
</head>
<body>
<main>
<!-- Rating state start -->
<section class="container">
<img class="star-icon" src="images/icon-star.svg" alt="">
<h1 class="title">
How did we do?
</h1>
<p class="paragraph">
Please let us know how we did with your support request. All feedback is appreciated
to help us improve our offering!
</p>
<form action="js/script.js" target="_self" method="get" name="rating" class="form"> <!-- if parent doesn't work, try _self-->
<div class="button-container">
<input type="radio" class="rating" name="rating" value="1" id="rating-1"> <!-- id must match below for attribute-->
<label for="rating-1" class="rating">1</label>
<input type="radio" class="rating" name="rating" value="2" id="rating-2">
<label for="rating-2" class="rating">2</label>
<input type="radio" class="rating" name="rating" value="3" id="rating-3">
<label for="rating-3" class="rating">3</label>
<input type="radio" class="rating" name="rating" value="4" id="rating-4">
<label for="rating-4" class="rating">4</label>
<input type="radio" class="rating" name="rating" value="5" id="rating-5">
<label for="rating-5" class="rating">5</label>
</div>
<input type="submit" value="Submit" class="submit"></input>
</form>
</section>
<!-- Rating state end -->
<!-- Thank you state start -->
<section class="thank-you">
<div class="thank-you-illustration">
<img class="thank-you-illustration" src="images/illustration-thank-you.svg">
</div>
<h3 class="you-selected">You selected <span class="rating-output"></span> out of 5</h3>
<h2 class="thank-you-title">Thank you!</h2>
<p class="thank-you-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>
<!-- Thank you state end -->
<!-- Please submit start -->
<section>
<p class="please-submit">Please submit a rating.</p> <!-- Idk where to put this -->
</section>
<!-- Please submit end-->
</main>
<footer>
<p>Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Iman Osman</a>.</p>
</footer>
</body>
</html>