poluser commited on
Commit
4b326da
·
verified ·
1 Parent(s): 23185ed

create an

Browse files

Inventory and Warehouse System for a construction company capable of
handling multiple projects

Files changed (3) hide show
  1. README.md +7 -4
  2. index.html +295 -18
  3. projects.html +63 -0
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Constructostock Pro
3
- emoji: 📚
4
- colorFrom: green
5
  colorTo: yellow
 
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: ConstructoStock Pro 🏗️📦
3
+ colorFrom: yellow
 
4
  colorTo: yellow
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,296 @@
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>ConstructoStock Pro - Dashboard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ theme: {
16
+ extend: {
17
+ colors: {
18
+ primary: '#3b82f6',
19
+ secondary: '#10b981'
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+ <style>
26
+ .sidebar {
27
+ transition: all 0.3s ease;
28
+ }
29
+ .sidebar.collapsed {
30
+ width: 80px;
31
+ }
32
+ .sidebar.collapsed .nav-text {
33
+ display: none;
34
+ }
35
+ .main-content {
36
+ transition: all 0.3s ease;
37
+ }
38
+ .stat-card {
39
+ transition: transform 0.2s ease;
40
+ }
41
+ .stat-card:hover {
42
+ transform: translateY(-2px);
43
+ }
44
+ #vanta-bg {
45
+ position: absolute;
46
+ top: 0;
47
+ left: 0;
48
+ width: 100%;
49
+ height: 100%;
50
+ z-index: -1;
51
+ }
52
+ </style>
53
+ </head>
54
+ <body class="bg-gray-50 min-h-screen flex">
55
+ <!-- Vanta.js Background -->
56
+ <div id="vanta-bg"></div>
57
+
58
+ <!-- Sidebar -->
59
+ <div class="sidebar bg-white shadow-lg h-screen fixed left-0 top-0 z-40 w-64">
60
+ <div class="p-6 border-b border-gray-200">
61
+ <div class="flex items-center space-x-3">
62
+ <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
63
+ <i data-feather="tool" class="text-white"></i>
64
+ </div>
65
+ <span class="text-xl font-bold text-gray-800">ConstructoStock</span>
66
+ </div>
67
+ </div>
68
+
69
+ <nav class="mt-8">
70
+ <a href="index.html" class="flex items-center px-6 py-3 text-primary bg-primary/10 border-r-4 border-primary">
71
+ <i data-feather="home" class="w-5 h-5"></i>
72
+ <span class="nav-text ml-3 font-medium">Dashboard</span>
73
+ </a>
74
+ <a href="projects.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
75
+ <i data-feather="clipboard" class="w-5 h-5"></i>
76
+ <span class="nav-text ml-3 font-medium">Projects</span>
77
+ </a>
78
+ <a href="inventory.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
79
+ <i data-feather="package" class="w-5 h-5"></i>
80
+ <span class="nav-text ml-3 font-medium">Inventory</span>
81
+ </a>
82
+ <a href="warehouse.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
83
+ <i data-feather="warehouse" class="w-5 h-5"></i>
84
+ <span class="nav-text ml-3 font-medium">Warehouse</span>
85
+ </a>
86
+ <a href="reports.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
87
+ <i data-feather="bar-chart-2" class="w-5 h-5"></i>
88
+ <span class="nav-text ml-3 font-medium">Reports</span>
89
+ </a>
90
+ <a href="users.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
91
+ <i data-feather="users" class="w-5 h-5"></i>
92
+ <span class="nav-text ml-3 font-medium">Users</span>
93
+ </a>
94
+ </nav>
95
+
96
+ <div class="absolute bottom-0 w-full p-6 border-t border-gray-200">
97
+ <div class="flex items-center space-x-3">
98
+ <img src="http://static.photos/people/40x40/1" alt="Profile" class="w-8 h-8 rounded-full">
99
+ <div class="flex-1 min-w-0">
100
+ <p class="text-sm font-medium text-gray-900 truncate">John Contractor</p>
101
+ <p class="text-xs text-gray-500 truncate">Admin</p>
102
+ </div>
103
+ <button class="text-gray-400 hover:text-gray-600">
104
+ <i data-feather="settings" class="w-4 h-4"></i>
105
+ </button>
106
+ </div>
107
+ </div>
108
+ </div>
109
+
110
+ <!-- Main Content -->
111
+ <div class="main-content flex-1 ml-64 p-8">
112
+ <!-- Header -->
113
+ <div class="flex justify-between items-center mb-8">
114
+ <div>
115
+ <h1 class="text-3xl font-bold text-gray-900">Dashboard Overview</h1>
116
+ <p class="text-gray-600">Real-time inventory and project status across all sites</p>
117
+ </div>
118
+ <div class="flex space-x-4">
119
+ <div class="relative">
120
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
121
+ <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400 w-4 h-4"></i>
122
+ </div>
123
+ <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-primary/90 transition-colors">
124
+ <i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
125
+ New Project
126
+ </button>
127
+ </div>
128
+ </div>
129
+
130
+ <!-- Stats Grid -->
131
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
132
+ <div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
133
+ <div class="flex items-center justify-between">
134
+ <div>
135
+ <p class="text-sm font-medium text-gray-600">Active Projects</p>
136
+ <p class="text-2xl font-bold text-gray-900 mt-1">12</p>
137
+ </div>
138
+ <div class="p-3 bg-blue-50 rounded-lg">
139
+ <i data-feather="clipboard" class="w-6 h-6 text-primary"></i>
140
+ </div>
141
+ </div>
142
+ <div class="mt-4 flex items-center text-sm text-green-600">
143
+ <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
144
+ <span>+2 from last month</span>
145
+ </div>
146
+ </div>
147
+
148
+ <div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
149
+ <div class="flex items-center justify-between">
150
+ <div>
151
+ <p class="text-sm font-medium text-gray-600">Total Inventory</p>
152
+ <p class="text-2xl font-bold text-gray-900 mt-1">1,247</p>
153
+ </div>
154
+ <div class="p-3 bg-green-50 rounded-lg">
155
+ <i data-feather="package" class="w-6 h-6 text-secondary"></i>
156
+ </div>
157
+ </div>
158
+ <div class="mt-4 flex items-center text-sm text-red-600">
159
+ <i data-feather="trending-down" class="w-4 h-4 mr-1"></i>
160
+ <span>-5% from last week</span>
161
+ </div>
162
+ </div>
163
+
164
+ <div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
165
+ <div class="flex items-center justify-between">
166
+ <div>
167
+ <p class="text-sm font-medium text-gray-600">Low Stock Items</p>
168
+ <p class="text-2xl font-bold text-gray-900 mt-1">23</p>
169
+ </div>
170
+ <div class="p-3 bg-yellow-50 rounded-lg">
171
+ <i data-feather="alert-triangle" class="w-6 h-6 text-yellow-600"></i>
172
+ </div>
173
+ </div>
174
+ <div class="mt-4 flex items-center text-sm text-red-600">
175
+ <i data-feather="alert-circle" class="w-4 h-4 mr-1"></i>
176
+ <span>Needs immediate attention</span>
177
+ </div>
178
+ </div>
179
+
180
+ <div class="stat-card bg-white p-6 rounded-xl shadow-sm border border-gray-100">
181
+ <div class="flex items-center justify-between">
182
+ <div>
183
+ <p class="text-sm font-medium text-gray-600">Warehouse Capacity</p>
184
+ <p class="text-2xl font-bold text-gray-900 mt-1">78%</p>
185
+ </div>
186
+ <div class="p-3 bg-purple-50 rounded-lg">
187
+ <i data-feather="warehouse" class="w-6 h-6 text-purple-600"></i>
188
+ </div>
189
+ </div>
190
+ <div class="mt-4">
191
+ <div class="w-full bg-gray-200 rounded-full h-2">
192
+ <div class="bg-purple-600 h-2 rounded-full" style="width: 78%"></div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ <!-- Charts and Recent Activity -->
199
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
200
+ <!-- Inventory Chart -->
201
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
202
+ <h3 class="text-lg font-semibold text-gray-900 mb-4">Inventory Levels by Category</h3>
203
+ <div class="h-64 flex items-end space-x-2">
204
+ <div class="flex-1 flex flex-col items-center">
205
+ <div class="w-full bg-primary rounded-t-lg" style="height: 80%"></div>
206
+ <span class="text-xs text-gray-600 mt-2">Lumber</span>
207
+ </div>
208
+ <div class="flex-1 flex flex-col items-center">
209
+ <div class="w-full bg-secondary rounded-t-lg" style="height: 65%"></div>
210
+ <span class="text-xs text-gray-600 mt-2">Hardware</span>
211
+ </div>
212
+ <div class="flex-1 flex flex-col items-center">
213
+ <div class="w-full bg-yellow-500 rounded-t-lg" style="height: 45%"></div>
214
+ <span class="text-xs text-gray-600 mt-2">Electrical</span>
215
+ </div>
216
+ <div class="flex-1 flex flex-col items-center">
217
+ <div class="w-full bg-purple-500 rounded-t-lg" style="height: 90%"></div>
218
+ <span class="text-xs text-gray-600 mt-2">Plumbing</span>
219
+ </div>
220
+ <div class="flex-1 flex flex-col items-center">
221
+ <div class="w-full bg-red-500 rounded-t-lg" style="height: 30%"></div>
222
+ <span class="text-xs text-gray-600 mt-2">Concrete</span>
223
+ </div>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- Recent Activity -->
228
+ <div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
229
+ <h3 class="text-lg font-semibold text-gray-900 mb-4">Recent Activity</h3>
230
+ <div class="space-y-4">
231
+ <div class="flex items-center space-x-3">
232
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
233
+ <i data-feather="check-circle" class="w-4 h-4 text-green-600"></i>
234
+ </div>
235
+ <div class="flex-1">
236
+ <p class="text-sm font-medium text-gray-900">Delivery received</p>
237
+ <p class="text-xs text-gray-500">500 units of 2x4 lumber at Warehouse A</p>
238
+ </div>
239
+ <span class="text-xs text-gray-400">2 min ago</span>
240
+ </div>
241
+ <div class="flex items-center space-x-3">
242
+ <div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center">
243
+ <i data-feather="truck" class="w-4 h-4 text-blue-600"></i>
244
+ </div>
245
+ <div class="flex-1">
246
+ <p class="text-sm font-medium text-gray-900">Transfer initiated</p>
247
+ <p class="text-xs text-gray-500">Electrical supplies to Downtown Tower project</p>
248
+ </div>
249
+ <span class="text-xs text-gray-400">1 hour ago</span>
250
+ </div>
251
+ <div class="flex items-center space-x-3">
252
+ <div class="w-8 h-8 bg-yellow-100 rounded-full flex items-center justify-center">
253
+ <i data-feather="alert-triangle" class="w-4 h-4 text-yellow-600"></i>
254
+ </div>
255
+ <div class="flex-1">
256
+ <p class="text-sm font-medium text-gray-900">Low stock alert</p>
257
+ <p class="text-xs text-gray-500">Concrete mix running low at Warehouse B</p>
258
+ </div>
259
+ <span class="text-xs text-gray-400">3 hours ago</span>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+
266
+ <script>
267
+ // Initialize Vanta.js background
268
+ VANTA.GLOBE({
269
+ el: "#vanta-bg",
270
+ mouseControls: true,
271
+ touchControls: true,
272
+ gyroControls: false,
273
+ minHeight: 200.00,
274
+ minWidth: 200.00,
275
+ scale: 1.00,
276
+ scaleMobile: 1.00,
277
+ color: '#3b82f6',
278
+ backgroundColor: '#f8fafc'
279
+ });
280
+
281
+ // Initialize Feather Icons
282
+ feather.replace();
283
+
284
+ // Add some animations
285
+ document.addEventListener('DOMContentLoaded', function() {
286
+ anime({
287
+ targets: '.stat-card',
288
+ translateY: [20, 0],
289
+ opacity: [0, 1],
290
+ delay: anime.stagger(100),
291
+ easing: 'easeOutExpo'
292
+ });
293
+ });
294
+ </script>
295
+ </body>
296
  </html>
projects.html ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>ConstructoStock Pro - Project Management</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script>
12
+ tailwind.config = {
13
+ theme: {
14
+ extend: {
15
+ colors: {
16
+ primary: '#3b82f6',
17
+ secondary: '#10b981'
18
+ }
19
+ }
20
+ }
21
+ }
22
+ </script>
23
+ <style>
24
+ .sidebar {
25
+ transition: all 0.3s ease;
26
+ }
27
+ .sidebar.collapsed {
28
+ width: 80px;
29
+ }
30
+ .sidebar.collapsed .nav-text {
31
+ display: none;
32
+ }
33
+ .project-card {
34
+ transition: all 0.3s ease;
35
+ }
36
+ .project-card:hover {
37
+ transform: translateY(-4px);
38
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
39
+ }
40
+ </style>
41
+ </head>
42
+ <body class="bg-gray-50 min-h-screen flex">
43
+ <!-- Sidebar -->
44
+ <div class="sidebar bg-white shadow-lg h-screen fixed left-0 top-0 z-40 w-64">
45
+ <div class="p-6 border-b border-gray-200">
46
+ <div class="flex items-center space-x-3">
47
+ <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
48
+ <i data-feather="tool" class="text-white"></i>
49
+ </div>
50
+ <span class="text-xl font-bold text-gray-800">ConstructoStock</span>
51
+ </div>
52
+ </div>
53
+
54
+ <nav class="mt-8">
55
+ <a href="index.html" class="flex items-center px-6 py-3 text-gray-600 hover:bg-gray-100">
56
+ <i data-feather="home" class="w-5 h-5"></i>
57
+ <span class="nav-text ml-3 font-medium">Dashboard</span>
58
+ </a>
59
+ <a href="projects.html" class="flex items-center px-6 py-3 text-primary bg-primary/10 border-r-4 border-primary">
60
+ <i data-feather="clipboard" class="w-5 h-5"></i>
61
+ <span class="nav-text ml-3 font-medium">Projects</span
62
+ </body>
63
+ </html>