Skip to content
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

Added Functionality to the 'Latest Collections ' button #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AnandK-pm
Copy link

Title and Issue number

Title : Adding functionality to the Latest collections Button #gssoc24 #198

Issue No. : 198

Close #198

Changes Made

This pull request adds functionality to the "Latest Collection" button in the Hero component of our project. The goal is to enhance user experience by enabling smooth scrolling to the "New Collections" section when the button is clicked.

  1. Updated the Hero.jsx component to accept a scrollToNewCollections function as a prop.
  2. Implemented a scrollToNewCollections function in the Shop.jsx component using React's useRef hook and scrollIntoView
    method.
  3. Added a hover effect - Modified the CSS for the "Latest Collection" button in Hero.css to change the cursor to a pointer
    when hovered over and changes its background color.

These changes provide a seamless browsing experience for users, allowing them to easily navigate to the "New Collections" section with a single click on the "Latest Collection" button.

Screenshots (if applicable)

[Include any relevant screenshots or images to support your changes.]

Checklist

  • I have tested these changes locally.
  • I have reviewed the code and ensured it follows the project's coding standards.
  • I have updated the documentation (if necessary).
  • I have read the contributing guidelines.

Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shop-nex ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 5:13pm

Copy link
Collaborator

@Vansh-Choudhary Vansh-Choudhary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved !

Copy link
Collaborator

@Sushilverma002 Sushilverma002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please resolve conflict

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

Successfully merging this pull request may close these issues.

Adding functionality to the Latest collections Button #gssoc24
3 participants