File size: 21,693 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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profile - 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;
        }
        .profile-section:hover {
            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-gray-700 hover:bg-indigo-50 hover:text-indigo-600 transition">
                <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-indigo-600 bg-indigo-50">
                <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">Profile</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>

        <!-- Profile Content -->
        <main class="flex-1">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
                    <!-- Left Column -->
                    <div class="lg:col-span-1">
                        <!-- Profile Card -->
                        <div class="profile-section bg-white rounded-xl shadow-md p-6 transition-all duration-200 mb-6">
                            <div class="flex flex-col items-center">
                                <div class="w-24 h-24 rounded-full bg-indigo-100 flex items-center justify-center mb-4">
                                    <span class="text-3xl font-bold text-indigo-600">JD</span>
                                </div>
                                <h3 class="text-xl font-semibold text-gray-800 mb-1">John Doe</h3>
                                <p class="text-gray-600 mb-4">Software Developer</p>
                                <div class="w-full border-t border-gray-200 pt-4">
                                    <div class="flex justify-between mb-2">
                                        <span class="text-sm text-gray-500">Member Since</span>
                                        <span class="text-sm font-medium">Jan 2024</span>
                                    </div>
                                    <div class="flex justify-between mb-2">
                                        <span class="text-sm text-gray-500">Applications</span>
                                        <span class="text-sm font-medium">12</span>
                                    </div>
                                    <div class="flex justify-between">
                                        <span class="text-sm text-gray-500">Subscription</span>
                                        <span class="text-sm font-medium text-indigo-600">Premium</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Quick Actions -->
                        <div class="profile-section bg-white rounded-xl shadow-md p-6 transition-all duration-200">
                            <h3 class="text-lg font-semibold text-gray-800 mb-4">Quick Actions</h3>
                            <div class="space-y-2">
                                <a href="#" 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="settings" class="w-5 h-5"></i>
                                    <span class="font-medium">Account Settings</span>
                                </a>
                                <a href="#" 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="credit-card" class="w-5 h-5"></i>
                                    <span class="font-medium">Billing & Plans</span>
                                </a>
                                <a href="#" 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="help-circle" class="w-5 h-5"></i>
                                    <span class="font-medium">Help & Support</span>
                                </a>
                                <a href="#" 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="log-out" class="w-5 h-5"></i>
                                    <span class="font-medium">Sign Out</span>
                                </a>
                            </div>
                        </div>
                    </div>

                    <!-- Right Column -->
                    <div class="lg:col-span-2">
                        <!-- Personal Information -->
                        <div class="profile-section bg-white rounded-xl shadow-md p-6 transition-all duration-200 mb-6">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="text-lg font-semibold text-gray-800">Personal Information</h3>
                                <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Edit</button>
                            </div>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">John</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">Doe</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">john.doe@example.com</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">(555) 123-4567</p>
                                </div>
                                <div class="md:col-span-2">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Bio</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">Experienced software developer with 5+ years in web development. Passionate about creating efficient, scalable applications with clean code.</p>
                                </div>
                            </div>
                        </div>

                        <!-- Professional Information -->
                        <div class="profile-section bg-white rounded-xl shadow-md p-6 transition-all duration-200 mb-6">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="text-lg font-semibold text-gray-800">Professional Information</h3>
                                <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Edit</button>
                            </div>
                            <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Current Position</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">Senior Frontend Developer</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Current Company</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">TechCorp</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Years of Experience</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">5+ years</p>
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Industry</label>
                                    <p class="bg-gray-50 px-3 py-2 rounded-md text-gray-800">Software Development</p>
                                </div>
                                <div class="md:col-span-2">
                                    <label class="block text-sm font-medium text-gray-700 mb-1">Skills</label>
                                    <div class="flex flex-wrap gap-2 bg-gray-50 px-3 py-2 rounded-md">
                                        <span class="px-2 py-1 rounded-full text-xs bg-indigo-100 text-indigo-800">JavaScript</span>
                                        <span class="px-2 py-1 rounded-full text-xs bg-indigo-100 text-indigo-800">React</span>
                                        <span class="px-2 py-1 rounded-full text-xs bg-indigo-100 text-indigo-800">TypeScript</span>
                                        <span class="px-2 py-1 rounded-full text-xs bg-indigo-100 text-indigo-800">Node.js</span>
                                        <span class="px-2 py-1 rounded-full text-xs bg-indigo-100 text-indigo-800">CSS</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Resume & Documents -->
                        <div class="profile-section bg-white rounded-xl shadow-md p-6 transition-all duration-200">
                            <div class="flex justify-between items-center mb-4">
                                <h3 class="text-lg font-semibold text-gray-800">Resume & Documents</h3>
                                <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Upload</button>
                            </div>
                            <div class="space-y-3">
                                <div class="flex items-center justify-between bg-gray-50 px-4 py-3 rounded-md">
                                    <div class="flex items-center">
                                        <i data-feather="file-text" class="text-indigo-600 w-5 h-5 mr-3"></i>
                                        <div>
                                            <h4 class="text-sm font-medium text-gray-800">John_Doe_Resume.pdf</h4>
                                            <p class="text-xs text-gray-500">Updated 2 days ago</p>
                                        </div>
                                    </div>
                                    <div class="flex space-x-2">
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="download" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="trash-2" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                    </div>
                                </div>
                                <div class="flex items-center justify-between bg-gray-50 px-4 py-3 rounded-md">
                                    <div class="flex items-center">
                                        <i data-feather="file-text" class="text-indigo-600 w-5 h-5 mr-3"></i>
                                        <div>
                                            <h4 class="text-sm font-medium text-gray-800">Cover_Letter_TechCorp.pdf</h4>
                                            <p class="text-xs text-gray-500">Updated 1 week ago</p>
                                        </div>
                                    </div>
                                    <div class="flex space-x-2">
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="download" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="trash-2" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                    </div>
                                </div>
                                <div class="flex items-center justify-between bg-gray-50 px-4 py-3 rounded-md">
                                    <div class="flex items-center">
                                        <i data-feather="file-text" class="text-indigo-600 w-5 h-5 mr-3"></i>
                                        <div>
                                            <h4 class="text-sm font-medium text-gray-800">Portfolio_2024.pdf</h4>
                                            <p class="text-xs text-gray-500">Updated 3 weeks ago</p>
                                        </div>
                                    </div>
                                    <div class="flex space-x-2">
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="download" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                        <button class="p-1 rounded-md hover:bg-gray-200">
                                            <i data-feather="trash-2" class="w-4 h-4 text-gray-500"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </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>