Professional File Manager - 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>Professional File Manager</title> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> <style> body { font-family: 'Roboto', sans-serif; margin: 0; background-color: #f0f2f5; display: flex; justify-content: center; align-items: center; height: 100vh; overflow: hidden; } .file-manager { width: 80%; max-width: 1200px; background-color: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); border-radius: 12px; overflow: hidden; } .file-manager-header { background-color: #4A90E2; color: #fff; padding: 20px; display: flex; align-items: center; justify-content: space-between; } .file-manager-header h1 { margin: 0; font-size: 24px; } .file-manager-header .controls { display: flex; gap: 15px; } .file-manager-header .controls button { background-color: #fff; color: #4A90E2; border: none; padding: 10px 20px; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } .file-manager-header .controls button:hover { background-color: #e0e0e0; } .file-manager-content { padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; } .file { width: 100px; text-align: center; transition: transform 0.3s; cursor: pointer; } .file:hover { transform: scale(1.1); } .file .icon { font-size: 40px; margin-bottom: 10px; } .file .name { font-size: 14px; color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .tooltip { position: absolute; background-color: #333; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 0.3s; } .file-manager:hover .tooltip { opacity: 1; } </style> </head> <body> <div class="file-manager"> <div class="file-manager-header"> <h1>My File Manager</h1> <div class="controls"> <button id="add-file">Add File 📂</button> <button id="upload-file">Upload File ⬆️</button> </div> </div> <div class="file-manager-content"> <div class="file" data-name="Document"> <div class="icon">📄</div> <div class="name">Document</div> </div> <div class="file" data-name="Music"> <div class="icon">🎵</div> <div class="name">Music</div> </div> <div class="file" data-name="Picture"> <div class="icon">🖼️</div> <div class="name">Picture</div> </div> </div> </div> <div class="tooltip" id="tooltip">Tooltip</div> <script> document.querySelectorAll('.file').forEach(file => { file.addEventListener('mouseenter', (e) => { const tooltip = document.getElementById('tooltip'); tooltip.textContent = e.currentTarget.dataset.name; tooltip.style.left = `${e.pageX + 10}px`; tooltip.style.top = `${e.pageY + 10}px`; }); file.addEventListener('mousemove', (e) => { const tooltip = document.getElementById('tooltip'); tooltip.style.left = `${e.pageX + 10}px`; tooltip.style.top = `${e.pageY + 10}px`; }); file.addEventListener('mouseleave', () => { const tooltip = document.getElementById('tooltip'); tooltip.textContent = ''; }); }); document.getElementById('add-file').addEventListener('click', () => { const name = prompt('Enter file name:'); if (name) { const fileContainer = document.createElement('div'); fileContainer.classList.add('file'); fileContainer.dataset.name = name; fileContainer.innerHTML = ` <div class="icon">📄</div> <div class="name">${name}</div> `; document.querySelector('.file-manager-content').appendChild(fileContainer); fileContainer.addEventListener('mouseenter', (e) => { const tooltip = document.getElementById('tooltip'); tooltip.textContent = e.currentTarget.dataset.name; tooltip.style.left = `${e.pageX + 10}px`; tooltip.style.top = `${e.pageY + 10}px`; }); fileContainer.addEventListener('mousemove', (e) => { const tooltip = document.getElementById('tooltip'); tooltip.style.left = `${e.pageX + 10}px`; tooltip.style.top = `${e.pageY + 10}px`; }); fileContainer.addEventListener('mouseleave', () => { const tooltip = document.getElementById('tooltip'); tooltip.textContent = ''; }); } }); document.getElementById('upload-file').addEventListener('click', () => { alert('Upload feature coming soon!'); }); </script> </body> </html>