Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+737-19
- prompts.txtAdded
12345678910---title: Projectsemoji: 📉colorFrom: bluecolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: projectsemoji: 🐳colorFrom: redcolorTo: greensdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Stock Control System</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"><script>tailwind.config = {theme: {extend: {colors: {primary: '#4F46E5',secondary: '#10B981',danger: '#EF4444',warning: '#F59E0B',info: '#3B82F6'}}}}</script><style>.sidebar {transition: all 0.3s ease;}.sidebar.collapsed {width: 70px;}.sidebar.collapsed .sidebar-text {display: none;}.sidebar.collapsed .logo-text {display: none;}.sidebar.collapsed .nav-item {justify-content: center;}.content {transition: all 0.3s ease;}.sidebar.collapsed + .content {margin-left: 70px;}.chart-container {position: relative;height: 300px;}.notification-badge {position: absolute;top: -5px;right: -5px;}</style></head><body class="bg-gray-100 font-sans"><div class="flex h-screen overflow-hidden"><!-- Sidebar --><div class="sidebar bg-white text-gray-800 shadow-lg w-64 flex flex-col fixed h-full"><div class="p-4 flex items-center border-b border-gray-200"><div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center text-white font-bold"><i class="fas fa-boxes"></i></div><span class="logo-text ml-3 text-xl font-semibold">StockMaster</span></div><div class="flex-1 overflow-y-auto py-4"><div class="px-4 mb-8"><div class="relative"><input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><i class="fas fa-search absolute left-3 top-3 text-gray-400"></i></div></div><nav><div class="px-2"><a href="#" class="nav-item flex items-center px-4 py-3 text-primary bg-primary bg-opacity-10 rounded-lg mb-1"><i class="fas fa-tachometer-alt"></i><span class="sidebar-text ml-3">Dashboard</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-box-open"></i><span class="sidebar-text ml-3">Products</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-warehouse"></i><span class="sidebar-text ml-3">Inventory</span><span class="ml-auto bg-danger text-white text-xs font-bold px-2 py-1 rounded-full">3</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-truck"></i><span class="sidebar-text ml-3">Suppliers</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-file-invoice-dollar"></i><span class="sidebar-text ml-3">Orders</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-chart-line"></i><span class="sidebar-text ml-3">Reports</span></a><a href="#" class="nav-item flex items-center px-4 py-3 text-gray-600 hover:bg-gray-100 rounded-lg mb-1"><i class="fas fa-cog"></i><span class="sidebar-text ml-3">Settings</span></a></div></nav></div><div class="p-4 border-t border-gray-200"><div class="flex items-center"><div class="w-10 h-10 rounded-full bg-gray-300 flex items-center justify-center"><i class="fas fa-user text-gray-600"></i></div><div class="ml-3"><div class="text-sm font-medium">Admin User</div><div class="text-xs text-gray-500">admin@example.com</div></div><button class="ml-auto text-gray-500 hover:text-gray-700"><i class="fas fa-sign-out-alt"></i></button></div></div></div><!-- Main Content --><div class="content flex-1 flex flex-col overflow-hidden ml-64"><!-- Top Navigation --><header class="bg-white shadow-sm py-4 px-6 flex items-center justify-between"><div class="flex items-center"><button id="sidebarToggle" class="text-gray-500 hover:text-gray-700 mr-4"><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"><button class="text-gray-500 hover:text-gray-700"><i class="fas fa-bell"></i><span class="notification-badge bg-danger text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">5</span></button></div><div class="relative"><button class="text-gray-500 hover:text-gray-700"><i class="fas fa-envelope"></i><span class="notification-badge bg-secondary text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">2</span></button></div><div class="w-8 h-8 rounded-full bg-gray-300 flex items-center justify-center"><i class="fas fa-user text-gray-600"></i></div></div></header><!-- Main Content Area --><main class="flex-1 overflow-y-auto p-6 bg-gray-50"><!-- Stats Cards --><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6"><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center"><div class="p-3 rounded-full bg-primary bg-opacity-10 text-primary mr-4"><i class="fas fa-box-open text-xl"></i></div><div><p class="text-sm text-gray-500">Total Products</p><h3 class="text-2xl font-bold">1,248</h3></div></div><div class="mt-4"><span class="text-sm text-green-500 font-medium"><i class="fas fa-arrow-up mr-1"></i> 12.5%</span><span class="text-sm text-gray-500 ml-2">vs last month</span></div></div><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center"><div class="p-3 rounded-full bg-secondary bg-opacity-10 text-secondary mr-4"><i class="fas fa-warehouse text-xl"></i></div><div><p class="text-sm text-gray-500">Inventory Value</p><h3 class="text-2xl font-bold">$245,678</h3></div></div><div class="mt-4"><span class="text-sm text-green-500 font-medium"><i class="fas fa-arrow-up mr-1"></i> 8.3%</span><span class="text-sm text-gray-500 ml-2">vs last month</span></div></div><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center"><div class="p-3 rounded-full bg-warning bg-opacity-10 text-warning mr-4"><i class="fas fa-exclamation-triangle text-xl"></i></div><div><p class="text-sm text-gray-500">Low Stock Items</p><h3 class="text-2xl font-bold">24</h3></div></div><div class="mt-4"><span class="text-sm text-red-500 font-medium"><i class="fas fa-arrow-up mr-1"></i> 3.2%</span><span class="text-sm text-gray-500 ml-2">vs last month</span></div></div><div class="bg-white rounded-lg shadow p-6"><div class="flex items-center"><div class="p-3 rounded-full bg-info bg-opacity-10 text-info mr-4"><i class="fas fa-truck text-xl"></i></div><div><p class="text-sm text-gray-500">Pending Orders</p><h3 class="text-2xl font-bold">15</h3></div></div><div class="mt-4"><span class="text-sm text-green-500 font-medium"><i class="fas fa-arrow-down mr-1"></i> 5.7%</span><span class="text-sm text-gray-500 ml-2">vs last month</span></div></div></div><!-- Charts and Tables --><div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"><!-- Inventory Chart --><div class="bg-white rounded-lg shadow p-6 lg:col-span-2"><div class="flex items-center justify-between mb-4"><h2 class="text-lg font-semibold text-gray-800">Inventory Overview</h2><div class="flex space-x-2"><button class="px-3 py-1 text-xs bg-primary text-white rounded-md">Month</button><button class="px-3 py-1 text-xs bg-gray-200 text-gray-700 rounded-md">Quarter</button><button class="px-3 py-1 text-xs bg-gray-200 text-gray-700 rounded-md">Year</button></div></div><div class="chart-container"><canvas id="inventoryChart"></canvas></div></div><!-- Recent Activities --><div class="bg-white rounded-lg shadow p-6"><h2 class="text-lg font-semibold text-gray-800 mb-4">Recent Activities</h2><div class="space-y-4"><div class="flex items-start"><div class="p-2 rounded-full bg-primary bg-opacity-10 text-primary mr-3"><i class="fas fa-box text-sm"></i></div><div><p class="text-sm font-medium">New product added</p><p class="text-xs text-gray-500">"Premium Headphones" added to inventory</p><p class="text-xs text-gray-400 mt-1">2 hours ago</p></div></div><div class="flex items-start"><div class="p-2 rounded-full bg-secondary bg-opacity-10 text-secondary mr-3"><i class="fas fa-truck text-sm"></i></div><div><p class="text-sm font-medium">Order received</p><p class="text-xs text-gray-500">Order #ORD-4567 from TechSupplies Inc.</p><p class="text-xs text-gray-400 mt-1">5 hours ago</p></div></div><div class="flex items-start"><div class="p-2 rounded-full bg-warning bg-opacity-10 text-warning mr-3"><i class="fas fa-exclamation-triangle text-sm"></i></div><div><p class="text-sm font-medium">Low stock alert</p><p class="text-xs text-gray-500">"Wireless Mouse" stock below threshold</p><p class="text-xs text-gray-400 mt-1">1 day ago</p></div></div><div class="flex items-start"><div class="p-2 rounded-full bg-info bg-opacity-10 text-info mr-3"><i class="fas fa-file-invoice-dollar text-sm"></i></div><div><p class="text-sm font-medium">New invoice</p><p class="text-xs text-gray-500">Invoice #INV-7890 generated</p><p class="text-xs text-gray-400 mt-1">2 days ago</p></div></div></div><button class="mt-4 text-sm text-primary font-medium flex items-center">View All Activities <i class="fas fa-chevron-right ml-1 text-xs"></i></button></div></div><!-- Products Table --><div class="bg-white rounded-lg shadow overflow-hidden mb-6"><div class="p-6 flex items-center justify-between"><h2 class="text-lg font-semibold text-gray-800">Product Inventory</h2><div class="flex space-x-3"><button class="px-4 py-2 bg-primary text-white rounded-md flex items-center"><i class="fas fa-plus mr-2"></i> Add Product</button><button class="px-4 py-2 border border-gray-300 text-gray-700 rounded-md flex items-center"><i class="fas fa-filter mr-2"></i> Filter</button></div></div><div class="overflow-x-auto"><table class="min-w-full divide-y divide-gray-200"><thead class="bg-gray-50"><tr><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Product</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">SKU</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Category</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Stock</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th><th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th><th scope="col" class="px-6 py-3 text-right 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"><div class="flex items-center"><div class="flex-shrink-0 h-10 w-10 bg-gray-200 rounded-md flex items-center justify-center"><i class="fas fa-laptop text-gray-500"></i></div><div class="ml-4"><div class="text-sm font-medium text-gray-900">MacBook Pro 16"</div><div class="text-sm text-gray-500">Apple</div></div></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">MBP16-2023</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Laptops</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">42</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$2,499.00</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">In Stock</span></td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"><button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-edit"></i></button><button class="text-danger hover:text-danger-dark"><i class="fas fa-trash"></i></button></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="flex items-center"><div class="flex-shrink-0 h-10 w-10 bg-gray-200 rounded-md flex items-center justify-center"><i class="fas fa-mobile-alt text-gray-500"></i></div><div class="ml-4"><div class="text-sm font-medium text-gray-900">iPhone 14 Pro</div><div class="text-sm text-gray-500">Apple</div></div></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">IP14P-2022</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Smartphones</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">87</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$999.00</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">In Stock</span></td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"><button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-edit"></i></button><button class="text-danger hover:text-danger-dark"><i class="fas fa-trash"></i></button></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="flex items-center"><div class="flex-shrink-0 h-10 w-10 bg-gray-200 rounded-md flex items-center justify-center"><i class="fas fa-headphones text-gray-500"></i></div><div class="ml-4"><div class="text-sm font-medium text-gray-900">Wireless Headphones</div><div class="text-sm text-gray-500">Sony</div></div></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">WH-SONY-100</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Audio</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$349.00</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Low Stock</span></td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"><button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-edit"></i></button><button class="text-danger hover:text-danger-dark"><i class="fas fa-trash"></i></button></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="flex items-center"><div class="flex-shrink-0 h-10 w-10 bg-gray-200 rounded-md flex items-center justify-center"><i class="fas fa-tablet-alt text-gray-500"></i></div><div class="ml-4"><div class="text-sm font-medium text-gray-900">iPad Air</div><div class="text-sm text-gray-500">Apple</div></div></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">IPA-2023</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Tablets</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">0</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$599.00</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Out of Stock</span></td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"><button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-edit"></i></button><button class="text-danger hover:text-danger-dark"><i class="fas fa-trash"></i></button></td></tr><tr><td class="px-6 py-4 whitespace-nowrap"><div class="flex items-center"><div class="flex-shrink-0 h-10 w-10 bg-gray-200 rounded-md flex items-center justify-center"><i class="fas fa-mouse text-gray-500"></i></div><div class="ml-4"><div class="text-sm font-medium text-gray-900">Wireless Mouse</div><div class="text-sm text-gray-500">Logitech</div></div></div></td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">WM-LOGI-200</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Accessories</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3</td><td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$49.99</td><td class="px-6 py-4 whitespace-nowrap"><span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Low Stock</span></td><td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"><button class="text-primary hover:text-primary-dark mr-3"><i class="fas fa-edit"></i></button><button class="text-danger hover:text-danger-dark"><i class="fas fa-trash"></i></button></td></tr></tbody></table></div><div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between"><div class="text-sm text-gray-500">Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">24</span> results</div><div class="flex space-x-2"><button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Previous</button><button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-primary hover:bg-primary-dark">1</button><button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">2</button><button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">3</button><button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50">Next</button></div></div></div><!-- Quick Actions --><div class="grid grid-cols-1 md:grid-cols-3 gap-6"><div class="bg-white rounded-lg shadow p-6"><h2 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h2><div class="grid grid-cols-2 gap-4"><button class="p-4 border border-gray-200 rounded-lg flex flex-col items-center hover:bg-gray-50"><div class="w-10 h-10 rounded-full bg-primary bg-opacity-10 text-primary flex items-center justify-center mb-2"><i class="fas fa-plus"></i></div><span class="text-sm font-medium">Add Product</span></button><button class="p-4 border border-gray-200 rounded-lg flex flex-col items-center hover:bg-gray-50"><div class="w-10 h-10 rounded-full bg-secondary bg-opacity-10 text-secondary flex items-center justify-center mb-2"><i class="fas fa-truck"></i></div><span class="text-sm font-medium">Receive Stock</span></button><button class="p-4 border border-gray-200 rounded-lg flex flex-col items-center hover:bg-gray-50"><div class="w-10 h-10 rounded-full bg-warning bg-opacity-10 text-warning flex items-center justify-center mb-2"><i class="fas fa-exchange-alt"></i></div><span class="text-sm font-medium">Transfer</span></button><button class="p-4 border border-gray-200 rounded-lg flex flex-col items-center hover:bg-gray-50"><div class="w-10 h-10 rounded-full bg-info bg-opacity-10 text-info flex items-center justify-center mb-2"><i class="fas fa-file-export"></i></div><span class="text-sm font-medium">Export Data</span></button></div></div><!-- Low Stock Items --><div class="bg-white rounded-lg shadow p-6 md:col-span-2"><div class="flex items-center justify-between mb-4"><h2 class="text-lg font-semibold text-gray-800">Low Stock Items</h2><button class="text-sm text-primary font-medium">View All</button></div><div class="space-y-4"><div class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg"><div class="flex items-center"><div class="w-10 h-10 bg-gray-200 rounded-md flex items-center justify-center mr-3"><i class="fas fa-headphones text-gray-500"></i></div><div><p class="text-sm font-medium">Wireless Headphones</p><p class="text-xs text-gray-500">SKU: WH-SONY-100</p></div></div><div class="text-right"><p class="text-sm font-medium text-yellow-800">5 in stock</p><p class="text-xs text-gray-500">Threshold: 10</p></div></div><div class="flex items-center justify-between p-3 bg-yellow-50 rounded-lg"><div class="flex items-center"><div class="w-10 h-10 bg-gray-200 rounded-md flex items-center justify-center mr-3"><i class="fas fa-mouse text-gray-500"></i></div><div><p class="text-sm font-medium">Wireless Mouse</p><p class="text-xs text-gray-500">SKU: WM-LOGI-200</p></div></div><div class="text-right"><p class="text-sm font-medium text-yellow-800">3 in stock</p><p class="text-xs text-gray-500">Threshold: 10</p></div></div><div class="flex items-center justify-between p-3 bg-red-50 rounded-lg"><div class="flex items-center"><div class="w-10 h-10 bg-gray-200 rounded-md flex items-center justify-center mr-3"><i class="fas fa-tablet-alt text-gray-500"></i></div><div><p class="text-sm font-medium">iPad Air</p><p class="text-xs text-gray-500">SKU: IPA-2023</p></div></div><div class="text-right"><p class="text-sm font-medium text-red-800">Out of stock</p><p class="text-xs text-gray-500">Threshold: 5</p></div></div></div><button class="mt-4 w-full py-2 border border-primary text-primary rounded-md hover:bg-primary hover:text-white transition-colors">Reorder Items</button></div></div></main></div></div><!-- Add Product Modal --><div id="addProductModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white rounded-lg shadow-xl w-full max-w-2xl"><div class="p-6 border-b border-gray-200"><h3 class="text-lg font-semibold text-gray-800">Add New Product</h3></div><div class="p-6"><form><div class="grid grid-cols-1 md:grid-cols-2 gap-6"><div><label class="block text-sm font-medium text-gray-700 mb-1">Product Name</label><input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div><label class="block text-sm font-medium text-gray-700 mb-1">SKU</label><input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Category</label><select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"><option>Select Category</option><option>Laptops</option><option>Smartphones</option><option>Tablets</option><option>Audio</option><option>Accessories</option></select></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Brand</label><input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Purchase Price</label><div class="relative"><span class="absolute left-3 top-2">$</span><input type="text" class="w-full pl-8 pr-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Selling Price</label><div class="relative"><span class="absolute left-3 top-2">$</span><input type="text" class="w-full pl-8 pr-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Initial Stock</label><input type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div><label class="block text-sm font-medium text-gray-700 mb-1">Low Stock Threshold</label><input type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></div><div class="md:col-span-2"><label class="block text-sm font-medium text-gray-700 mb-1">Description</label><textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent"></textarea></div><div class="md:col-span-2"><label class="block text-sm font-medium text-gray-700 mb-1">Product Image</label><div class="mt-1 flex items-center"><span class="inline-block h-20 w-20 rounded-md overflow-hidden bg-gray-100 flex items-center justify-center"><i class="fas fa-camera text-gray-400 text-xl"></i></span><button type="button" class="ml-5 bg-white py-2 px-3 border border-gray-300 rounded-md shadow-sm text-sm leading-4 font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">Upload</button></div></div></div></form></div><div class="p-6 border-t border-gray-200 flex justify-end space-x-3"><button type="button" class="px-4 py-2 border border-gray-300 text-gray-700 rounded-md hover:bg-gray-50">Cancel</button><button type="button" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary-dark">Save Product</button></div></div></div><script src="https://cdn.jsdelivr.net/npm/chart.js"></script><script>// Toggle sidebardocument.getElementById('sidebarToggle').addEventListener('click', function() {document.querySelector('.sidebar').classList.toggle('collapsed');});// Inventory Chartconst inventoryCtx = document.getElementById('inventoryChart').getContext('2d');const inventoryChart = new Chart(inventoryCtx, {type: 'bar',data: {labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],datasets: [{label: 'Products In',data: [45, 60, 75, 50, 65, 80, 70],backgroundColor: '#10B981',borderRadius: 4},{label: 'Products Out',data: [30, 40, 55, 35, 45, 60, 50],backgroundColor: '#3B82F6',borderRadius: 4}]},options: {responsive: true,maintainAspectRatio: false,plugins: {legend: {position: 'top',},tooltip: {mode: 'index',intersect: false,}},scales: {x: {grid: {display: false}},y: {beginAtZero: true,grid: {drawBorder: false}}}}});// Simulate data updatessetInterval(() => {inventoryChart.data.datasets.forEach(dataset => {dataset.data = dataset.data.map(value => {const change = Math.floor(Math.random() * 10) - 3;return Math.max(0, value + change);});});inventoryChart.update();}, 5000);// Modal handlingconst addButtons = document.querySelectorAll('[data-modal-toggle="addProductModal"]');const modal = document.getElementById('addProductModal');const closeButtons = document.querySelectorAll('[data-modal-hide="addProductModal"]');addButtons.forEach(button => {button.addEventListener('click', () => {modal.classList.remove('hidden');});});closeButtons.forEach(button => {button.addEventListener('click', () => {modal.classList.add('hidden');});});// Close modal when clicking outsidewindow.addEventListener('click', (event) => {if (event.target === modal) {modal.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=ltaimo/projects" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
README.md+7-5
index.html+737-19
prompts.txtAdded