html laid out for interactive rating component
This commit is contained in:
parent
611c355399
commit
a6c3745e11
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Design sizes:
|
||||||
|
* Mobile: 375x667 (327x360)
|
||||||
|
* Desktop: 1440x800 (412x416)
|
||||||
|
*/
|
||||||
|
|
||||||
|
*,
|
||||||
|
::before,
|
||||||
|
::after {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
min-height: 100vh;
|
||||||
|
font-family: "Overpass", sans-serif;
|
||||||
|
|
||||||
|
/* margin: 0 auto; */
|
||||||
|
display: grid;
|
||||||
|
place-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 62.5rem) {
|
||||||
|
:root {
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,49 +1,102 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
|
<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="icon" type="image/png" sizes="32x32" href="./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;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="css/style.css">
|
||||||
|
<script src="js/script.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<title>Frontend Mentor | Interactive rating component</title>
|
<title>Frontend Mentor | Interactive rating component</title>
|
||||||
|
|
||||||
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
|
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
|
||||||
<style>
|
<!-- <style>
|
||||||
.attribution { font-size: 11px; text-align: center; }
|
.attribution {
|
||||||
.attribution a { color: hsl(228, 45%, 44%); }
|
font-size: 11px;
|
||||||
</style>
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.attribution a {
|
||||||
|
color: hsl(228, 45%, 44%);
|
||||||
|
}
|
||||||
|
</style> -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
|
||||||
<!-- Rating state start -->
|
<!-- Rating state start -->
|
||||||
|
<section>
|
||||||
|
<img src="images/icon-star.svg" alt="Image of a Star" aria-hidden="true">
|
||||||
|
|
||||||
How did we do?
|
<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>
|
||||||
|
<form>
|
||||||
|
<fieldset>
|
||||||
|
<!-- <legend>Please select your preferred contact method:</legend> -->
|
||||||
|
<div>
|
||||||
|
<input type="radio" id="ratingScore1" name="rating" value="1">
|
||||||
|
<label for="ratingScore1">1</label>
|
||||||
|
|
||||||
Please let us know how we did with your support request. All feedback is appreciated
|
<input type="radio" id="ratingScore2" name="rating" value="2">
|
||||||
to help us improve our offering!
|
<label for="ratingScore2">2</label>
|
||||||
|
|
||||||
1 2 3 4 5
|
<input type="radio" id="ratingScore3" name="rating" value="3">
|
||||||
|
<label for="ratingScore3">3</label>
|
||||||
|
|
||||||
Submit
|
<input type="radio" id="ratingScore4" name="rating" value="4">
|
||||||
|
<label for="ratingScore4">4</label>
|
||||||
|
|
||||||
|
<input type="radio" id="ratingScore5" name="rating" value="5">
|
||||||
|
<label for="ratingScore5">5</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="submit">Submit</button>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
<!-- Rating state end -->
|
<!-- Rating state end -->
|
||||||
|
|
||||||
<!-- Thank you state start -->
|
<!-- Thank you state start -->
|
||||||
|
<section>
|
||||||
You selected <!-- Add rating here --> out of 5
|
<img src="images/illustration-thank-you.svg"
|
||||||
|
alt="Image of an electronic box with paper coming out of it. A card is moving towards the box"
|
||||||
Thank you!
|
aria-hidden="true">
|
||||||
|
<p>
|
||||||
|
You selected <span></span>
|
||||||
|
<!-- Add rating here --> 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,
|
We appreciate you taking the time to give a rating. If you ever need more support,
|
||||||
don’t hesitate to get in touch!
|
don’t hesitate to get in touch!
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
<!-- Thank you state end -->
|
<!-- Thank you state end -->
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <footer>
|
||||||
<div class="attribution">
|
<div class="attribution">
|
||||||
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
|
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
|
||||||
Coded by <a href="#">Your Name Here</a>.
|
Coded by <a href="#">Your Name Here</a>.
|
||||||
</div>
|
</div>
|
||||||
|
</footer> -->
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue