feat: add dynamic auction listings and integrate into rental layout#3
Open
codeCraft-Ritik wants to merge 1 commit into
Open
feat: add dynamic auction listings and integrate into rental layout#3codeCraft-Ritik wants to merge 1 commit into
codeCraft-Ritik wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Key Changes:
Centralized Data Management: Created src/data/auctionData.js to manage vehicle metadata, including titles, current bids, and auction end times.
New UI Component: Developed the AuctionListings section in src/pages/LandingPages/Rental/sections/AuctionListings.js. This component uses a responsive grid to map through the auction data and render VehicleAuctionCard components.
Layout Integration: Updated the main entry point for the Rental page (src/pages/LandingPages/Rental/index.js) to import and display the new AuctionListings section.
UX Improvements: Integrated the AuctionCountdown logic within the listings to provide users with real-time feedback on when bidding ends for specific vehicles.
Design Consistency: Leveraged existing project components like MKBox, MKTypography, and the "Material Kit 2 PRO" theme to ensure the new features match the professional aesthetic of the application.
Impact: These changes provide a scalable foundation for adding real backend data in the future and immediately improve the user experience by showcasing active car auctions in a structured, easy-to-navigate format.