kam33 commited on
Commit
2c31f0c
·
verified ·
1 Parent(s): b71e4b1

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +641 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Artmoh
3
- emoji: 💻
4
- colorFrom: red
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: artmoh
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,641 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LuxLeather - Sales & Inventory System</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
10
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
11
+ <style>
12
+ .sidebar {
13
+ transition: all 0.3s;
14
+ }
15
+ .sidebar.collapsed {
16
+ width: 70px;
17
+ }
18
+ .sidebar.collapsed .sidebar-text {
19
+ display: none;
20
+ }
21
+ .sidebar.collapsed .logo-text {
22
+ display: none;
23
+ }
24
+ .sidebar.collapsed .nav-item {
25
+ justify-content: center;
26
+ }
27
+ .product-card:hover {
28
+ transform: translateY(-5px);
29
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
30
+ }
31
+ .chart-container {
32
+ height: 300px;
33
+ }
34
+ @media print {
35
+ .no-print {
36
+ display: none !important;
37
+ }
38
+ }
39
+ </style>
40
+ </head>
41
+ <body class="bg-gray-50 font-sans">
42
+ <div class="flex h-screen overflow-hidden">
43
+ <!-- Sidebar -->
44
+ <div class="sidebar bg-indigo-800 text-white w-64 flex flex-col">
45
+ <div class="p-4 flex items-center space-x-2 border-b border-indigo-700">
46
+ <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center">
47
+ <i class="fas fa-box-open text-xl"></i>
48
+ </div>
49
+ <span class="logo-text text-xl font-bold">LuxLeather</span>
50
+ </div>
51
+
52
+ <div class="flex-1 overflow-y-auto py-4">
53
+ <div class="px-4 space-y-1">
54
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg bg-indigo-700">
55
+ <i class="fas fa-tachometer-alt"></i>
56
+ <span class="sidebar-text">Dashboard</span>
57
+ </a>
58
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
59
+ <i class="fas fa-shopping-cart"></i>
60
+ <span class="sidebar-text">Sales</span>
61
+ </a>
62
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
63
+ <i class="fas fa-boxes"></i>
64
+ <span class="sidebar-text">Products</span>
65
+ </a>
66
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
67
+ <i class="fas fa-users"></i>
68
+ <span class="sidebar-text">Customers</span>
69
+ </a>
70
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
71
+ <i class="fas fa-chart-line"></i>
72
+ <span class="sidebar-text">Reports</span>
73
+ </a>
74
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
75
+ <i class="fas fa-bell"></i>
76
+ <span class="sidebar-text">Inventory Alerts</span>
77
+ </a>
78
+ <a href="#" class="nav-item flex items-center space-x-3 px-3 py-3 rounded-lg hover:bg-indigo-700">
79
+ <i class="fas fa-cog"></i>
80
+ <span class="sidebar-text">Settings</span>
81
+ </a>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="p-4 border-t border-indigo-700">
86
+ <div class="flex items-center space-x-3">
87
+ <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center">
88
+ <i class="fas fa-user"></i>
89
+ </div>
90
+ <div class="sidebar-text">
91
+ <div class="font-medium">Admin User</div>
92
+ <div class="text-xs text-indigo-300">[email protected]</div>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+
98
+ <!-- Main Content -->
99
+ <div class="flex-1 flex flex-col overflow-hidden">
100
+ <!-- Top Navigation -->
101
+ <header class="bg-white shadow-sm z-10">
102
+ <div class="px-6 py-3 flex items-center justify-between">
103
+ <div class="flex items-center space-x-4">
104
+ <button id="sidebarToggle" class="text-gray-500 hover:text-gray-700">
105
+ <i class="fas fa-bars"></i>
106
+ </button>
107
+ <h1 class="text-xl font-semibold text-gray-800">Dashboard</h1>
108
+ </div>
109
+
110
+ <div class="flex items-center space-x-4">
111
+ <div class="relative">
112
+ <button class="text-gray-500 hover:text-gray-700">
113
+ <i class="fas fa-bell"></i>
114
+ <span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
115
+ </button>
116
+ </div>
117
+ <div class="relative">
118
+ <button id="offlineToggle" class="px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-sm flex items-center">
119
+ <i class="fas fa-wifi mr-1"></i>
120
+ <span>Online</span>
121
+ </button>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ </header>
126
+
127
+ <!-- Main Content Area -->
128
+ <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
129
+ <!-- Stats Cards -->
130
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
131
+ <div class="bg-white rounded-lg shadow p-6">
132
+ <div class="flex items-center justify-between">
133
+ <div>
134
+ <p class="text-gray-500">Today's Sales</p>
135
+ <h3 class="text-2xl font-bold text-gray-800">$2,450</h3>
136
+ <p class="text-sm text-green-500 flex items-center">
137
+ <i class="fas fa-arrow-up mr-1"></i> 12% from yesterday
138
+ </p>
139
+ </div>
140
+ <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
141
+ <i class="fas fa-dollar-sign text-blue-600"></i>
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+ <div class="bg-white rounded-lg shadow p-6">
147
+ <div class="flex items-center justify-between">
148
+ <div>
149
+ <p class="text-gray-500">Total Orders</p>
150
+ <h3 class="text-2xl font-bold text-gray-800">48</h3>
151
+ <p class="text-sm text-green-500 flex items-center">
152
+ <i class="fas fa-arrow-up mr-1"></i> 3 new today
153
+ </p>
154
+ </div>
155
+ <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center">
156
+ <i class="fas fa-shopping-bag text-purple-600"></i>
157
+ </div>
158
+ </div>
159
+ </div>
160
+
161
+ <div class="bg-white rounded-lg shadow p-6">
162
+ <div class="flex items-center justify-between">
163
+ <div>
164
+ <p class="text-gray-500">Low Stock Items</p>
165
+ <h3 class="text-2xl font-bold text-gray-800">7</h3>
166
+ <p class="text-sm text-red-500 flex items-center">
167
+ <i class="fas fa-exclamation-circle mr-1"></i> Needs attention
168
+ </p>
169
+ </div>
170
+ <div class="w-12 h-12 rounded-full bg-orange-100 flex items-center justify-center">
171
+ <i class="fas fa-box-open text-orange-600"></i>
172
+ </div>
173
+ </div>
174
+ </div>
175
+
176
+ <div class="bg-white rounded-lg shadow p-6">
177
+ <div class="flex items-center justify-between">
178
+ <div>
179
+ <p class="text-gray-500">New Customers</p>
180
+ <h3 class="text-2xl font-bold text-gray-800">5</h3>
181
+ <p class="text-sm text-green-500 flex items-center">
182
+ <i class="fas fa-arrow-up mr-1"></i> 25% from last week
183
+ </p>
184
+ </div>
185
+ <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center">
186
+ <i class="fas fa-users text-green-600"></i>
187
+ </div>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- Charts and Recent Sales -->
193
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
194
+ <!-- Sales Chart -->
195
+ <div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
196
+ <div class="flex items-center justify-between mb-4">
197
+ <h2 class="text-lg font-semibold text-gray-800">Sales Overview</h2>
198
+ <div class="flex space-x-2">
199
+ <button class="px-3 py-1 text-sm bg-indigo-100 text-indigo-800 rounded-full">Weekly</button>
200
+ <button class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-full">Monthly</button>
201
+ <button class="px-3 py-1 text-sm text-gray-600 hover:bg-gray-100 rounded-full">Yearly</button>
202
+ </div>
203
+ </div>
204
+ <div class="chart-container">
205
+ <canvas id="salesChart" height="300"></canvas>
206
+ </div>
207
+ </div>
208
+
209
+ <!-- Recent Sales -->
210
+ <div class="bg-white rounded-lg shadow p-6">
211
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Recent Sales</h2>
212
+ <div class="space-y-4">
213
+ <div class="flex items-start">
214
+ <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
215
+ <i class="fas fa-shopping-bag text-indigo-600"></i>
216
+ </div>
217
+ <div>
218
+ <p class="font-medium">Classic Leather Belt</p>
219
+ <p class="text-sm text-gray-500">#ORD-2023-0012</p>
220
+ <p class="text-sm text-gray-500">$45.00 • 2 hours ago</p>
221
+ </div>
222
+ </div>
223
+
224
+ <div class="flex items-start">
225
+ <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
226
+ <i class="fas fa-shopping-bag text-green-600"></i>
227
+ </div>
228
+ <div>
229
+ <p class="font-medium">Premium Wallet</p>
230
+ <p class="text-sm text-gray-500">#ORD-2023-0011</p>
231
+ <p class="text-sm text-gray-500">$85.00 • 4 hours ago</p>
232
+ </div>
233
+ </div>
234
+
235
+ <div class="flex items-start">
236
+ <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
237
+ <i class="fas fa-shopping-bag text-purple-600"></i>
238
+ </div>
239
+ <div>
240
+ <p class="font-medium">Leather Tote Bag</p>
241
+ <p class="text-sm text-gray-500">#ORD-2023-0010</p>
242
+ <p class="text-sm text-gray-500">$120.00 • 6 hours ago</p>
243
+ </div>
244
+ </div>
245
+
246
+ <div class="flex items-start">
247
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
248
+ <i class="fas fa-shopping-bag text-blue-600"></i>
249
+ </div>
250
+ <div>
251
+ <p class="font-medium">Belt Buckle Set</p>
252
+ <p class="text-sm text-gray-500">#ORD-2023-0009</p>
253
+ <p class="text-sm text-gray-500">$65.00 • 1 day ago</p>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ <button class="mt-4 w-full py-2 text-sm text-indigo-600 hover:bg-indigo-50 rounded-lg">
258
+ View All Sales
259
+ </button>
260
+ </div>
261
+ </div>
262
+
263
+ <!-- Products and Quick Sale -->
264
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
265
+ <!-- Top Products -->
266
+ <div class="bg-white rounded-lg shadow p-6 lg:col-span-2">
267
+ <div class="flex items-center justify-between mb-4">
268
+ <h2 class="text-lg font-semibold text-gray-800">Top Products</h2>
269
+ <button class="text-sm text-indigo-600 hover:text-indigo-800">View All</button>
270
+ </div>
271
+
272
+ <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4">
273
+ <!-- Product Card 1 -->
274
+ <div class="product-card bg-white border border-gray-100 rounded-lg overflow-hidden transition-all duration-300">
275
+ <div class="relative h-40 bg-gray-100">
276
+ <img src="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="Leather Belt" class="w-full h-full object-cover">
277
+ <div class="absolute top-2 right-2 bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Best Seller</div>
278
+ </div>
279
+ <div class="p-4">
280
+ <h3 class="font-medium text-gray-800">Classic Leather Belt</h3>
281
+ <div class="flex justify-between items-center mt-2">
282
+ <span class="text-gray-600">$45.00</span>
283
+ <span class="text-xs bg-gray-100 px-2 py-1 rounded-full">32 in stock</span>
284
+ </div>
285
+ </div>
286
+ </div>
287
+
288
+ <!-- Product Card 2 -->
289
+ <div class="product-card bg-white border border-gray-100 rounded-lg overflow-hidden transition-all duration-300">
290
+ <div class="relative h-40 bg-gray-100">
291
+ <img src="https://images.unsplash.com/photo-1548036328-c9fa89d128fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="Leather Wallet" class="w-full h-full object-cover">
292
+ </div>
293
+ <div class="p-4">
294
+ <h3 class="font-medium text-gray-800">Premium Wallet</h3>
295
+ <div class="flex justify-between items-center mt-2">
296
+ <span class="text-gray-600">$85.00</span>
297
+ <span class="text-xs bg-gray-100 px-2 py-1 rounded-full">15 in stock</span>
298
+ </div>
299
+ </div>
300
+ </div>
301
+
302
+ <!-- Product Card 3 -->
303
+ <div class="product-card bg-white border border-gray-100 rounded-lg overflow-hidden transition-all duration-300">
304
+ <div class="relative h-40 bg-gray-100">
305
+ <img src="https://images.unsplash.com/photo-1566150902887-e24fbfb77900?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="Leather Bag" class="w-full h-full object-cover">
306
+ <div class="absolute top-2 right-2 bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full">Low Stock</div>
307
+ </div>
308
+ <div class="p-4">
309
+ <h3 class="font-medium text-gray-800">Leather Tote Bag</h3>
310
+ <div class="flex justify-between items-center mt-2">
311
+ <span class="text-gray-600">$120.00</span>
312
+ <span class="text-xs bg-gray-100 px-2 py-1 rounded-full">5 in stock</span>
313
+ </div>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </div>
318
+
319
+ <!-- Quick Sale -->
320
+ <div class="bg-white rounded-lg shadow p-6">
321
+ <h2 class="text-lg font-semibold text-gray-800 mb-4">Quick Sale</h2>
322
+
323
+ <div class="space-y-4">
324
+ <div>
325
+ <label class="block text-sm font-medium text-gray-700 mb-1">Customer</label>
326
+ <select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
327
+ <option>Walk-in Customer</option>
328
+ <option>John Smith</option>
329
+ <option>Sarah Johnson</option>
330
+ <option>Michael Brown</option>
331
+ </select>
332
+ </div>
333
+
334
+ <div>
335
+ <label class="block text-sm font-medium text-gray-700 mb-1">Product</label>
336
+ <select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
337
+ <option>Select a product</option>
338
+ <option>Classic Leather Belt - $45.00</option>
339
+ <option>Premium Wallet - $85.00</option>
340
+ <option>Leather Tote Bag - $120.00</option>
341
+ <option>Belt Buckle Set - $65.00</option>
342
+ </select>
343
+ </div>
344
+
345
+ <div>
346
+ <label class="block text-sm font-medium text-gray-700 mb-1">Quantity</label>
347
+ <input type="number" min="1" value="1" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
348
+ </div>
349
+
350
+ <div>
351
+ <label class="block text-sm font-medium text-gray-700 mb-1">Payment Method</label>
352
+ <div class="grid grid-cols-2 gap-2">
353
+ <button class="py-2 border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500">
354
+ <i class="fas fa-money-bill-wave mr-1"></i> Cash
355
+ </button>
356
+ <button class="py-2 border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500">
357
+ <i class="fas fa-credit-card mr-1"></i> Card
358
+ </button>
359
+ <button class="py-2 border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500">
360
+ <i class="fas fa-university mr-1"></i> Transfer
361
+ </button>
362
+ <button class="py-2 border border-gray-300 rounded-lg hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500">
363
+ <i class="fas fa-truck mr-1"></i> COD
364
+ </button>
365
+ </div>
366
+ </div>
367
+
368
+ <div class="pt-2">
369
+ <button class="w-full bg-indigo-600 text-white py-2 px-4 rounded-lg hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
370
+ Complete Sale
371
+ </button>
372
+ </div>
373
+ </div>
374
+ </div>
375
+ </div>
376
+ </main>
377
+ </div>
378
+ </div>
379
+
380
+ <!-- Invoice Modal (hidden by default) -->
381
+ <div id="invoiceModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
382
+ <div class="bg-white rounded-lg shadow-xl w-full max-w-4xl max-h-screen overflow-y-auto">
383
+ <div class="p-6">
384
+ <!-- Invoice Header -->
385
+ <div class="flex justify-between items-start mb-8">
386
+ <div>
387
+ <h2 class="text-2xl font-bold text-gray-800">LuxLeather</h2>
388
+ <p class="text-gray-600">123 Leather Street, Artisan District</p>
389
+ <p class="text-gray-600">City, Country 12345</p>
390
+ <p class="text-gray-600">VAT: GB123456789</p>
391
+ </div>
392
+ <div class="text-right">
393
+ <h1 class="text-2xl font-bold text-indigo-600">INVOICE</h1>
394
+ <p class="text-gray-600">#INV-2023-0012</p>
395
+ <p class="text-gray-600">Date: <span id="invoiceDate">Oct 15, 2023</span></p>
396
+ <p class="text-gray-600">Due: Upon Receipt</p>
397
+ </div>
398
+ </div>
399
+
400
+ <!-- Invoice Customer -->
401
+ <div class="flex justify-between mb-8">
402
+ <div>
403
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Bill To:</h3>
404
+ <p class="font-medium">John Smith</p>
405
+ <p class="text-gray-600">123 Customer Street</p>
406
+ <p class="text-gray-600">City, Country 54321</p>
407
+ <p class="text-gray-600">[email protected]</p>
408
+ </div>
409
+ <div>
410
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Payment Method:</h3>
411
+ <p class="font-medium">Credit Card</p>
412
+ <p class="text-gray-600">**** **** **** 4242</p>
413
+ <p class="text-gray-600">Transaction ID: TXN123456</p>
414
+ </div>
415
+ </div>
416
+
417
+ <!-- Invoice Items -->
418
+ <div class="mb-8">
419
+ <div class="border border-gray-200 rounded-lg overflow-hidden">
420
+ <table class="min-w-full divide-y divide-gray-200">
421
+ <thead class="bg-gray-50">
422
+ <tr>
423
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Item</th>
424
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Price</th>
425
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Qty</th>
426
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total</th>
427
+ </tr>
428
+ </thead>
429
+ <tbody class="bg-white divide-y divide-gray-200">
430
+ <tr>
431
+ <td class="px-6 py-4 whitespace-nowrap">
432
+ <div class="flex items-center">
433
+ <div class="flex-shrink-0 h-10 w-10">
434
+ <img class="h-10 w-10 rounded" src="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="">
435
+ </div>
436
+ <div class="ml-4">
437
+ <div class="text-sm font-medium text-gray-900">Classic Leather Belt</div>
438
+ <div class="text-sm text-gray-500">Brown, Size M</div>
439
+ </div>
440
+ </div>
441
+ </td>
442
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$45.00</td>
443
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
444
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$45.00</td>
445
+ </tr>
446
+ <tr>
447
+ <td class="px-6 py-4 whitespace-nowrap">
448
+ <div class="flex items-center">
449
+ <div class="flex-shrink-0 h-10 w-10">
450
+ <img class="h-10 w-10 rounded" src="https://images.unsplash.com/photo-1548036328-c9fa89d128fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" alt="">
451
+ </div>
452
+ <div class="ml-4">
453
+ <div class="text-sm font-medium text-gray-900">Premium Wallet</div>
454
+ <div class="text-sm text-gray-500">Black</div>
455
+ </div>
456
+ </div>
457
+ </td>
458
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$85.00</td>
459
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1</td>
460
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$85.00</td>
461
+ </tr>
462
+ </tbody>
463
+ </table>
464
+ </div>
465
+ </div>
466
+
467
+ <!-- Invoice Totals -->
468
+ <div class="flex justify-end">
469
+ <div class="w-64">
470
+ <div class="flex justify-between py-2 border-b border-gray-200">
471
+ <span class="text-gray-600">Subtotal</span>
472
+ <span class="font-medium">$130.00</span>
473
+ </div>
474
+ <div class="flex justify-between py-2 border-b border-gray-200">
475
+ <span class="text-gray-600">Tax (10%)</span>
476
+ <span class="font-medium">$13.00</span>
477
+ </div>
478
+ <div class="flex justify-between py-2 border-b border-gray-200">
479
+ <span class="text-gray-600">Shipping</span>
480
+ <span class="font-medium">$5.00</span>
481
+ </div>
482
+ <div class="flex justify-between py-4">
483
+ <span class="text-lg font-bold">Total</span>
484
+ <span class="text-lg font-bold">$148.00</span>
485
+ </div>
486
+ </div>
487
+ </div>
488
+
489
+ <!-- Invoice Footer -->
490
+ <div class="mt-8 pt-8 border-t border-gray-200">
491
+ <div class="flex justify-between">
492
+ <div>
493
+ <h3 class="text-sm font-semibold text-gray-800 mb-2">Payment Instructions:</h3>
494
+ <p class="text-sm text-gray-600">Please make payment within 7 days of receiving this invoice.</p>
495
+ <p class="text-sm text-gray-600">Bank: International Bank</p>
496
+ <p class="text-sm text-gray-600">Account: 1234567890</p>
497
+ <p class="text-sm text-gray-600">Sort Code: 12-34-56</p>
498
+ </div>
499
+ <div class="text-right">
500
+ <div class="w-32 h-32 bg-gray-100 inline-flex items-center justify-center">
501
+ <span class="text-gray-400 text-xs">QR Code</span>
502
+ </div>
503
+ </div>
504
+ </div>
505
+ <div class="mt-8 text-center text-xs text-gray-500">
506
+ <p>Thank you for your business! We appreciate your trust in LuxLeather products.</p>
507
+ <p class="mt-1">For any questions, please contact [email protected]</p>
508
+ </div>
509
+ </div>
510
+ </div>
511
+
512
+ <!-- Invoice Actions -->
513
+ <div class="bg-gray-50 px-6 py-4 flex justify-between border-t border-gray-200 no-print">
514
+ <button onclick="closeInvoiceModal()" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-indigo-500">
515
+ Close
516
+ </button>
517
+ <div class="space-x-3">
518
+ <button onclick="printInvoice()" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-indigo-500">
519
+ <i class="fas fa-print mr-2"></i> Print
520
+ </button>
521
+ <button onclick="downloadPDF()" class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500">
522
+ <i class="fas fa-download mr-2"></i> Download PDF
523
+ </button>
524
+ <button onclick="shareWhatsApp()" class="px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500">
525
+ <i class="fab fa-whatsapp mr-2"></i> Share via WhatsApp
526
+ </button>
527
+ </div>
528
+ </div>
529
+ </div>
530
+ </div>
531
+
532
+ <script>
533
+ // Sidebar toggle
534
+ document.getElementById('sidebarToggle').addEventListener('click', function() {
535
+ document.querySelector('.sidebar').classList.toggle('collapsed');
536
+ });
537
+
538
+ // Offline mode toggle
539
+ let isOnline = true;
540
+ document.getElementById('offlineToggle').addEventListener('click', function() {
541
+ isOnline = !isOnline;
542
+ const button = document.getElementById('offlineToggle');
543
+ if (isOnline) {
544
+ button.innerHTML = '<i class="fas fa-wifi mr-1"></i><span>Online</span>';
545
+ button.className = 'px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm flex items-center';
546
+ } else {
547
+ button.innerHTML = '<i class="fas fa-wifi-slash mr-1"></i><span>Offline</span>';
548
+ button.className = 'px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-sm flex items-center';
549
+ }
550
+ });
551
+
552
+ // Sales Chart (using Chart.js)
553
+ document.addEventListener('DOMContentLoaded', function() {
554
+ // Set today's date on invoice
555
+ const today = new Date();
556
+ const options = { year: 'numeric', month: 'short', day: 'numeric' };
557
+ document.getElementById('invoiceDate').textContent = today.toLocaleDateString('en-US', options);
558
+
559
+ // Initialize chart
560
+ const ctx = document.getElementById('salesChart').getContext('2d');
561
+ const salesChart = new Chart(ctx, {
562
+ type: 'line',
563
+ data: {
564
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct'],
565
+ datasets: [{
566
+ label: 'Sales ($)',
567
+ data: [4500, 5200, 4800, 6100, 7200, 6900, 8300, 9100, 8500, 9200],
568
+ backgroundColor: 'rgba(79, 70, 229, 0.05)',
569
+ borderColor: 'rgba(79, 70, 229, 1)',
570
+ borderWidth: 2,
571
+ tension: 0.4,
572
+ fill: true
573
+ }]
574
+ },
575
+ options: {
576
+ responsive: true,
577
+ maintainAspectRatio: false,
578
+ plugins: {
579
+ legend: {
580
+ display: false
581
+ }
582
+ },
583
+ scales: {
584
+ y: {
585
+ beginAtZero: true,
586
+ grid: {
587
+ drawBorder: false
588
+ }
589
+ },
590
+ x: {
591
+ grid: {
592
+ display: false
593
+ }
594
+ }
595
+ }
596
+ }
597
+ });
598
+ });
599
+
600
+ // Invoice functions
601
+ function showInvoiceModal() {
602
+ document.getElementById('invoiceModal').classList.remove('hidden');
603
+ }
604
+
605
+ function closeInvoiceModal() {
606
+ document.getElementById('invoiceModal').classList.add('hidden');
607
+ }
608
+
609
+ function printInvoice() {
610
+ window.print();
611
+ }
612
+
613
+ function downloadPDF() {
614
+ const { jsPDF } = window.jspdf;
615
+ const element = document.getElementById('invoiceModal').querySelector('.bg-white');
616
+
617
+ html2canvas(element).then(canvas => {
618
+ const imgData = canvas.toDataURL('image/png');
619
+ const pdf = new jsPDF('p', 'mm', 'a4');
620
+ const imgProps = pdf.getImageProperties(imgData);
621
+ const pdfWidth = pdf.internal.pageSize.getWidth();
622
+ const pdfHeight = (imgProps.height * pdfWidth) / imgProps.width;
623
+
624
+ pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight);
625
+ pdf.save('invoice-LuxLeather-2023-0012.pdf');
626
+ });
627
+ }
628
+
629
+ function shareWhatsApp() {
630
+ const message = "Here's your invoice from LuxLeather: #INV-2023-0012 for $148.00. Thank you for your business!";
631
+ const encodedMessage = encodeURIComponent(message);
632
+ window.open(`https://wa.me/?text=${encodedMessage}`, '_blank');
633
+ }
634
+
635
+ // Simulate completing a sale (for demo purposes)
636
+ document.querySelector('.bg-indigo-600').addEventListener('click', function() {
637
+ showInvoiceModal();
638
+ });
639
+ </script>
640
+ <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=kam33/artmoh" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
641
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Build a modern web-based sales and invoicing system for a leather goods company that sells belts, bags, buckles, and other leather items. Features: Product catalog with images, variants (e.g., color, size) Create and manage sales with multi-payment support (cash, card, transfer, COD) Auto-generate PDF invoices with logo and tax info Real-time inventory tracking with alerts for low stock Customer database with purchase history Sales analytics: top products, revenue charts, daily/monthly reports Employee roles (admin, seller) and login system Mobile responsive UI with a clean, modern design (TailwindCSS or Material UI) Optionally support offline mode and WhatsApp invoice sharing Tech stack preferred: React (frontend), Node.js or Laravel (backend), MySQL or Firebase (database) Keep UI minimal, fast, and professional. Build scalable code structure.