✨ Feature Enhancements – Trending Tours Page #1824
Open
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.
📌 Summary
This PR enhances the Trending Tours page with improved UI/UX, interactivity, and filtering features to make the browsing experience more engaging and user-friendly.
🔹 New Features Added
1. Search Bar
2. Star Rating System ⭐
3. "More Details" Button
Replaced/added a button linking to a dedicated tour-details.html for expanded information.
4. Category Filter
Implemented filter buttons (All, Adventure, Cultural, Relaxation) using data-category attributes for tour cards.
5. Improved Card Styling 🎨
Modernized design with rounded corners, hover animations, image zoom effect, and better shadows.
6. Back to Top Button ⬆️
Added a floating button with smooth scroll for quick navigation.
### 📂 File Changes
trending.html – Added HTML for search bar, rating stars, filter buttons, back-to-top button, and linked tour-details.html.
trending.css (new or updated) – Added styling for search bar, filter, ratings, cards, and back-to-top button.
JavaScript (inside trending.html) – Added searchTours() and filterTours() functions, plus scroll-to-top logic.
### 🛠 Implementation Notes
All CSS changes can be placed in a dedicated trending.css or inside <style> tags in trending.html.
JavaScript is added before the closing tag for better performance.
Requires Font Awesome link in for star icons.
Ensure that tour-details.html exists with relevant tour content.
✅ Tested and verified for proper functionality on desktop view.
🎯 Goal: Enhance user engagement and make the Trending Tours page more interactive