Skip to content

feat: Add 3D carousel and 50 more books with UI enhancements #21

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
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

ramprasad222
Copy link

Key changes:

  1. Added 3D Carousel:

    • Researched and selected react-responsive-3d-carousel.
    • Installed the library.
    • Implemented the carousel on src/Pages/Home/Home.jsx under a "Featured Books" heading.
    • The carousel displays ProductCard components, showcasing a selection of available books.
  2. Added 50 More Books (Mock Data):

    • Created src/Assets/Data/newly_added_books.json with 50 mock book entries.
    • Integrated this data into the main application state:
      • src/Context/product-context.js now combines these books with those fetched from the API, making them available sitewide (shop, filters).
      • src/Context/new-arrival-context.js now combines newRelease: true books from the mock data with API new arrivals, populating the "New Arrivals" section.
  3. UI Enhancements:

    • The 3D carousel provides a new way to showcase books on the homepage.
    • CSS styles were added to src/Pages/Home/Home.css to improve the layout, centering, and responsiveness of the carousel.
    • The integration ensures new books are visible in multiple sections, enhancing content discovery.

This work addresses the issue by adding the requested functionality and content, focusing on frontend modifications.

Key changes:

1.  **Added 3D Carousel:**
    *   Researched and selected `react-responsive-3d-carousel`.
    *   Installed the library.
    *   Implemented the carousel on `src/Pages/Home/Home.jsx` under a "Featured Books" heading.
    *   The carousel displays `ProductCard` components, showcasing a selection of available books.

2.  **Added 50 More Books (Mock Data):**
    *   Created `src/Assets/Data/newly_added_books.json` with 50 mock book entries.
    *   Integrated this data into the main application state:
        *   `src/Context/product-context.js` now combines these books with those fetched from the API, making them available sitewide (shop, filters).
        *   `src/Context/new-arrival-context.js` now combines `newRelease: true` books from the mock data with API new arrivals, populating the "New Arrivals" section.

3.  **UI Enhancements:**
    *   The 3D carousel provides a new way to showcase books on the homepage.
    *   CSS styles were added to `src/Pages/Home/Home.css` to improve the layout, centering, and responsiveness of the carousel.
    *   The integration ensures new books are visible in multiple sections, enhancing content discovery.

This work addresses the issue by adding the requested functionality and content, focusing on frontend modifications.
Copy link

netlify bot commented May 24, 2025

Deploy Preview for bookztron-dev-branch failed.

Name Link
🔨 Latest commit 225a4e9
🔍 Latest deploy log https://app.netlify.com/projects/bookztron-dev-branch/deploys/6831db81fed6e600083117cf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant