-
Notifications
You must be signed in to change notification settings - Fork 1
Add student feedback modal UI #613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Ganapathy-dev
wants to merge
5
commits into
main
Choose a base branch
from
Add-student-feedback-form
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,136 @@ | ||
| <!-- Regional Settings Modal --> | ||
| <form x-show="isFeedbackModalOpen" x-cloak id="hs-pro-shwprm" class="hs-overlay hidden size-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto [--close-when-click-inside:false] pointer-events-auto" role="dialog" tabindex="-1" aria-labelledby="hs-pro-shwprm-label" @click.stop> | ||
| <div class="hs-overlay-open:mt-7 hs-overlay-open:opacity-100 hs-overlay-open:duration-500 mt-0 opacity-0 ease-out transition-all sm:max-w-2xl sm:w-full m-3 sm:mx-auto h-[calc(100%-56px)] min-h-[calc(100%-56px)] flex items-center"> | ||
| <div class="w-full max-h-full relative overflow-hidden flex flex-col bg-white rounded-xl pointer-events-auto shadow-xl dark:bg-neutral-800"> | ||
| <!-- Header --> | ||
| <div class="py-4 px-6 flex justify-between items-center border-b border-gray-200 dark:border-neutral-700"> | ||
| <h4 id="hs-pro-shwprm-label" class="font-semibold text-gray-800 dark:text-neutral-200"> | ||
| Feedback Us | ||
| </h4> | ||
| <button x-cloak x-show="isFeedbackSubmitted" type="button" class="size-8 shrink-0 flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-gray-200 dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600" aria-label="Close" data-hs-overlay="#hs-pro-shwprm"> | ||
| <span class="sr-only">Close</span> | ||
| <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg> | ||
| </button> | ||
| </div> | ||
| <!-- End Header --> | ||
|
|
||
| <!-- Body --> | ||
| <div class="overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"> | ||
| <div x-show="!isFeedbackSubmitted" class="p-6 space-y-5"> | ||
| <!-- Product --> | ||
| <div class="grow mb-2 text-center"> | ||
| <h3 class="mb-2 text-2xl font-bold text-gray-800 dark:text-neutral-200"> | ||
| Congratulation ! | ||
| </h3> | ||
| <p class="text-sm text-gray-500 dark:text-neutral-200"> | ||
| You have successfully completed <span class="font-bold text-gray-800">Banking Current Affairs - 2023</span>. | ||
| We would love to hear your thoughts, suggestions, concerns so we can improve! | ||
| </p> | ||
| </div> | ||
| <!-- End Product --> | ||
|
|
||
| <!-- Rating --> | ||
| <div> | ||
| <label class="block mb-2 text-sm font-medium text-gray-800 dark:text-neutral-200"> | ||
| Overall rating for the course | ||
| </label> | ||
|
|
||
| <!-- Rating --> | ||
| <div class="flex flex-row-reverse justify-end items-center gap-x-0.5"> | ||
| <input id="hs-pro-shwrr-1" required type="radio" class="peer -ms-7 size-7 bg-transparent border-0 text-transparent cursor-pointer appearance-none checked:bg-none focus:bg-none focus:ring-0 focus:ring-offset-0" name="hs-pro-shwrr" value="1"> | ||
| <label for="hs-pro-shwrr-1" class="peer-checked:text-yellow-400 text-gray-300 pointer-events-none dark:peer-checked:text-yellow-600 dark:text-neutral-600"> | ||
| <svg class="shrink-0 size-7" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> | ||
| </label> | ||
| <input id="hs-pro-shwrr-2" type="radio" class="peer -ms-7 size-7 bg-transparent border-0 text-transparent cursor-pointer appearance-none checked:bg-none focus:bg-none focus:ring-0 focus:ring-offset-0" name="hs-pro-shwrr" value="2"> | ||
| <label for="hs-pro-shwrr-2" class="peer-checked:text-yellow-400 text-gray-300 pointer-events-none dark:peer-checked:text-yellow-600 dark:text-neutral-600"> | ||
| <svg class="shrink-0 size-7" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> | ||
| </label> | ||
| <input id="hs-pro-shwrr-3" type="radio" class="peer -ms-7 size-7 bg-transparent border-0 text-transparent cursor-pointer appearance-none checked:bg-none focus:bg-none focus:ring-0 focus:ring-offset-0" name="hs-pro-shwrr" value="3"> | ||
| <label for="hs-pro-shwrr-3" class="peer-checked:text-yellow-400 text-gray-300 pointer-events-none dark:peer-checked:text-yellow-600 dark:text-neutral-600"> | ||
| <svg class="shrink-0 size-7" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> | ||
| </label> | ||
| <input id="hs-pro-shwrr-4" type="radio" class="peer -ms-7 size-7 bg-transparent border-0 text-transparent cursor-pointer appearance-none checked:bg-none focus:bg-none focus:ring-0 focus:ring-offset-0" name="hs-pro-shwrr" value="4"> | ||
| <label for="hs-pro-shwrr-4" class="peer-checked:text-yellow-400 text-gray-300 pointer-events-none dark:peer-checked:text-yellow-600 dark:text-neutral-600"> | ||
| <svg class="shrink-0 size-7" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> | ||
| </label> | ||
| <input id="hs-pro-shwrr-5" type="radio" class="peer -ms-7 size-7 bg-transparent border-0 text-transparent cursor-pointer appearance-none checked:bg-none focus:bg-none focus:ring-0 focus:ring-offset-0" name="hs-pro-shwrr" value="5"> | ||
| <label for="hs-pro-shwrr-5" class="peer-checked:text-yellow-400 text-gray-300 pointer-events-none dark:peer-checked:text-yellow-600 dark:text-neutral-600"> | ||
| <svg class="shrink-0 size-7" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg> | ||
| </label> | ||
| </div> | ||
| <!-- End Rating --> | ||
| </div> | ||
| <!-- End Rating --> | ||
|
|
||
| <!-- Input --> | ||
| <div> | ||
| <label class="flex items-center gap-x-2 mb-2 text-sm font-medium text-gray-800 dark:text-neutral-200"> | ||
| How the mentor of the course taught complex problems ? | ||
| <span><svg xmlns="http://www.w3.org/2000/svg" class="size-3.5 text-red-600" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-asterisk-icon lucide-asterisk"><path d="M12 6v12"/><path d="M17.196 9 6.804 15"/><path d="m6.804 9 10.392 6"/></svg></span> | ||
| </label> | ||
|
|
||
|
|
||
| <textarea required class="py-3 px-4 block w-full border-gray-200 rounded-lg sm:text-sm placeholder:text-gray-400 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-600 dark:focus:ring-neutral-600 min-h-[4rem]" rows="2" placeholder=""></textarea> | ||
| </div> | ||
| <!-- End Input --> | ||
|
|
||
| <!-- Input --> | ||
| <div> | ||
| <label class="block mb-2 text-sm font-medium text-gray-800 dark:text-neutral-200"> | ||
| Was the course content up to date? | ||
| </label> | ||
|
|
||
| <textarea class="py-3 px-4 block w-full border-gray-200 rounded-lg sm:text-sm placeholder:text-gray-400 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-600 dark:focus:ring-neutral-600 min-h-[4rem]" rows="2" placeholder=""></textarea> | ||
| </div> | ||
| <!-- End Input --> | ||
|
|
||
| <!-- Input --> | ||
| <div> | ||
| <label class="flex items-center gap-x-2 mb-2 text-sm font-medium text-gray-800 dark:text-neutral-200"> | ||
| Did you find the assignments helpful? | ||
| <span><svg xmlns="http://www.w3.org/2000/svg" class="size-3.5 text-red-600" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-asterisk-icon lucide-asterisk"><path d="M12 6v12"/><path d="M17.196 9 6.804 15"/><path d="m6.804 9 10.392 6"/></svg></span> | ||
| </label> | ||
|
|
||
| <textarea required class="py-3 px-4 block w-full border-gray-200 rounded-lg sm:text-sm placeholder:text-gray-400 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-600 dark:focus:ring-neutral-600 min-h-[4rem]" rows="2" placeholder=""></textarea> | ||
| </div> | ||
| <!-- End Input --> | ||
| </div> | ||
|
|
||
|
|
||
| <div x-cloak x-show="isFeedbackSubmitted" class="space-y-5"> | ||
| <div class="text-center min-h-48 flex items-center p-4"> | ||
| <div> | ||
| <h3 class="mb-2 text-2xl font-bold text-gray-800 dark:text-neutral-200"> | ||
| Yeahhhh 🎉 | ||
| </h3> | ||
| <p class="text-gray-500 dark:text-neutral-500"> | ||
| Thanks for sharing your thoughts on Banking Current Affairs - 2023. | ||
| Your feedback helps us make our courses even better for future learners. | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="py-2.5 px-4 border-t border-gray-200 dark:border-neutral-700"> | ||
| <div class="text-end"> | ||
| <button data-hs-overlay="#hs-pro-shwprm" type="button" class="py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bggray-100"> | ||
| close | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- End Body --> | ||
|
|
||
| <!-- Footer --> | ||
| <div x-cloak x-show="!isFeedbackSubmitted" class="py-4 px-6 border-t border-gray-200 dark:border-neutral-700"> | ||
| <div class="text-end"> | ||
| <button type="button" @click="isFeedbackSubmitted = true" class="py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-blue-700"> | ||
| Submit | ||
| </button> | ||
| </div> | ||
| </div> | ||
| <!-- End Footer --> | ||
| </div> | ||
| </div> | ||
| </form> | ||
| <!-- End Regional Settings Modal --> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.