Spaces:
Running
Running
Download index.html from Bibblerbytes/pump-coin-creator: direct link, hf CLI and curl.
- Browser
- Download file 23.6 kB
-
https://huggingface.co/spaces/Bibblerbytes/pump-coin-creator/resolve/main/index.html
- Command line
-
hf download hf://spaces/Bibblerbytes/pump-coin-creator/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Bibblerbytes/pump-coin-creator/resolve/main/index.html
23.6 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Create New Coin</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| dark: { | |
| 900: '#0a0a0a', | |
| 800: '#191b23', | |
| 700: '#1c2530', | |
| 600: '#374151', | |
| }, | |
| light: { | |
| 100: '#F8FAFC', | |
| 200: '#f8f1fc', | |
| 300: '#9da3ae', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <style> | |
| .file-upload { | |
| transition: all 0.3s ease; | |
| } | |
| .file-upload:hover { | |
| background-color: rgba(255, 255, 255, 0.05); | |
| border-color: rgba(255, 255, 255, 0.2); | |
| } | |
| .file-upload:active { | |
| transform: scale(0.98); | |
| } | |
| .collapsible-content { | |
| transition: max-height 0.3s ease-out, opacity 0.3s ease; | |
| overflow: hidden; | |
| } | |
| textarea, input { | |
| transition: border-color 0.3s ease; | |
| } | |
| textarea:focus, input:focus { | |
| outline: none; | |
| border-color: #6366f1; | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, #6366f1, #8b5cf6); | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
| } | |
| .btn-primary:active { | |
| transform: translateY(0); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-dark-900 text-light-100 min-h-screen"> | |
| <main class="py-8 px-4 sm:px-6 lg:px-8"> | |
| <div class="max-w-7xl mx-auto"> | |
| <div class="flex flex-col lg:flex-row gap-8"> | |
| <!-- Main Form Section --> | |
| <div class="w-full lg:w-2/3 space-y-6"> | |
| <div class="space-y-2"> | |
| <h1 class="text-2xl font-bold">Create New Coin</h1> | |
| <p class="text-light-300">Launch your own cryptocurrency with just a few details</p> | |
| </div> | |
| <!-- Coin Details Section --> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 p-6 space-y-6" data-aos="fade-up"> | |
| <div class="space-y-1"> | |
| <h2 class="text-lg font-semibold">Coin Details</h2> | |
| <p class="text-sm text-light-300">Choose carefully, these can't be changed once the coin is created</p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div> | |
| <label for="name" class="block text-sm font-medium mb-1">Coin Name</label> | |
| <input type="text" id="name" placeholder="e.g. Dogecoin" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="ticker" class="block text-sm font-medium mb-1">Ticker Symbol</label> | |
| <input type="text" id="ticker" placeholder="e.g. DOGE" maxlength="10" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="description" class="block text-sm font-medium mb-1">Description <span class="text-light-300">(Optional)</span></label> | |
| <textarea id="description" rows="4" placeholder="Describe your coin's purpose and features" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"></textarea> | |
| </div> | |
| <!-- Social Links Collapsible --> | |
| <div class="space-y-2"> | |
| <button id="socialToggle" class="flex items-center gap-2 text-light-200 hover:text-white transition-colors"> | |
| <i data-feather="link"></i> | |
| <span class="text-sm">Add social links <span class="text-light-300">(Optional)</span></span> | |
| <i data-feather="chevron-down" id="socialChevron" class="transition-transform"></i> | |
| </button> | |
| <div id="socialContent" class="collapsible-content max-h-0 opacity-0"> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4 pt-4"> | |
| <div> | |
| <label for="website" class="block text-sm font-medium mb-1">Website</label> | |
| <input type="url" id="website" placeholder="https://" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="twitter" class="block text-sm font-medium mb-1">Twitter</label> | |
| <input type="url" id="twitter" placeholder="https://twitter.com/" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="telegram" class="block text-sm font-medium mb-1">Telegram</label> | |
| <input type="url" id="telegram" placeholder="https://t.me/" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| <div> | |
| <label for="discord" class="block text-sm font-medium mb-1">Discord</label> | |
| <input type="url" id="discord" placeholder="https://discord.gg/" | |
| class="w-full bg-dark-800 border border-dark-600 rounded-lg px-4 py-2 focus:ring-2 focus:ring-indigo-500"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Media Upload Section --> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 p-6 space-y-6" data-aos="fade-up" data-aos-delay="100"> | |
| <div class="space-y-1"> | |
| <h2 class="text-lg font-semibold">Coin Image</h2> | |
| <p class="text-sm text-light-300">Upload an image or video that represents your coin</p> | |
| </div> | |
| <div class="file-upload border-2 border-dashed border-dark-600 rounded-lg p-8 text-center cursor-pointer hover:border-indigo-500 transition-colors"> | |
| <div class="flex flex-col items-center justify-center space-y-3"> | |
| <i data-feather="image" class="w-12 h-12 text-light-300"></i> | |
| <div> | |
| <p class="font-medium">Drag & drop your file here</p> | |
| <p class="text-sm text-light-300">or click to browse</p> | |
| </div> | |
| <button class="btn-primary text-white px-4 py-2 rounded-lg text-sm"> | |
| Select File | |
| </button> | |
| </div> | |
| <input type="file" class="hidden" accept="image/*,video/*"> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="flex items-start gap-3"> | |
| <i data-feather="file" class="text-light-300"></i> | |
| <div> | |
| <h3 class="text-sm font-medium">File requirements</h3> | |
| <ul class="text-xs text-light-300 space-y-1 mt-1 list-disc pl-4"> | |
| <li>Image - max 15MB (JPG, PNG, GIF)</li> | |
| <li>Video - max 30MB (MP4 recommended)</li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="flex items-start gap-3"> | |
| <i data-feather="monitor" class="text-light-300"></i> | |
| <div> | |
| <h3 class="text-sm font-medium">Display requirements</h3> | |
| <ul class="text-xs text-light-300 space-y-1 mt-1 list-disc pl-4"> | |
| <li>Image - min 1000×1000px (1:1 ratio)</li> | |
| <li>Video - 16:9 or 9:16 (1080p+ recommended)</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Banner Upload Section --> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 p-6 space-y-6" data-aos="fade-up" data-aos-delay="150"> | |
| <div class="space-y-1"> | |
| <button id="bannerToggle" class="flex items-center gap-2 text-light-200 hover:text-white transition-colors"> | |
| <i data-feather="image"></i> | |
| <span class="text-sm">Add banner <span class="text-light-300">(Optional)</span></span> | |
| <i data-feather="chevron-down" id="bannerChevron" class="transition-transform"></i> | |
| </button> | |
| <p class="text-xs text-light-300">This will be shown on the coin page in addition to the coin image</p> | |
| </div> | |
| <div id="bannerContent" class="collapsible-content max-h-0 opacity-0 space-y-4"> | |
| <div class="file-upload border-2 border-dashed border-dark-600 rounded-lg p-8 text-center cursor-pointer hover:border-indigo-500 transition-colors"> | |
| <div class="flex flex-col items-center justify-center space-y-3"> | |
| <i data-feather="image" class="w-12 h-12 text-light-300"></i> | |
| <div> | |
| <p class="font-medium">Upload your banner image</p> | |
| <p class="text-sm text-light-300">1500×500px recommended</p> | |
| </div> | |
| <button class="btn-primary text-white px-4 py-2 rounded-lg text-sm"> | |
| Select File | |
| </button> | |
| </div> | |
| <input type="file" class="hidden" accept="image/*"> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="flex items-start gap-3"> | |
| <i data-feather="file" class="text-light-300"></i> | |
| <div> | |
| <h3 class="text-sm font-medium">Banner requirements</h3> | |
| <ul class="text-xs text-light-300 space-y-1 mt-1 list-disc pl-4"> | |
| <li>Max 4.3MB (JPG, PNG, GIF)</li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="flex items-start gap-3"> | |
| <i data-feather="monitor" class="text-light-300"></i> | |
| <div> | |
| <h3 class="text-sm font-medium">Aspect ratio</h3> | |
| <ul class="text-xs text-light-300 space-y-1 mt-1 list-disc pl-4"> | |
| <li>3:1 ratio (1500×500px recommended)</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Important Notice --> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 p-4 flex items-start gap-3"> | |
| <i data-feather="alert-circle" class="text-yellow-400"></i> | |
| <p class="text-xs text-light-300"> | |
| <span class="font-medium text-light-200">Important:</span> Coin data (social links, banner, etc) can only be added now, and can't be changed or edited after creation. | |
| </p> | |
| </div> | |
| <!-- Submit Button --> | |
| <button id="createButton" class="btn-primary text-white px-6 py-3 rounded-lg font-medium w-full md:w-auto disabled:opacity-50 disabled:cursor-not-allowed" disabled> | |
| Create Coin | |
| </button> | |
| </div> | |
| <!-- Preview Section --> | |
| <div class="w-full lg:w-1/3 space-y-6 sticky top-6 h-fit"> | |
| <div class="space-y-2"> | |
| <h2 class="text-lg font-semibold">Preview</h2> | |
| <p class="text-sm text-light-300">See how your coin will appear to others</p> | |
| </div> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 p-6 flex flex-col items-center justify-center aspect-square"> | |
| <div id="coinPreview" class="flex flex-col items-center justify-center text-center space-y-4"> | |
| <div class="w-24 h-24 rounded-full bg-dark-700 flex items-center justify-center"> | |
| <i data-feather="image" class="text-light-300"></i> | |
| </div> | |
| <div class="space-y-1"> | |
| <h3 id="previewName" class="text-xl font-bold">Coin Name</h3> | |
| <p id="previewTicker" class="text-light-300">TICKER</p> | |
| </div> | |
| <p id="previewDesc" class="text-sm text-light-300 max-w-xs">Description will appear here</p> | |
| </div> | |
| </div> | |
| <div class="bg-dark-800 rounded-xl border border-dark-700 overflow-hidden"> | |
| <div class="aspect-[3/1] bg-gradient-to-r from-indigo-500 to-purple-600 flex items-center justify-center"> | |
| <i data-feather="image" class="text-white/30 w-12 h-12"></i> | |
| </div> | |
| <div class="p-4 space-y-3"> | |
| <div class="flex items-center space-x-4"> | |
| <div class="w-16 h-16 rounded-lg bg-dark-700 flex items-center justify-center"> | |
| <i data-feather="image" class="text-light-300"></i> | |
| </div> | |
| <div> | |
| <h3 id="previewName2" class="font-semibold">Coin Name</h3> | |
| <p id="previewTicker2" class="text-sm text-light-300">TICKER</p> | |
| </div> | |
| </div> | |
| <p id="previewDesc2" class="text-sm text-light-300">Description will appear here</p> | |
| <div class="flex space-x-3 pt-2"> | |
| <button class="text-light-300 hover:text-white transition-colors"> | |
| <i data-feather="globe" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-light-300 hover:text-white transition-colors"> | |
| <i data-feather="twitter" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-light-300 hover:text-white transition-colors"> | |
| <i data-feather="send" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-light-300 hover:text-white transition-colors"> | |
| <i data-feather="message-circle" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| // Initialize AOS animations | |
| AOS.init({ | |
| duration: 600, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Initialize feather icons | |
| feather.replace(); | |
| // Toggle collapsible sections | |
| document.getElementById('socialToggle').addEventListener('click', function() { | |
| const content = document.getElementById('socialContent'); | |
| const chevron = document.getElementById('socialChevron'); | |
| if (content.classList.contains('max-h-0')) { | |
| content.classList.remove('max-h-0', 'opacity-0'); | |
| content.classList.add('max-h-[500px]', 'opacity-100', 'py-4'); | |
| chevron.style.transform = 'rotate(180deg)'; | |
| } else { | |
| content.classList.remove('max-h-[500px]', 'opacity-100', 'py-4'); | |
| content.classList.add('max-h-0', 'opacity-0'); | |
| chevron.style.transform = 'rotate(0deg)'; | |
| } | |
| }); | |
| document.getElementById('bannerToggle').addEventListener('click', function() { | |
| const content = document.getElementById('bannerContent'); | |
| const chevron = document.getElementById('bannerChevron'); | |
| if (content.classList.contains('max-h-0')) { | |
| content.classList.remove('max-h-0', 'opacity-0'); | |
| content.classList.add('max-h-[500px]', 'opacity-100'); | |
| chevron.style.transform = 'rotate(180deg)'; | |
| } else { | |
| content.classList.remove('max-h-[500px]', 'opacity-100'); | |
| content.classList.add('max-h-0', 'opacity-0'); | |
| chevron.style.transform = 'rotate(0deg)'; | |
| } | |
| }); | |
| // Form validation and preview updates | |
| const nameInput = document.getElementById('name'); | |
| const tickerInput = document.getElementById('ticker'); | |
| const descInput = document.getElementById('description'); | |
| const createButton = document.getElementById('createButton'); | |
| function updatePreview() { | |
| document.getElementById('previewName').textContent = nameInput.value || 'Coin Name'; | |
| document.getElementById('previewTicker').textContent = tickerInput.value ? tickerInput.value.toUpperCase() : 'TICKER'; | |
| document.getElementById('previewDesc').textContent = descInput.value || 'Description will appear here'; | |
| document.getElementById('previewName2').textContent = nameInput.value || 'Coin Name'; | |
| document.getElementById('previewTicker2').textContent = tickerInput.value ? tickerInput.value.toUpperCase() : 'TICKER'; | |
| document.getElementById('previewDesc2').textContent = descInput.value || 'Description will appear here'; | |
| // Enable create button if name and ticker are filled | |
| if (nameInput.value.trim() && tickerInput.value.trim()) { | |
| createButton.disabled = false; | |
| } else { | |
| createButton.disabled = true; | |
| } | |
| } | |
| nameInput.addEventListener('input', updatePreview); | |
| tickerInput.addEventListener('input', updatePreview); | |
| descInput.addEventListener('input', updatePreview); | |
| // File upload interactions | |
| const fileUploads = document.querySelectorAll('.file-upload'); | |
| fileUploads.forEach(upload => { | |
| const input = upload.querySelector('input[type="file"]'); | |
| const button = upload.querySelector('button'); | |
| upload.addEventListener('click', () => input.click()); | |
| button.addEventListener('click', (e) => { | |
| e.stopPropagation(); | |
| input.click(); | |
| }); | |
| input.addEventListener('change', function() { | |
| if (this.files && this.files[0]) { | |
| const reader = new FileReader(); | |
| reader.onload = function(e) { | |
| // For the main coin image | |
| if (upload.parentElement.id !== 'bannerContent') { | |
| const preview = document.getElementById('coinPreview'); | |
| preview.innerHTML = ` | |
| <img src="${e.target.result}" class="w-24 h-24 rounded-full object-cover"> | |
| <div class="space-y-1"> | |
| <h3 id="previewName" class="text-xl font-bold">${nameInput.value || 'Coin Name'}</h3> | |
| <p id="previewTicker" class="text-light-300">${tickerInput.value ? tickerInput.value.toUpperCase() : 'TICKER'}</p> | |
| </div> | |
| <p id="previewDesc" class="text-sm text-light-300 max-w-xs">${descInput.value || 'Description will appear here'}</p> | |
| `; | |
| } else { | |
| // For the banner image | |
| const bannerPreview = document.querySelector('.aspect-[3/1]'); | |
| bannerPreview.innerHTML = `<img src="${e.target.result}" class="w-full h-full object-cover">`; | |
| } | |
| } | |
| reader.readAsDataURL(this.files[0]); | |
| } | |
| }); | |
| }); | |
| // Initialize with banner section collapsed | |
| document.getElementById('bannerContent').classList.add('max-h-0', 'opacity-0'); | |
| </script> | |
| </body> | |
| </html> | |