Neoptic Clothing is a cyberpunk-style eCommerce site for futuristic clothing and gadgets. This dApp supports MetaMask connection on Ethereum and allows payments on test networks such as Rinkeby and Ropsten.
- Wallet Connection: Users can connect their wallet using MetaMask, with their ETH balance displayed in the navbar.
- Product Purchase: Clicking "Buy" initiates the transaction. After completion, the user is redirected to the success page.
- Cyberpunk Interface: A design with background videos, neon effects, and futuristic fonts for an immersive UX.
Used for modular and reusable components, simplifying state management and code maintainability.
- Wagmi simplifies wallet interactions on Ethereum, such as checking connections, fetching wallet addresses, and displaying ETH balances.
- ethers.js handles blockchain transactions and converts values to wei.
For internal navigation between pages.
- Product images are uploaded to IPFS, accessible via unique hashes.
- This eliminates the need for centralized servers and ensures images are permanently and securely available.
- Neon and cyberpunk visual effects are essential for the application's aesthetic.
- Advanced CSS and styled components create neon effects for buttons, text, and backgrounds (e.g.,
.glow-text,.btn-cyber,.background-video). - Attempted to use Tailwind but encountered compatibility issues.
- Choice: A background video enhances immersion, creating a dynamic and futuristic look for the homepage.
- Implementation: Applied with CSS to adapt to different screen resolutions.
Ensures an optimal user experience on mobile devices using media queries.
- Node.js: Ensure Node.js is installed.
- MetaMask: Make sure the MetaMask extension is installed in your browser.
- Test Networks: Connect to a test network (Rinkeby or Ropsten) via MetaMask.
git clone https://github.com/abtomal/Progetto-TypeScript-React-e-Web3-di-Alessandro-Ponton.git
cd Progetto-TypeScript-React-e-Web3-di-Alessandro-Pontonnpm installnpm run devVisit http://localhost:5173 in your browser and connect MetaMask to the test network.