Spaces:
Running
Running
Download index.html from machuabo07/shop: direct link, hf CLI and curl.
- Browser
- Download file 25.2 kB
-
https://huggingface.co/spaces/machuabo07/shop/resolve/main/index.html
- Command line
-
hf download hf://spaces/machuabo07/shop/index.html
-
curl -L -o index.html https://huggingface.co/spaces/machuabo07/shop/resolve/main/index.html
25.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PrintShop Manager</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> | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| @media (max-width: 768px) { | |
| .sidebar { | |
| transform: translateX(-100%); | |
| position: absolute; | |
| z-index: 50; | |
| height: 100vh; | |
| } | |
| .sidebar.open { | |
| transform: translateX(0); | |
| } | |
| } | |
| .dashboard-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0,0,0,0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar bg-blue-800 text-white w-64 flex-shrink-0"> | |
| <div class="p-4 flex items-center justify-between border-b border-blue-700"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-print text-2xl"></i> | |
| <span class="text-xl font-bold">PrintShop Manager</span> | |
| </div> | |
| <button id="closeSidebar" class="md:hidden text-xl"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <nav class="p-4"> | |
| <div class="mb-8"> | |
| <p class="text-blue-300 uppercase text-xs font-bold mb-2">Main</p> | |
| <a href="#" class="block py-2 px-3 rounded bg-blue-700 mb-1"> | |
| <i class="fas fa-tachometer-alt mr-2"></i> Dashboard | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-shopping-cart mr-2"></i> Sales | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-boxes mr-2"></i> Inventory | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-money-bill-wave mr-2"></i> Cash Flow | |
| </a> | |
| </div> | |
| <div class="mb-8"> | |
| <p class="text-blue-300 uppercase text-xs font-bold mb-2">Management</p> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-tshirt mr-2"></i> Services | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-tags mr-2"></i> Categories | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-users mr-2"></i> Employees | |
| </a> | |
| </div> | |
| <div> | |
| <p class="text-blue-300 uppercase text-xs font-bold mb-2">Reports</p> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-chart-line mr-2"></i> Daily Reports | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded hover:bg-blue-700 mb-1"> | |
| <i class="fas fa-chart-pie mr-2"></i> Profit/Loss | |
| </a> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm z-10"> | |
| <div class="flex items-center justify-between p-4"> | |
| <div class="flex items-center"> | |
| <button id="toggleSidebar" class="md:hidden mr-4 text-xl"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i class="fas fa-bell text-gray-500 text-xl"></i> | |
| <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span> | |
| </div> | |
| <div class="flex items-center"> | |
| <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="h-8 w-8 rounded-full mr-2"> | |
| <span class="text-sm font-medium">Jane Smith</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="flex-1 overflow-y-auto p-4 bg-gray-50"> | |
| <!-- Dashboard Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6"> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Today's Sales</p> | |
| <h3 class="text-2xl font-bold text-blue-600">$1,245</h3> | |
| </div> | |
| <div class="bg-blue-100 p-3 rounded-full"> | |
| <i class="fas fa-dollar-sign text-blue-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 12% from yesterday</p> | |
| </div> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Services Completed</p> | |
| <h3 class="text-2xl font-bold text-green-600">24</h3> | |
| </div> | |
| <div class="bg-green-100 p-3 rounded-full"> | |
| <i class="fas fa-tshirt text-green-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 5 more than yesterday</p> | |
| </div> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Low Stock Items</p> | |
| <h3 class="text-2xl font-bold text-yellow-600">8</h3> | |
| </div> | |
| <div class="bg-yellow-100 p-3 rounded-full"> | |
| <i class="fas fa-box-open text-yellow-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <p class="text-red-500 text-sm mt-2"><i class="fas fa-exclamation-circle mr-1"></i> Needs attention</p> | |
| </div> | |
| <div class="dashboard-card bg-white rounded-lg shadow p-6 transition duration-300"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-gray-500 text-sm">Monthly Profit</p> | |
| <h3 class="text-2xl font-bold text-purple-600">$8,745</h3> | |
| </div> | |
| <div class="bg-purple-100 p-3 rounded-full"> | |
| <i class="fas fa-chart-line text-purple-600 text-xl"></i> | |
| </div> | |
| </div> | |
| <p class="text-green-500 text-sm mt-2"><i class="fas fa-arrow-up mr-1"></i> 18% from last month</p> | |
| </div> | |
| </div> | |
| <!-- Recent Sales and Quick Actions --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> | |
| <!-- Recent Sales --> | |
| <div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Recent Sales</h2> | |
| </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">ID</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Employee</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#10045</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Today, 10:30 AM</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">T-Shirt Printing</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$125.00</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jane Smith</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#10044</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Today, 9:15 AM</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Office Supplies</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$45.50</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Doe</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#10043</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Today, 8:45 AM</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Document Copying</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$12.00</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jane Smith</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-blue-600">#10042</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Yesterday, 4:30 PM</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Banner Printing</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">$85.75</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Doe</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="p-4 border-t border-gray-200 text-center"> | |
| <a href="#" class="text-blue-600 hover:text-blue-800 text-sm font-medium">View All Sales</a> | |
| </div> | |
| </div> | |
| <!-- Quick Actions --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Quick Actions</h2> | |
| </div> | |
| <div class="p-4 space-y-4"> | |
| <button class="w-full flex items-center justify-between p-3 bg-blue-50 rounded-lg hover:bg-blue-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-plus text-blue-600"></i> | |
| </div> | |
| <span class="font-medium">New Sale</span> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-green-50 rounded-lg hover:bg-green-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-green-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-box text-green-600"></i> | |
| </div> | |
| <span class="font-medium">Add Inventory</span> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-purple-50 rounded-lg hover:bg-purple-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-purple-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-file-invoice-dollar text-purple-600"></i> | |
| </div> | |
| <span class="font-medium">Record Expense</span> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| <button class="w-full flex items-center justify-between p-3 bg-yellow-50 rounded-lg hover:bg-yellow-100 transition"> | |
| <div class="flex items-center"> | |
| <div class="bg-yellow-100 p-2 rounded-full mr-3"> | |
| <i class="fas fa-chart-pie text-yellow-600"></i> | |
| </div> | |
| <span class="font-medium">Generate Report</span> | |
| </div> | |
| <i class="fas fa-chevron-right text-gray-400"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Low Stock Items --> | |
| <div class="mt-6 bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="p-4 border-b border-gray-200 flex justify-between items-center"> | |
| <h2 class="text-lg font-semibold text-gray-800">Low Stock Items</h2> | |
| <a href="#" class="text-sm text-blue-600 hover:text-blue-800">View All Inventory</a> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 p-4"> | |
| <div class="border border-red-100 rounded-lg p-4 bg-red-50"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-medium">A4 Paper (500 sheets)</h3> | |
| <p class="text-sm text-gray-600">Office Supplies</p> | |
| </div> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Low Stock</span> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Stock Level</span> | |
| <span class="font-medium">3</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-red-500 h-2 rounded-full" style="width: 15%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border border-yellow-100 rounded-lg p-4 bg-yellow-50"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-medium">Black Ink Cartridge</h3> | |
| <p class="text-sm text-gray-600">Printing</p> | |
| </div> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Warning</span> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Stock Level</span> | |
| <span class="font-medium">5</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 25%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border border-yellow-100 rounded-lg p-4 bg-yellow-50"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-medium">White T-Shirts (M)</h3> | |
| <p class="text-sm text-gray-600">Apparel</p> | |
| </div> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Warning</span> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Stock Level</span> | |
| <span class="font-medium">7</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-yellow-500 h-2 rounded-full" style="width: 35%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border border-red-100 rounded-lg p-4 bg-red-50"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-medium">Glossy Photo Paper</h3> | |
| <p class="text-sm text-gray-600">Printing</p> | |
| </div> | |
| <span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Low Stock</span> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm mb-1"> | |
| <span>Stock Level</span> | |
| <span class="font-medium">2</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-red-500 h-2 rounded-full" style="width: 10%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <!-- Login Modal (Hidden by default) --> | |
| <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-white rounded-lg shadow-xl w-full max-w-md"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-2xl font-bold text-gray-800">Login</h2> | |
| <button id="closeLoginModal" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form> | |
| <div class="mb-4"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="username"> | |
| Username | |
| </label> | |
| <input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="username" type="text" placeholder="Username"> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 text-sm font-bold mb-2" for="password"> | |
| Password | |
| </label> | |
| <input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline" id="password" type="password" placeholder="Password"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline w-full" type="button"> | |
| Sign In | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle sidebar on mobile | |
| document.getElementById('toggleSidebar').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.add('open'); | |
| }); | |
| document.getElementById('closeSidebar').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.remove('open'); | |
| }); | |
| // Show login modal (for demo purposes, would normally show on page load) | |
| setTimeout(function() { | |
| document.getElementById('loginModal').classList.remove('hidden'); | |
| }, 1000); | |
| document.getElementById('closeLoginModal').addEventListener('click', function() { | |
| document.getElementById('loginModal').classList.add('hidden'); | |
| }); | |
| // Close modal when clicking outside | |
| document.getElementById('loginModal').addEventListener('click', function(e) { | |
| if (e.target === this) { | |
| this.classList.add('hidden'); | |
| } | |
| }); | |
| </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=machuabo07/shop" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |