-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
72 lines (71 loc) · 3.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Interactive rating component challenge by Frontend Mentor. Users should be able to rate a product based on a score rating system." />
<title>Interactive rating component| Frontend Mentor</title>
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png" />
<script src="./assets/js/main.js" async defer></script>
</head>
<body>
<main class="container">
<h1 class="sr-only">Interactive rating component</h1>
<div id="rating-state" class="card">
<div class="card__icon">
<img src="./assets/images/icon-star.svg" alt aria-hidden="true">
</div>
<h2 class="card__title">How did we do?</h2>
<p class="card__text">
Please let us know how we did with your support request. All feedback is appreciated
to help us improve our offering!
</p>
<form class="card__form rating-form">
<fieldset class="rating-form__fieldset">
<legend class="sr-only">Please select a rating:</legend>
<label class="rating-form__label" for="rating-1">
<input type="radio" id="rating-1" name="rating" value="1" class="rating-form__input">
<span class="rating-form__circle">1</span>
</label>
<label class="rating-form__label" for="rating-2">
<input type="radio" id="rating-2" name="rating" value="2" class="rating-form__input">
<span class="rating-form__circle">2</span>
</label>
<label class="rating-form__label" for="rating-3">
<input type="radio" id="rating-3" name="rating" value="3" class="rating-form__input">
<span class="rating-form__circle">3</span>
</label>
<label class="rating-form__label" for="rating-4">
<input type="radio" id="rating-4" name="rating" value="4" class="rating-form__input">
<span class="rating-form__circle">4</span>
</label>
<label class="rating-form__label" for="rating-5">
<input type="radio" id="rating-5" name="rating" value="5" class="rating-form__input">
<span class="rating-form__circle">5</span>
</label>
</fieldset>
<button id="rating-submit" type="submit" class="btn btn--primary" disabled>Submit</button>
</form>
</div>
<div id="thanks-state" class="card card--back" aria-live="polite" aria-atomic="true">
<p class="sr-only">Your rating has been submitted</p>
<img src="./assets/images/illustration-thank-you.svg" alt aria-hidden="true" class="card__thankyou-image">
<div class="card__rating-container">
<p class="card__rating-text">You selected <span id="rating-text">#</span> out of 5</p>
</div>
<h2 class="card__title">Thank you!</h2>
<p class="card__text">
We appreciate you taking the time to give a rating. If you ever need more support,
don’t hesitate to get in touch!
</p>
<button id="rating-reset" type="button" class="btn btn--primary">Reset</button>
</div>
</main>
<footer class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/MelvinAguilar">Melvin Aguilar</a>.
</footer>
</body>
</html>