strkfarm / starkfarm-client

https://www.strkfarm.xyz/
GNU Affero General Public License v3.0
17 stars 28 forks source link

feature: Add OG Section in community page #135

Closed akiraonstarknet closed 1 month ago

akiraonstarknet commented 1 month ago

Hey, above coming soon section, add a section below as described in this design for OG Farmer NFT Section.

https://www.figma.com/design/aRQ6kg5LBUb4jMgcM9Ybff/Strkfarm-assets?node-id=877-123&t=DDXAhNjouN9uU9s4-4

I have already done the backend and contract side of work and implemented in the app in this branch of mine: https://github.com/akiraonstarknet/starkfarm-client/tree/og-nft-backend I have also done some UI integration to fetch some data, please integratre the same into design as shown.

Functionality

  1. On clicking Check eligibility, do a backend call using the api written in my branch. If not eligible, show the msg in red as shown in desing. The underlined text has to be linked to https://docs.strkfarm.xyz/p/community/og-farmer-nft-campaign
  2. If eligible, change text of Check eligibility to Claim.
  3. If user wallet is not connect and check eligibility is clicked, show a toast saying Please connect wallet.
  4. If a connected user already has NFT, disable the Check eligibility button and put text as Claimed
Jemiiah commented 1 month ago

I would love to work on this @akiraonstarknet ETA: 48 hours🚀

Ayoazeez26 commented 1 month ago

Hi @akiraonstarknet Can I work on this?

akiraonstarknet commented 1 month ago

Issue will be given to @EjembiEmmanuel because it a continuation of an on-going task

Jemiiah commented 1 month ago

Yessir 🫱🏾‍🫲🏽 @akiraonstarknet

EjembiEmmanuel commented 1 month ago

@akiraonstarknet kindly assign please

akiraonstarknet commented 1 month ago

@EjembiEmmanuel Adding further, A popup something like below should appear when user claims their NFT. image Note: This is just a rough design for your intuition, use the content from here, but the colors and style has to be of the modal in Deposit.tsx (Its a popup that appears on deposit, sample shown below) image

On clicking Share on X, the below text should be sent. I just claimed my Limited Edition OG Farmer NFT on @STRKFarm! Have you gotten yours yet? You might still be eligible, don’t miss out!