File size: 2,090 Bytes
2c9e7d0 9322a57 2c9e7d0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
import { ConnectButton } from "@rainbow-me/rainbowkit";
import { WagmiConfig, createConfig, configureChains } from 'wagmi';
import { publicProvider } from 'wagmi/providers/public';
import { RainbowKitProvider, getDefaultWallets } from '@rainbow-me/rainbowkit';
import { mainnet, polygon } from 'wagmi/chains';
import { createRoot } from 'react-dom/client';
// Configure chains and providers
const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, polygon],
[publicProvider()]
);
// Set up connectors
const { connectors } = getDefaultWallets({
appName: '430x Minting App',
projectId: 'YOUR_WALLETCONNECT_PROJECT_ID',
chains
});
// Create wagmi client
const config = createConfig({
autoConnect: true,
connectors,
publicClient,
webSocketPublicClient,
});
// Main App component
function App() {
return (
<div className="min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-800 text-white flex flex-col">
<header className="flex justify-between items-center p-6">
<h1 className="text-2xl font-bold tracking-wide">430x</h1>
<ConnectButton showBalance={false} accountStatus="address" />
</header>
<main className="flex flex-col items-center justify-center flex-grow text-center px-6">
<h2 className="text-5xl font-bold mb-4">Mint Your Future with 430x</h2>
<p className="text-lg opacity-80 mb-8">
Secure. Fast. Transparent. The next generation of crypto minting.
</p>
<button className="px-8 py-3 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 font-semibold hover:opacity-90 transition">
Mint Now
</button>
</main>
<footer className="text-center py-4 opacity-70">
© 2025 430x — Built with ❤️ on Web3
</footer>
</div>
);
}
// Render the app
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<WagmiConfig config={config}>
<RainbowKitProvider chains={chains}>
<App />
</RainbowKitProvider>
</WagmiConfig>
);
|