Neon File Uploader - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Neon File Uploader</title> <style> body { font-family: 'Arial', sans-serif; background: #000; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .uploader { width: 400px; padding: 30px; background: #222; border-radius: 10px; box-shadow: 0 0 20px #00ff00; text-align: center; position: relative; overflow: hidden; transition: transform 0.5s; } .uploader:hover { transform: scale(1.05); } .uploader .icon { font-size: 50px; color: #00ff00; animation: glow 2s infinite alternate; } @keyframes glow { from { text-shadow: 0 0 5px #00ff00; } to { text-shadow: 0 0 20px #00ff00; } } .uploader h2 { font-size: 24px; margin: 20px 0; color: #00ff00; } .uploader p { font-size: 16px; color: #00ff00; margin-bottom: 20px; } .uploader .file-input { display: none; } .uploader label { padding: 10px 20px; background: #00ff00; border: none; border-radius: 30px; color: #000; font-size: 16px; cursor: pointer; transition: background 0.3s, box-shadow 0.3s; display: inline-block; margin: 0 auto; } .uploader label:hover { background: #00cc00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; } .uploader .uploaded-list { margin-top: 20px; text-align: left; max-height: 150px; overflow-y: auto; padding: 0; } .uploader .uploaded-list li { background: #333; margin-bottom: 10px; height: 50px; padding: 0; padding-left: 5%; padding-right: 5%; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; } .uploader .uploaded-list li span { font-size: 14px; color: #00ff00; } .uploader .uploaded-list li .delete { cursor: pointer; color: #ff0000; } </style> </head> <body> <div class="uploader"> <div class="icon">💾</div> <h2>Upload Your Files</h2> <p>Click the button below to upload files</p> <label for="file-input">Choose Files</label> <input type="file" id="file-input" class="file-input" multiple> <ul class="uploaded-list" id="uploaded-list"></ul> </div> <script> document.getElementById('file-input').addEventListener('change', function(event) { const files = event.target.files; const uploadedList = document.getElementById('uploaded-list'); uploadedList.innerHTML = ''; for (let i = 0; i < files.length; i++) { const listItem = document.createElement('li'); listItem.innerHTML = `<span>${files[i].name}</span><span class="delete">❌</span>`; uploadedList.appendChild(listItem); listItem.querySelector('.delete').addEventListener('click', function() { listItem.remove(); }); } }); </script> </body> </html>