webahead14 / clinic-client

0 stars 3 forks source link

Survey feedback page #10

Open Karyum opened 2 years ago

Karyum commented 2 years ago

For this task we need to create a page where a user can give back feedback on the survey (later we will connect this page with the actual survey page so that it shows at the end).

We don't have a design for this page, so for now you can have it look however you like.

The feedback page would have a title of Survey feedback and then a form. the form would have a textarea input where the user can write his feedback, and 5 stars for rating (the stars need to be clickable, if the the user clicked on the 4th star then the first 4 stars will turn yellow). plus a submit button

once the user clicks submit then you should send the data to the API (for now it's a dummy API that is used for testing) on POST https://reqres.in/api/users, you will need to send how many stars the user chose and what did he write.

You will need to create the component from scratch (create the folder and files in the pages folder just like the other pages that we have on there) and add it to the router in App.jsx

AlaaYa7ia commented 2 years ago

Done, waiting for your feedback.