File size: 19,521 Bytes
c355f06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Applications - AplyFlow</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .sidebar {
            transition: all 0.3s ease;
        }
        .sidebar-collapsed {
            width: 80px !important;
        }
        .sidebar-collapsed .nav-text {
            display: none;
        }
        .sidebar-collapsed .logo-text {
            display: none;
        }
        .application-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Sidebar Navigation -->
    <div class="sidebar fixed inset-y-0 left-0 bg-white shadow-md w-64 z-50">
        <div class="p-4 flex justify-between items-center border-b border-gray-100">
            <div class="flex items-center space-x-2">
                <i data-feather="zap" class="text-indigo-600 w-6 h-6"></i>
                <span class="logo-text text-xl font-bold text-gray-800">AplyFlow</span>
            </div>
            <button id="toggleSidebar" class="p-1 rounded-md hover:bg-gray-100">
                <i data-feather="chevron-left" class="text-gray-500 w-5 h-5"></i>
            </button>
        </div>
        <nav class="p-4 space-y-2">
            <a href="dashboard.html" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-indigo-50 hover:text-indigo-600 transition">
                <i data-feather="home" class="w-5 h-5"></i>
                <span class="nav-text font-medium">Dashboard</span>
            </a>
            <a href="job-search.html" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-indigo-50 hover:text-indigo-600 transition">
                <i data-feather="search" class="w-5 h-5"></i>
                <span class="nav-text font-medium">Job Search</span>
            </a>
            <a href="applications.html" class="flex items-center space-x-3 p-3 rounded-lg text-indigo-600 bg-indigo-50">
                <i data-feather="briefcase" class="w-5 h-5"></i>
                <span class="nav-text font-medium">Applications</span>
            </a>
            <a href="ai-gen.html" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-indigo-50 hover:text-indigo-600 transition">
                <i data-feather="cpu" class="w-5 h-5"></i>
                <span class="nav-text font-medium">AI Generator</span>
            </a>
            <a href="profile.html" class="flex items-center space-x-3 p-3 rounded-lg text-gray-700 hover:bg-indigo-50 hover:text-indigo-600 transition">
                <i data-feather="user" class="w-5 h-5"></i>
                <span class="nav-text font-medium">Profile</span>
            </a>
        </nav>
    </div>

    <!-- Main Content -->
    <div class="ml-64 min-h-screen flex flex-col">
        <!-- Header -->
        <header class="bg-white shadow-sm">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <button id="mobileToggleSidebar" class="p-2 rounded-full hover:bg-gray-100 md:hidden">
                        <i data-feather="menu" class="text-gray-600 w-5 h-5"></i>
                    </button>
                    <h2 class="text-xl font-bold text-gray-800">Applications</h2>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full hover:bg-gray-100">
                        <i data-feather="bell" class="text-gray-600 w-5 h-5"></i>
                    </button>
                    <div class="flex items-center space-x-2">
                        <div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center text-white font-medium">JD</div>
                        <span class="text-sm font-medium text-gray-700">John Doe</span>
                    </div>
                </div>
            </div>
        </header>

        <!-- Applications Content -->
        <main class="flex-1">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <!-- Filters and Actions -->
                <div class="mb-8 flex flex-col md:flex-row justify-between items-start md:items-center">
                    <div class="mb-4 md:mb-0">
                        <h2 class="text-2xl font-bold text-gray-800">Your Job Applications</h2>
                        <p class="text-gray-600">Track and manage all your job applications in one place</p>
                    </div>
                    <div class="flex space-x-3">
                        <button class="flex items-center space-x-2 bg-white border border-gray-300 rounded-md px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50">
                            <i data-feather="filter" class="w-4 h-4"></i>
                            <span>Filters</span>
                        </button>
                        <button class="flex items-center space-x-2 bg-indigo-600 rounded-md px-4 py-2 text-sm font-medium text-white hover:bg-indigo-700">
                            <i data-feather="plus" class="w-4 h-4"></i>
                            <span>Add Application</span>
                        </button>
                    </div>
                </div>

                <!-- Status Tabs -->
                <div class="mb-6 border-b border-gray-200">
                    <nav class="-mb-px flex space-x-8">
                        <a href="#" class="border-indigo-500 text-indigo-600 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">All (12)</a>
                        <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Pending (3)</a>
                        <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Applied (6)</a>
                        <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Interview (2)</a>
                        <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Offer (1)</a>
                        <a href="#" class="border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm">Rejected (0)</a>
                    </nav>
                </div>

                <!-- Applications List -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="grid grid-cols-12 bg-gray-50 border-b border-gray-200 px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider">
                        <div class="col-span-5">Position & Company</div>
                        <div class="col-span-2">Status</div>
                        <div class="col-span-2">Date Applied</div>
                        <div class="col-span-2">Next Step</div>
                        <div class="col-span-1"></div>
                    </div>
                    <div class="divide-y divide-gray-100">
                        <!-- Application 1 -->
                        <div class="application-card grid grid-cols-12 px-6 py-4 hover:bg-gray-50 transition-all duration-200">
                            <div class="col-span-5 flex items-center">
                                <div class="flex-shrink-0 h-10 w-10 rounded-md bg-indigo-100 flex items-center justify-center mr-3">
                                    <i data-feather="briefcase" class="text-indigo-600 w-5 h-5"></i>
                                </div>
                                <div>
                                    <h3 class="text-sm font-semibold text-gray-800">Senior Frontend Developer</h3>
                                    <p class="text-sm text-gray-500">TechCorp</p>
                                </div>
                            </div>
                            <div class="col-span-2 flex items-center">
                                <span class="px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800">In Progress</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                <span>1/15/2024</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                <span>Follow up</span>
                            </div>
                            <div class="col-span-1 flex items-center justify-end">
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i data-feather="more-vertical" class="w-4 h-4 text-gray-500"></i>
                                </button>
                            </div>
                        </div>

                        <!-- Application 2 -->
                        <div class="application-card grid grid-cols-12 px-6 py-4 hover:bg-gray-50 transition-all duration-200">
                            <div class="col-span-5 flex items-center">
                                <div class="flex-shrink-0 h-10 w-10 rounded-md bg-green-100 flex items-center justify-center mr-3">
                                    <i data-feather="briefcase" class="text-green-600 w-5 h-5"></i>
                                </div>
                                <div>
                                    <h3 class="text-sm font-semibold text-gray-800">Full Stack Engineer</h3>
                                    <p class="text-sm text-gray-500">StartupXYZ</p>
                                </div>
                            </div>
                            <div class="col-span-2 flex items-center">
                                <span class="px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">Applied</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                <span>1/14/2024</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                <span>Wait for response</span>
                            </div>
                            <div class="col-span-1 flex items-center justify-end">
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i data-feather="more-vertical" class="w-4 h-4 text-gray-500"></i>
                                </button>
                            </div>
                        </div>

                        <!-- Application 3 -->
                        <div class="application-card grid grid-cols-12 px-6 py-4 hover:bg-gray-50 transition-all duration-200">
                            <div class="col-span-5 flex items-center">
                                <div class="flex-shrink-0 h-10 w-10 rounded-md bg-purple-100 flex items-center justify-center mr-3">
                                    <i data-feather="briefcase" class="text-purple-600 w-5 h-5"></i>
                                </div>
                                <div>
                                    <h3 class="text-sm font-semibold text-gray-800">React Developer</h3>
                                    <p class="text-sm text-gray-500">Digital Agency</p>
                                </div>
                            </div>
                            <div class="col-span-2 flex items-center">
                                <span class="px-2 py-1 rounded-full text-xs font-medium bg-purple-100 text-purple-800">Offer Received</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                <span>1/13/2024</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="check-circle" class="w-4 h-4 mr-1 text-green-500"></i>
                                <span>Review offer</span>
                            </div>
                            <div class="col-span-1 flex items-center justify-end">
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i data-feather="more-vertical" class="w-4 h-4 text-gray-500"></i>
                                </button>
                            </div>
                        </div>

                        <!-- Application 4 -->
                        <div class="application-card grid grid-cols-12 px-6 py-4 hover:bg-gray-50 transition-all duration-200">
                            <div class="col-span-5 flex items-center">
                                <div class="flex-shrink-0 h-10 w-10 rounded-md bg-green-100 flex items-center justify-center mr-3">
                                    <i data-feather="briefcase" class="text-green-600 w-5 h-5"></i>
                                </div>
                                <div>
                                    <h3 class="text-sm font-semibold text-gray-800">Software Engineer</h3>
                                    <p class="text-sm text-gray-500">InnovateLab</p>
                                </div>
                            </div>
                            <div class="col-span-2 flex items-center">
                                <span class="px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">Applied</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="calendar" class="w-4 h-4 mr-1"></i>
                                <span>1/12/2024</span>
                            </div>
                            <div class="col-span-2 flex items-center text-sm text-gray-500">
                                <i data-feather="clock" class="w-4 h-4 mr-1"></i>
                                <span>Wait for response</span>
                            </div>
                            <div class="col-span-1 flex items-center justify-end">
                                <button class="p-2 rounded-full hover:bg-gray-100">
                                    <i data-feather="more-vertical" class="w-4 h-4 text-gray-500"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="px-6 py-4 border-t border-gray-100 text-center">
                        <a href="#" class="text-indigo-600 font-medium text-sm hover:text-indigo-700">Load more applications</a>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-white border-t border-gray-200 py-4">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row justify-between items-center">
                <p class="text-sm text-gray-500 mb-2 md:mb-0">© 2024 AplyFlow. All rights reserved.</p>
                <div class="flex space-x-6">
                    <a href="#" class="text-gray-500 hover:text-gray-700">
                        <i data-feather="github" class="w-5 h-5"></i>
                    </a>
                    <a href="#" class="text-gray-500 hover:text-gray-700">
                        <i data-feather="twitter" class="w-5 h-5"></i>
                    </a>
                    <a href="#" class="text-gray-500 hover:text-gray-700">
                        <i data-feather="linkedin" class="w-5 h-5"></i>
                    </a>
                </div>
            </div>
        </footer>
    </div>

    <script>
        feather.replace();
        
        // Toggle sidebar
        const toggleSidebar = document.getElementById('toggleSidebar');
        const mobileToggleSidebar = document.getElementById('mobileToggleSidebar');
        const sidebar = document.querySelector('.sidebar');
        const mainContent = document.querySelector('.ml-64');
        
        function toggleSidebarState() {
            sidebar.classList.toggle('sidebar-collapsed');
            mainContent.classList.toggle('ml-64');
            mainContent.classList.toggle('ml-20');
            
            // Change icon based on state
            const icon = toggleSidebar.querySelector('i');
            if (sidebar.classList.contains('sidebar-collapsed')) {
                icon.setAttribute('data-feather', 'chevron-right');
            } else {
                icon.setAttribute('data-feather', 'chevron-left');
            }
            feather.replace();
        }
        
        toggleSidebar.addEventListener('click', toggleSidebarState);
        mobileToggleSidebar.addEventListener('click', toggleSidebarState);

        // Close sidebar on mobile when clicking outside
        document.addEventListener('click', function(event) {
            const isClickInsideSidebar = sidebar.contains(event.target);
            const isClickOnToggle = event.target === toggleSidebar || toggleSidebar.contains(event.target);
            const isClickOnMobileToggle = event.target === mobileToggleSidebar || mobileToggleSidebar.contains(event.target);
            
            if (window.innerWidth <= 768 && !isClickInsideSidebar && !isClickOnToggle && !isClickOnMobileToggle && !sidebar.classList.contains('sidebar-collapsed')) {
                toggleSidebarState();
            }
        });

        // Responsive behavior
        function handleResize() {
            if (window.innerWidth <= 768) {
                sidebar.classList.add('sidebar-collapsed');
                mainContent.classList.remove('ml-64');
                mainContent.classList.add('ml-20');
                const icon = toggleSidebar.querySelector('i');
                icon.setAttribute('data-feather', 'chevron-right');
                feather.replace();
            } else {
                sidebar.classList.remove('sidebar-collapsed');
                mainContent.classList.add('ml-64');
                mainContent.classList.remove('ml-20');
                const icon = toggleSidebar.querySelector('i');
                icon.setAttribute('data-feather', 'chevron-left');
                feather.replace();
            }
        }

        // Initialize on load
        window.addEventListener('load', handleResize);
        window.addEventListener('resize', handleResize);
    </script>
</body>
</html>