download-manager / index.html
dansmight's picture
undefined - Initial Deployment
7bf1c65 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download Manager Pro</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.drag-area {
border: 2px dashed #ccc;
transition: all 0.3s;
}
.drag-area.active {
border-color: #4f46e5;
background-color: #eef2ff;
}
.folder-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.progress-bar {
transition: width 0.3s ease;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #c7d2fe;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a5b4fc;
}
</style>
</head>
<body class="bg-gray-50 text-gray-800">
<div class="min-h-screen flex flex-col">
<!-- Header -->
<header class="bg-indigo-600 text-white shadow-md">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-download text-2xl"></i>
<h1 class="text-2xl font-bold">Download Manager Pro</h1>
</div>
<div class="flex items-center space-x-4">
<button class="px-4 py-2 bg-indigo-700 rounded-lg hover:bg-indigo-800 transition">
<i class="fas fa-cog mr-2"></i>Settings
</button>
<div class="relative">
<button id="notif-btn" class="p-2 rounded-full hover:bg-indigo-700 transition">
<i class="fas fa-bell"></i>
<span class="absolute top-0 right-0 h-3 w-3 bg-red-500 rounded-full"></span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-6">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Sidebar -->
<div class="lg:col-span-1 space-y-6">
<!-- Quick Stats -->
<div class="bg-white rounded-xl shadow p-4">
<h2 class="font-semibold text-lg mb-3 text-indigo-700">Quick Stats</h2>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-gray-600">Total Downloads:</span>
<span class="font-medium">1,248</span>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-600">Sorted Today:</span>
<span class="font-medium">24</span>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-600">Storage Used:</span>
<span class="font-medium">78.5 GB</span>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-xl shadow p-4">
<h2 class="font-semibold text-lg mb-3 text-indigo-700">Quick Actions</h2>
<div class="space-y-2">
<button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
<i class="fas fa-plus"></i>
<span>New Sorting Rule</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
<i class="fas fa-folder-plus"></i>
<span>Create New Folder</span>
</button>
<button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
<i class="fas fa-search"></i>
<span>Find Duplicates</span>
</button>
</div>
</div>
<!-- Folder List -->
<div class="bg-white rounded-xl shadow p-4">
<div class="flex justify-between items-center mb-3">
<h2 class="font-semibold text-lg text-indigo-700">Folders</h2>
<button class="text-indigo-600 hover:text-indigo-800">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="space-y-2 max-h-64 overflow-y-auto">
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-yellow-400"></i>
<span>Downloads</span>
<span class="ml-auto text-sm text-gray-500">128</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-blue-400"></i>
<span>Documents</span>
<span class="ml-auto text-sm text-gray-500">42</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-green-400"></i>
<span>Images</span>
<span class="ml-auto text-sm text-gray-500">356</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-red-400"></i>
<span>Videos</span>
<span class="ml-auto text-sm text-gray-500">87</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-purple-400"></i>
<span>Music</span>
<span class="ml-auto text-sm text-gray-500">63</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-pink-400"></i>
<span>Archives</span>
<span class="ml-auto text-sm text-gray-500">29</span>
</div>
<div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
<i class="fas fa-folder text-indigo-400"></i>
<span>AI_Projects</span>
<span class="ml-auto text-sm text-gray-500">5</span>
</div>
</div>
</div>
</div>
<!-- Main Panel -->
<div class="lg:col-span-3 space-y-6">
<!-- Current Downloads -->
<div class="bg-white rounded-xl shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="font-semibold text-xl text-indigo-700">Current Downloads</h2>
<div class="flex space-x-2">
<button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
<i class="fas fa-sync-alt"></i>
</button>
<button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
<i class="fas fa-filter"></i>
</button>
</div>
</div>
<div class="space-y-4">
<!-- Download Item -->
<div class="border rounded-lg p-3 hover:bg-gray-50 transition">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 flex items-center justify-center bg-indigo-100 text-indigo-600 rounded-lg">
<i class="fas fa-file-pdf"></i>
</div>
<div class="flex-grow">
<div class="flex justify-between items-center">
<h3 class="font-medium">Project_Proposal.pdf</h3>
<span class="text-sm text-gray-500">12.5 MB</span>
</div>
<div class="text-sm text-gray-500">From: drive.google.com</div>
<div class="mt-2">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-indigo-600 h-2 rounded-full progress-bar" style="width: 65%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>65%</span>
<span>ETA: 2 min</span>
</div>
</div>
</div>
<div class="flex space-x-2">
<button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
<i class="fas fa-pause"></i>
</button>
<button class="p-2 text-red-600 hover:bg-red-50 rounded-lg">
<i class="fas fa-times"></i>
</button>
</div>
</div>
</div>
<!-- Download Item -->
<div class="border rounded-lg p-3 hover:bg-gray-50 transition">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 flex items-center justify-center bg-blue-100 text-blue-600 rounded-lg">
<i class="fas fa-file-archive"></i>
</div>
<div class="flex-grow">
<div class="flex justify-between items-center">
<h3 class="font-medium">dataset_v2.zip</h3>
<span class="text-sm text-gray-500">1.2 GB</span>
</div>
<div class="text-sm text-gray-500">From: github.com</div>
<div class="mt-2">
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-600 h-2 rounded-full progress-bar" style="width: 32%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>32%</span>
<span>ETA: 8 min</span>
</div>
</div>
</div>
<div class="flex space-x-2">
<button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
<i class="fas fa-pause"></i>
</button>
<button class="p-2 text-red-600 hover:bg-red-50 rounded-lg">
<i class="fas fa-times"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Sorting Rules -->
<div class="bg-white rounded-xl shadow p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="font-semibold text-xl text-indigo-700">Sorting Rules</h2>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
<i class="fas fa-plus mr-2"></i>Add Rule
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rule Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Condition</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destination</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap">Midjourney AI</td>
<td class="px-6 py-4 whitespace-nowrap">Source contains: midjourney.com</td>
<td class="px-6 py-4 whitespace-nowrap">AI_Projects/Midjourney</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Runway ML</td>
<td class="px-6 py-4 whitespace-nowrap">Source contains: runwayml.com</td>
<td class="px-6 py-4 whitespace-nowrap">AI_Projects/Runway</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">VEO AI</td>
<td class="px-6 py-4 whitespace-nowrap">Source contains: veo.ai</td>
<td class="px-6 py-4 whitespace-nowrap">AI_Projects/VEO</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Kling AI</td>
<td class="px-6 py-4 whitespace-nowrap">Source contains: kling.com</td>
<td class="px-6 py-4 whitespace-nowrap">AI_Projects/Kling</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap">Luma AI</td>
<td class="px-6 py-4 whitespace-nowrap">Source contains: luma.ai</td>
<td class="px-6 py-4 whitespace-nowrap">AI_Projects/Luma</td>
<td class="px-6 py-4 whitespace-nowrap">
<button class="text-indigo-600 hover:text-indigo-900 mr-3">
<i class="fas fa-edit"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Quick Sort -->
<div class="bg-white rounded-xl shadow p-6">
<h2 class="font-semibold text-xl text-indigo-700 mb-4">Quick Sort</h2>
<div class="drag-area p-8 text-center rounded-lg cursor-pointer transition" id="dragArea">
<i class="fas fa-cloud-upload-alt text-4xl text-indigo-500 mb-3"></i>
<h3 class="text-lg font-medium mb-1">Drag & Drop Files to Sort</h3>
<p class="text-gray-500 mb-4">or click to browse your files</p>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
Select Files
</button>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-white border-t py-4">
<div class="container mx-auto px-4 text-center text-gray-500 text-sm">
<p>Download Manager Pro v1.0.0 | © 2023 All Rights Reserved</p>
</div>
</footer>
</div>
<script>
// Drag and drop functionality
const dragArea = document.getElementById('dragArea');
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
dragArea.addEventListener(eventName, preventDefaults, false);
});
function preventDefaults(e) {
e.preventDefault();
e.stopPropagation();
}
['dragenter', 'dragover'].forEach(eventName => {
dragArea.addEventListener(eventName, highlight, false);
});
['dragleave', 'drop'].forEach(eventName => {
dragArea.addEventListener(eventName, unhighlight, false);
});
function highlight() {
dragArea.classList.add('active');
}
function unhighlight() {
dragArea.classList.remove('active');
}
dragArea.addEventListener('drop', handleDrop, false);
function handleDrop(e) {
const dt = e.dataTransfer;
const files = dt.files;
handleFiles(files);
}
function handleFiles(files) {
alert(`Processing ${files.length} file(s) for sorting...`);
// Here you would normally process the files
}
// Simulate download progress
setInterval(() => {
const progressBars = document.querySelectorAll('.progress-bar');
progressBars.forEach(bar => {
const currentWidth = parseInt(bar.style.width);
if (currentWidth < 100) {
const newWidth = Math.min(currentWidth + Math.random() * 5, 100);
bar.style.width = `${newWidth}%`;
bar.previousElementSibling.textContent = `${Math.floor(newWidth)}%`;
}
});
}, 1000);
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dansmight/download-manager" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>