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

Task 12: Create NFTPage.js Component for Individual NFT Display and Purchase #53

Open
saeitoshi-10 opened this issue Jan 7, 2025 · 4 comments

Comments

@saeitoshi-10
Copy link
Collaborator

Description:
This issue involves creating the NFTPage.js component within the src/components directory. The page will serve two primary functionalities:

  1. Display all the data of a particular NFT.
  2. Allow any user to buy the NFT using a "Buy this NFT" button.

You will need to include the provided functions in the component for these functionalities.


Tasks:

  1. Create a new file: src/components/NFTPage.js.
  2. Implement the UI to display detailed information about an individual NFT.
  3. Add a "Buy this NFT" button with its corresponding functionality.
  4. Paste the provided functions into the component and integrate them appropriately:
    • Function 1: Fetch NFT details for display.
    • Function 2: Handle the purchase of the NFT.
  5. Test the component thoroughly for correct data rendering and purchase functionality.

Requirements:

  • The NFT data must be displayed clearly, including metadata such as name, description, price, and seller details.
  • The "Buy this NFT" button should trigger the purchase functionality seamlessly.
  • Ensure proper error handling and display error messages if the purchase fails.

Submission Guidelines:

  1. Pull the latest changes before pushing to the repository.
  2. Submit a pull request (PR) using the provided PR template.
  3. Include screenshots of the NFTPage displaying data and the purchase process in the PR description.

Resources:

Feel free to reach out on Discord for assistance or clarifications! 🚀


Let me know if there are additional details you'd like to include.

@PriyamJChakrabarty
Copy link
Contributor

claim

@saeitoshi-10
Copy link
Collaborator Author

congratulations @PriyamJChakrabarty

@PriyamJChakrabarty
Copy link
Contributor

/info

@Opencodeiiita-Bot
Copy link

User Repo
PriyamJChakrabarty FandomFusion-Frontend (1), AssetMart (1), SponsoHive-Backend (1)
saeitoshi-10 N/A

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

No branches or pull requests

3 participants