File size: 16,215 Bytes
6f719f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ProFlow Manager | Projects</title>
    <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#f0f9ff',
                            100: '#e0f2fe',
                            200: '#bae6fd',
                            300: '#7dd3fc',
                            400: '#38bdf8',
                            500: '#0ea5e9',
                            600: '#0284c7',
                            700: '#0369a1',
                            800: '#075985',
                            900: '#0c4a6e',
                        },
                        secondary: {
                            50: '#fdf4ff',
                            100: '#fae8ff',
                            200: '#f5d0fe',
                            300: '#f0abfc',
                            400: '#e879f9',
                            500: '#d946ef',
                            600: '#c026d3',
                            700: '#a21caf',
                            800: '#86198f',
                            900: '#701a75',
                        }
                    }
                }
            }
        }
    </script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50 text-gray-800">
    <custom-navbar></custom-navbar>
    <custom-sidebar></custom-sidebar>

    <main class="md:ml-64 p-4 pt-20">
        <div class="max-w-7xl mx-auto">
            <!-- Header with Stats -->
            <div class="mb-8">
                <div class="flex flex-col md:flex-row md:items-center justify-between mb-6">
                    <div>
                        <h1 class="text-3xl font-bold text-gray-800">Projects</h1>
                        <p class="text-gray-600">Manage and track all your projects</p>
                    </div>
                    <button onclick="ModalManager.open('addProjectModal')" 
                            class="mt-4 md:mt-0 btn btn-primary flex items-center">
                        <i data-feather="folder-plus" class="mr-2 w-4 h-4"></i>
                        New Project
                    </button>
                </div>
                
                <!-- Project Stats -->
                <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
                    <div class="bg-white rounded-lg p-4 shadow-sm border">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm text-gray-500">Active</p>
                                <h3 class="text-xl font-bold text-gray-800">12</h3>
                            </div>
                            <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center">
                                <i data-feather="play" class="w-6 h-6 text-green-600"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg p-4 shadow-sm border">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm text-gray-500">On Hold</p>
                                <h3 class="text-xl font-bold text-gray-800">3</h3>
                            </div>
                            <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center">
                                <i data-feather="pause" class="w-6 h-6 text-yellow-600"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg p-4 shadow-sm border">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm text-gray-500">Completed</p>
                                <h3 class="text-xl font-bold text-gray-800">24</h3>
                            </div>
                            <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
                                <i data-feather="check-circle" class="w-6 h-6 text-blue-600"></i>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white rounded-lg p-4 shadow-sm border">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-sm text-gray-500">Total Value</p>
                                <h3 class="text-xl font-bold text-gray-800">$356K</h3>
                            </div>
                            <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center">
                                <i data-feather="dollar-sign" class="w-6 h-6 text-purple-600"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Projects Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                <!-- Project Card -->
                <div class="card">
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-4">
                            <div>
                                <h3 class="font-bold text-lg text-gray-800">Website Redesign</h3>
                                <p class="text-sm text-gray-600">TechCorp Inc.</p>
                            </div>
                            <span class="status-badge status-active">Active</span>
                        </div>
                        
                        <p class="text-gray-700 mb-6">Complete redesign of corporate website with modern UI/UX and improved performance.</p>
                        
                        <div class="space-y-4 mb-6">
                            <div>
                                <p class="text-sm text-gray-500 mb-1">Progress</p>
                                <div class="w-full bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary-600 h-2 rounded-full" style="width: 75%"></div>
                                </div>
                                <div class="flex justify-between text-xs text-gray-500 mt-1">
                                    <span>75% Complete</span>
                                    <span>120/160 hrs</span>
                                </div>
                            </div>
                            
                            <div>
                                <p class="text-sm text-gray-500 mb-2">Team Members</p>
                                <div class="flex -space-x-2">
                                    <img src="http://static.photos/people/200x200/1" 
                                         alt="Team" 
                                         class="w-8 h-8 rounded-full border-2 border-white">
                                    <img src="http://static.photos/people/200x200/2" 
                                         alt="Team" 
                                         class="w-8 h-8 rounded-full border-2 border-white">
                                    <img src="http://static.photos/people/200x200/3" 
                                         alt="Team" 
                                         class="w-8 h-8 rounded-full border-2 border-white">
                                    <div class="w-8 h-8 rounded-full bg-gray-100 border-2 border-white flex items-center justify-center text-xs text-gray-600">
                                        +2
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="flex justify-between text-sm text-gray-600 border-t pt-4">
                            <div class="flex items-center">
                                <i data-feather="user" class="w-4 h-4 mr-2"></i>
                                <span>Jane Smith</span>
                            </div>
                            <div class="flex items-center">
                                <i data-feather="dollar-sign" class="w-4 h-4 mr-2"></i>
                                <span>$45,000</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="px-6 py-4 bg-gray-50 border-t flex justify-end space-x-2">
                        <button class="text-primary-600 hover:text-primary-700 p-2">
                            <i data-feather="eye" class="w-4 h-4"></i>
                        </button>
                        <button class="text-primary-600 hover:text-primary-700 p-2">
                            <i data-feather="edit" class="w-4 h-4"></i>
                        </button>
                        <button class="text-primary-600 hover:text-primary-700 p-2">
                            <i data-feather="calendar" class="w-4 h-4"></i>
                        </button>
                    </div>
                </div>
                
                <!-- Add more project cards... -->
            </div>
        </div>
    </main>

    <!-- Add Project Modal -->
    <div id="addProjectModal" class="modal-overlay hidden">
        <div class="modal-content">
            <div class="card">
                <div class="card-header flex justify-between items-center">
                    <h2 class="card-title">Create New Project</h2>
                    <button data-modal-close="addProjectModal" class="text-gray-400 hover:text-gray-600">
                        <i data-feather="x" class="w-6 h-6"></i>
                    </button>
                </div>
                <div class="card-body">
                    <form id="addProjectForm" class="space-y-6">
                        <div class="form-group">
                            <label class="form-label">Project Name</label>
                            <input type="text" class="form-input" placeholder="Enter project name" required>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">Client</label>
                            <select class="form-select" required>
                                <option value="">Select Client</option>
                                <option value="1">TechCorp Inc.</option>
                                <option value="2">StartupXYZ</option>
                                <option value="3">Global Solutions</option>
                            </select>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div class="form-group">
                                <label class="form-label">Project Manager</label>
                                <select class="form-select" required>
                                    <option value="">Select Manager</option>
                                    <option value="1">Jane Smith (Manager)</option>
                                    <option value="2">John Doe (Admin)</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label class="form-label">Budget Type</label>
                                <select class="form-select" required>
                                    <option value="">Select Type</option>
                                    <option value="hours">Hourly Rate</option>
                                    <option value="fixed">Fixed Price</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div class="form-group">
                                <label class="form-label">Start Date</label>
                                <input type="date" class="form-input" required>
                            </div>
                            <div class="form-group">
                                <label class="form-label">End Date</label>
                                <input type="date" class="form-input">
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">Estimated Hours/Value</label>
                            <input type="text" class="form-input" placeholder="e.g., 160 hours or $45,000" required>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">Team Members</label>
                            <div class="space-y-2">
                                <div class="flex items-center p-3 border rounded-lg">
                                    <input type="checkbox" id="user1" class="rounded text-primary-600">
                                    <label for="user1" class="ml-3 flex-1">
                                        <span class="font-medium text-gray-800">Mike Johnson</span>
                                        <span class="text-sm text-gray-600 ml-2">(Analyst)</span>
                                    </label>
                                </div>
                                <div class="flex items-center p-3 border rounded-lg">
                                    <input type="checkbox" id="user2" class="rounded text-primary-600">
                                    <label for="user2" class="ml-3 flex-1">
                                        <span class="font-medium text-gray-800">Sarah Williams</span>
                                        <span class="text-sm text-gray-600 ml-2">(Designer)</span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">Project Description</label>
                            <textarea class="form-input h-32" placeholder="Describe the project scope, goals, and requirements..."></textarea>
                        </div>
                        
                        <div class="flex justify-end space-x-3 pt-6 border-t">
                            <button type="button" data-modal-close="addProjectModal" class="btn btn-outline">
                                Cancel
                            </button>
                            <button type="submit" class="btn btn-primary">
                                <i data-feather="save" class="mr-2 w-4 h-4"></i>
                                Create Project
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script src="components/navbar.js"></script>
    <script src="components/sidebar.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
        
        document.getElementById('addProjectForm')?.addEventListener('submit', function(e) {
            e.preventDefault();
            NotificationManager.showSuccess('Project created successfully!');
            ModalManager.close('addProjectModal');
            this.reset();
        });
    </script>
</body>
</html>