I'll enhance the candidate registration form to include image upload functionality with Pinata IPFS integration:
I've enhanced the candidate registration form with image upload functionality using Pinata for IPFS storage. Here's what I've added:
Created a reusable FileUpload component that supports:
Added a server-side API route (/api/upload) that:
Updated the candidate registration form with:
Added necessary dependencies to package.json:
This implementation provides a seamless experience for candidates to upload their profile images while ensuring the images are stored in a decentralized manner consistent with the blockchain-based voting application.
Please make sure to add the following environment variables to your project:
Refine the dashboard and voting functionalities within the application. For scenarios where registration is not mandatory, ensure that the display of registered voters and the participation rate is omitted. In candidate-based voting systems, even if candidates are registered, the dashboard should accurately reflect the voter count and participation rate, excluding candidate registrations from the voter count. Implement a search functionality to enable users to easily find specific campaigns or candidates. Enhance the user experience by incorporating skeleton loaders during the campaign loading process to provide visual feedback while data is being fetched.
Along with this, If I was a voter and have voted show something like, "Thanks for voting, using polytix, we hope your desired candidate/proposal wins. Keep your fingers crossed and wait for the results to be out"
If I am a candidate show something like, "You are a registered candidate in this event, we hope that you win."
and don't show options to vote.
use only black and purple close to black, and some minimial colors in the dashboard and overview. also when voting for a candidate, show their image also
I'll implement all the requested enhancements to refine the dashboard and voting functionalities of the Polytix application: