File Explorer - 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>File Explorer</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #e3e6e8; margin: 0; padding: 20px; display: flex; justify-content: center; align-items: center; height: 100vh; } .file-explorer { width: 80%; max-width: 900px; background: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; } .file-explorer-header { background: #0078d7; color: #fff; padding: 15px; display: flex; justify-content: space-between; align-items: center; } .file-explorer-header h1 { margin: 0; font-size: 1.2em; } .file-explorer-header .actions { display: flex; align-items: center; } .file-explorer-header .actions i { margin: 0 10px; cursor: pointer; } .file-explorer-body { display: flex; flex: 1; } .file-explorer-sidebar { width: 200px; background: #f1f1f1; padding: 20px; border-right: 1px solid #d0d0d0; } .file-explorer-sidebar ul { list-style: none; padding: 0; margin: 0; } .file-explorer-sidebar ul li { padding: 10px; cursor: pointer; display: flex; align-items: center; transition: background 0.3s; } .file-explorer-sidebar ul li:hover { background: #d0d0d0; } .file-explorer-sidebar ul li i { margin-right: 10px; } .file-explorer-content { flex: 1; padding: 20px; display: none; flex-wrap: wrap; gap: 20px; } .file-explorer-content.active { display: flex; } .file { display: flex; flex-direction: column; align-items: center; width: 100px; text-align: center; } .file i { font-size: 50px; color: #0078d7; margin-bottom: 5px; } .file p { margin: 0; font-size: 0.9em; color: #333; } .file-explorer-footer { padding: 15px; background: #f7f7f7; border-top: 1px solid #d0d0d0; text-align: right; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } </style> </head> <body> <div class="file-explorer"> <div class="file-explorer-header"> <h1>File Explorer</h1> <div class="actions"> <i class="fas fa-folder-plus"></i> <i class="fas fa-sync-alt"></i> <i class="fas fa-cog"></i> <i class="fas fa-times"></i> </div> </div> <div class="file-explorer-body"> <div class="file-explorer-sidebar"> <ul> <li data-section="documents"><i class="fas fa-folder"></i> Documents</li> <li data-section="downloads"><i class="fas fa-folder"></i> Downloads</li> <li data-section="music"><i class="fas fa-folder"></i> Music</li> <li data-section="pictures"><i class="fas fa-folder"></i> Pictures</li> <li data-section="videos"><i class="fas fa-folder"></i> Videos</li> </ul> </div> <div class="file-explorer-content" id="documents"> <div class="file"> <i class="fas fa-file-alt"></i> <p>Document1.txt</p> </div> <div class="file"> <i class="fas fa-file-alt"></i> <p>Document2.txt</p> </div> </div> <div class="file-explorer-content" id="downloads"> <div class="file"> <i class="fas fa-file-download"></i> <p>Download1.zip</p> </div> <div class="file"> <i class="fas fa-file-download"></i> <p>Download2.zip</p> </div> </div> <div class="file-explorer-content" id="music"> <div class="file"> <i class="fas fa-music"></i> <p>Song1.mp3</p> </div> <div class="file"> <i class="fas fa-music"></i> <p>Song2.mp3</p> </div> </div> <div class="file-explorer-content" id="pictures"> <div class="file"> <i class="fas fa-image"></i> <p>Picture1.jpg</p> </div> <div class="file"> <i class="fas fa-image"></i> <p>Picture2.jpg</p> </div> </div> <div class="file-explorer-content" id="videos"> <div class="file"> <i class="fas fa-video"></i> <p>Video1.mp4</p> </div> <div class="file"> <i class="fas fa-video"></i> <p>Video2.mp4</p> </div> </div> </div> <div class="file-explorer-footer"> <p>Windows File Explorer Footer</p> </div> </div> <script> document.querySelectorAll('.file-explorer-sidebar ul li').forEach(function(element) { element.addEventListener('click', function() { document.querySelectorAll('.file-explorer-content').forEach(function(content) { content.classList.remove('active'); }); var section = element.getAttribute('data-section'); document.getElementById(section).classList.add('active'); }); }); // Initialize the first section as active document.querySelector('.file-explorer-sidebar ul li').click(); </script> </body> </html>