Spaces:
Running
Running
File size: 18,019 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - 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;
}
.stats-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.application-card:hover {
transform: translateY(-3px);
}
</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-indigo-600 bg-indigo-50">
<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-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">Dashboard</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>
<!-- Dashboard Content -->
<main class="flex-1">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="mb-8">
<h2 class="text-2xl font-bold text-gray-800 mb-2">Track your job application progress</h2>
<p class="text-gray-600">Stay organized and increase your chances of landing that dream job</p>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-10">
<!-- Total Applications -->
<div class="stats-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
<div class="flex items-center justify-between mb-4">
<h3 class="text-sm font-medium text-gray-500">Total Applications</h3>
<div class="p-2 rounded-full bg-indigo-100">
<i data-feather="layers" class="text-indigo-600 w-4 h-4"></i>
</div>
</div>
<div class="flex items-end">
<p class="text-3xl font-bold text-gray-800 mr-2">12</p>
<span class="text-green-500 text-sm font-medium flex items-center">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
5.2%
</span>
</div>
</div>
<!-- Pending -->
<div class="stats-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
<div class="flex items-center justify-between mb-4">
<h3 class="text-sm font-medium text-gray-500">Pending</h3>
<div class="p-2 rounded-full bg-yellow-100">
<i data-feather="clock" class="text-yellow-500 w-4 h-4"></i>
</div>
</div>
<div class="flex items-end">
<p class="text-3xl font-bold text-gray-800 mr-2">3</p>
</div>
</div>
<!-- Applied -->
<div class="stats-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
<div class="flex items-center justify-between mb-4">
<h3 class="text-sm font-medium text-gray-500">Applied</h3>
<div class="p-2 rounded-full bg-green-100">
<i data-feather="send" class="text-green-500 w-4 h-4"></i>
</div>
</div>
<div class="flex items-end">
<p class="text-3xl font-bold text-gray-800 mr-2">6</p>
</div>
</div>
<!-- Rejected -->
<div class="stats-card bg-white rounded-xl shadow-md p-6 transition-all duration-300">
<div class="flex items-center justify-between mb-4">
<h3 class="text-sm font-medium text-gray-500">Rejected</h3>
<div class="p-2 rounded-full bg-red-100">
<i data-feather="x" class="text-red-500 w-4 h-4"></i>
</div>
</div>
<div class="flex items-end">
<p class="text-3xl font-bold text-gray-800 mr-2">0</p>
</div>
</div>
</div>
<!-- Recent Applications -->
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="px-6 py-4 border-b border-gray-100">
<h2 class="text-lg font-semibold text-gray-800">Recent Applications</h2>
</div>
<div class="divide-y divide-gray-100">
<!-- Application 1 -->
<div class="application-card px-6 py-4 hover:bg-gray-50 transition-all duration-200">
<div class="flex items-start justify-between">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 mb-1">Senior Frontend Developer</h3>
<p class="text-gray-600 mb-2">TechCorp</p>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="w-4 h-4 mr-1"></i>
<span>Interview 1/15/2024</span>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800">In Progress</span>
<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>
<!-- Application 2 -->
<div class="application-card px-6 py-4 hover:bg-gray-50 transition-all duration-200">
<div class="flex items-start justify-between">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 mb-1">Full Stack Engineer</h3>
<p class="text-gray-600 mb-2">StartupXYZ</p>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="w-4 h-4 mr-1"></i>
<span>Applied 1/14/2024</span>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">Applied</span>
<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>
<!-- Application 3 -->
<div class="application-card px-6 py-4 hover:bg-gray-50 transition-all duration-200">
<div class="flex items-start justify-between">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 mb-1">React Developer</h3>
<p class="text-gray-600 mb-2">Digital Agency</p>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="w-4 h-4 mr-1"></i>
<span>Offer 1/13/2024</span>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="px-2 py-1 rounded-full text-xs font-medium bg-purple-100 text-purple-800">Offer Received</span>
<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>
<!-- Application 4 -->
<div class="application-card px-6 py-4 hover:bg-gray-50 transition-all duration-200">
<div class="flex items-start justify-between">
<div class="flex-1">
<h3 class="text-lg font-semibold text-gray-800 mb-1">Software Engineer</h3>
<p class="text-gray-600 mb-2">InnovateLab</p>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="w-4 h-4 mr-1"></i>
<span>Applied 1/12/2024</span>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="px-2 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">Applied</span>
<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>
<div class="px-6 py-4 border-t border-gray-100 text-center">
<a href="applications.html" class="text-indigo-600 font-medium text-sm hover:text-indigo-700">View all 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> |