From e5db31e559ded0ca40924e4d27261d23f75c46ee Mon Sep 17 00:00:00 2001 From: Garima Date: Sat, 22 Jun 2024 17:56:36 +0530 Subject: [PATCH] Rating component on feedback page #1331 --- new-website/feedback.css | 28 ++++++++++++++++- new-website/feedback.html | 64 ++++++++++++++++++++++++++++++++++++++- new-website/home.js | 3 +- 3 files changed, 92 insertions(+), 3 deletions(-) diff --git a/new-website/feedback.css b/new-website/feedback.css index 40101671..6ffbdced 100644 --- a/new-website/feedback.css +++ b/new-website/feedback.css @@ -122,4 +122,30 @@ body.dark #form-messages .alert-danger { background-color: #333; /* Darker background color for messages */ color: #fff; /* Light text color for messages */ border-color: #333; /* Darker border color for messages */ -} \ No newline at end of file +} + + + + +/*star rating*/ +.star-rating { + direction: ltr; /* Optional: this can change star direction */ +} + +.star-rating ul { + list-style-type: none; + padding: 0; + display: inline-block; +} + +.star-rating .star { + display: inline-block; + font-size: 2em; + color: lightgrey; + cursor: pointer; +} + +.star-rating .star.selected, +.star-rating .star.hover { + color: gold; +} diff --git a/new-website/feedback.html b/new-website/feedback.html index 7ddacd7d..8f7dcbf9 100644 --- a/new-website/feedback.html +++ b/new-website/feedback.html @@ -22,6 +22,7 @@ ResourceHub +
@@ -34,7 +35,18 @@

Fill this feedback form

Reach out to us.

- + +
+
    +
  • +
  • +
  • +
  • +
  • +
+
+ +
@@ -78,7 +90,57 @@

We value your feedback

+ \ No newline at end of file diff --git a/new-website/home.js b/new-website/home.js index b546fe3f..1d454746 100644 --- a/new-website/home.js +++ b/new-website/home.js @@ -17,4 +17,5 @@ function toggleDarkMode() { particlesJS.load('particles-js', './assets/homeparticles.json', function () { console.log('callback - particles.js config loaded'); -}); \ No newline at end of file +}); +