import { ConnectButton } from "@rainbow-me/rainbowkit";
Browse filesexport default 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 */}
<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>
{/* Hero Section */}
<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 */}
<footer className="text-center py-4 opacity-70">
© 2025 430x — Built with ❤️ on Web3
</footer>
</div>
);
}
Files changed (6)
- README.md+8-5
- components/footer.jsAdded+40
- components/navbar.jsAdded+48
- index.html+53-19
- script.jsAdded+55
- style.css+28-19
12345678910---title: Web3 Minting Platform With Rainbowkitemoji: 📊colorFrom: indigocolorTo: purplesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213---title: Web3 Minting Platform with RainbowKit 🌈colorFrom: redcolorTo: pinkemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://huggingface.co/deepsite).
12345678910111213141516171819202122232425262728293031323334353637383940class Web3Footer extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` <style> footer { text-align: center; padding: 2rem; opacity: 0.7; font-size: 0.875rem; margin-top: auto; } .social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; } .social-links a { color: white; opacity: 0.7; transition: opacity 0.2s; } .social-links a:hover { opacity: 1; } </style> <footer> <p>© 2025 430x — Built with ❤️ on Web3</p> <div class="social-links"> <a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a> <a href="#" aria-label="Discord"><i data-feather="message-circle"></i></a> <a href="#" aria-label="GitHub"><i data-feather="github"></i></a> </div> </footer> `; }}
customElements.define('web3-footer', Web3Footer);123456789101112131415161718192021222324252627282930313233343536373839404142434445464748class Web3Navbar extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = ` <style> :host { display: block; width: 100%; } nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; width: 100%; } .logo { font-size: 1.5rem; font-weight: 700; background: linear-gradient(90deg, #8b5cf6, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; } .connect-btn { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border: none; border-radius: 9999px; padding: 0.75rem 1.5rem; color: white; font-weight: 600; cursor: pointer; transition: all 0.2s ease; } .connect-btn:hover { opacity: 0.9; transform: scale(1.05); } </style> <nav> <div class="logo">430x</div> <div id="connect-container"></div> </nav> `; }}
customElements.define('web3-navbar', Web3Navbar);12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>430x - Web3 Minting Platform</title><link rel="stylesheet" href="style.css"><script src="https://cdn.tailwindcss.com"></script><script src="https://unpkg.com/feather-icons"></script><script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@rainbow-me/rainbowkit@latest/dist/index.js"></script><script src="https://cdn.jsdelivr.net/npm/wagmi@latest/dist/index.js"></script><script src="https://cdn.jsdelivr.net/npm/viem@latest/dist/index.js"></script><script src="https://cdn.jsdelivr.net/npm/@wagmi/core@latest/dist/index.js"></script></head><body class="min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-800 text-white flex flex-col"><!-- Header --><header class="flex justify-between items-center p-6"><h1 class="text-2xl font-bold tracking-wide">430x</h1><div id="connect-button"></div></header><!-- Hero Section --><main class="flex flex-col items-center justify-center flex-grow text-center px-6"><h2 class="text-4xl md:text-5xl font-bold mb-4">Mint Your Future with 430x</h2><p class="text-lg opacity-80 mb-8 max-w-2xl">Secure. Fast. Transparent. The next generation of crypto minting.</p><button class="px-8 py-3 rounded-full bg-gradient-to-r from-indigo-500 to-purple-500 font-semibold hover:opacity-90 transition transform hover:scale-105">Mint Now</button></main><!-- Footer --><footer class="text-center py-6 opacity-70 text-sm md:text-base">© 2025 430x — Built with ❤️ on Web3</footer><script src="components/navbar.js"></script><script src="components/footer.js"></script><script src="script.js"></script><script>feather.replace();// RainbowKit and Wagmi initialization would go here in a real implementationdocument.addEventListener('DOMContentLoaded', () => {// This is a placeholder - in a real app you'd initialize RainbowKit hereconsole.log('App loaded - RainbowKit would be initialized here');});</script><script src="https://huggingface.co/deepsite/deepsite-badge.js"></script></body></html>
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455// Main application scriptdocument.addEventListener('DOMContentLoaded', () => { // Initialize any global functionality here // Example: Mint button interaction const mintButton = document.querySelector('main button'); if (mintButton) { mintButton.addEventListener('click', () => { console.log('Mint button clicked - would connect wallet here'); // In a real app, this would trigger the minting process }); }
// Add animation class to mint button after delay setTimeout(() => { if (mintButton) { mintButton.classList.add('animate-pulse'); } }, 1000);});
// RainbowKit setup would go here in a real implementationasync function setupRainbowKit() { // This is a placeholder - in a real app you'd configure chains and connectors console.log('RainbowKit setup would go here'); // Example configuration: /* const { chains, provider, webSocketProvider } = configureChains( [chain.mainnet, chain.polygon], [publicProvider()] ); const { connectors } = getDefaultWallets({ appName: '430x Minting App', chains }); const wagmiClient = createClient({ autoConnect: true, connectors, provider, webSocketProvider, }); const root = ReactDOM.createRoot(document.getElementById('connect-button')); root.render( <WagmiConfig client={wagmiClient}> <RainbowKitProvider chains={chains}> <ConnectButton /> </RainbowKitProvider> </WagmiConfig> ); */}12345678910111213141516171819202122232425262728body {padding: 2rem;font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}h1 {font-size: 16px;margin-top: 0;}p {color: rgb(107, 114, 128);font-size: 15px;margin-bottom: 10px;margin-top: 5px;}.card {max-width: 620px;margin: 0 auto;padding: 16px;border: 1px solid lightgray;border-radius: 16px;}.card p:last-child {margin-bottom: 0;}12345678910111213141516171819202122232425262728293031323334353637/* Custom styles for Web3 app */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');body {font-family: 'Inter', sans-serif;}/* RainbowKit button override */button[data-testid="rk-connect-button"] {background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;border: none !important;border-radius: 9999px !important;padding: 0.75rem 1.5rem !important;font-weight: 600 !important;transition: all 0.2s ease !important;}button[data-testid="rk-connect-button"]:hover {opacity: 0.9 !important;transform: scale(1.05) !important;}/* Animation for the mint button */@keyframes pulse {0%, 100% {transform: scale(1);box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);}50% {transform: scale(1.05);box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);}}.animate-pulse {animation: pulse 2s infinite;}