Added Search Button and Countdown Timer for Offers.html page #1388
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.
Related Issue
#1357
Description
The offer.html page should include a search button to help users quickly find specific offers and a countdown timer to indicate how long each offer will remain available. The search functionality will allow users to filter offers based on keywords, while the countdown timer will display the remaining time for each offer to create a sense of urgency.
For the search button, I’d like a search function that filters offers in real-time based on user input, updating the page with matching results. For the countdown timer, I’d like it to dynamically count down days, hours, minutes, and seconds until each offer expires, ensuring users are aware of how much time is left to take advantage of the deals.
Type of PR
Screenshots / videos (if applicable)
Before (without a search bar and countdown)
After (with a search bar and countdown)
Checklist:
Additional context:
[Include any additional information or context that might be helpful for reviewers.]
As alternatives, implementing a dropdown filter or sorting options would not effectively provide the same real-time search experience as the search button. Regarding the countdown timer, static expiration dates or manually updated statuses do not offer real-time updates, which are crucial for maintaining user engagement and urgency.