Spaces:
Paused
Paused
File size: 13,877 Bytes
3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 5c64dc0 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 4991915 3c4bd31 5c64dc0 4991915 5c64dc0 4991915 5c64dc0 4991915 5c64dc0 4991915 5c64dc0 4991915 5c64dc0 4991915 5c64dc0 4991915 3c4bd31 4991915 |
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 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
{% extends "base.html" %}
{% block title %}My Applications - Codingo{% endblock %}
{% block content %}
<section class="content-section">
<div class="section-header">
<h2>My Applications</h2>
<p>Track and manage your job applications</p>
</div>
<ul class="breadcrumbs">
<li><a href="{{ url_for('index') }}">Home</a></li>
<li>My Applications</li>
</ul>
<!-- Interview Guidelines Section -->
<div class="interview-guidelines">
<div class="guidelines-header">
<h3><span class="icon">π―</span> Important Interview Guidelines</h3>
</div>
<div class="guidelines-content">
<div class="guideline-item">
<span class="guideline-icon">β‘</span>
<div class="guideline-text">
<strong>One-time opportunity:</strong> The interview can be taken only once, so please be well-prepared.
</div>
</div>
<div class="guideline-item">
<span class="guideline-icon">π§</span>
<div class="guideline-text">
<strong>Environment:</strong> Ensure you're in a quiet space with a stable internet connection.
</div>
</div>
<div class="guideline-item">
<span class="guideline-icon">π</span>
<div class="guideline-text">
<strong>Purpose:</strong> This helps companies shortlist the most relevant candidates for the role.
</div>
</div>
<div class="guideline-item">
<span class="guideline-icon">π―</span>
<div class="guideline-text">
<strong>Customization:</strong> Questions are tailored based on your CV and job requirements.
</div>
</div>
<div class="guideline-item">
<span class="guideline-icon">β±οΈ</span>
<div class="guideline-text">
<strong>Duration:</strong> 10-15 minutes including general and skill-based questions.
</div>
</div>
</div>
</div>
<!-- Applications Grid -->
<div class="applications-container">
{% if applications %}
<div class="applications-grid">
{% for application in applications %}
<div class="application-card" data-status="{{ application.status }}">
<div class="card-status-badge status-{{ application.status.lower().replace(' ', '-') }}">
{{ application.status }}
</div>
<div class="application-header">
<h3>{{ application.job.role if application.job else 'Unknown Role' }}</h3>
<div class="company-info">
<span class="company-name">{{ application.job.company if application.job else '' }}</span>
{% if application.job and application.job.location %}
<span class="location">π {{ application.job.location }}</span>
{% endif %}
</div>
</div>
<div class="application-body">
<div class="application-meta">
<span class="meta-item">
<i class="icon">π
</i>
Applied {{ application.date_applied.strftime('%B %d, %Y') }}
</span>
{% if application.job and application.job.seniority %}
<span class="meta-item">
<i class="icon">πΌ</i>
{{ application.job.seniority }}
</span>
{% endif %}
</div>
{% if application.job %}
<p class="job-description">
{{ application.job.description[:150] }}{% if application.job.description|length > 150 %}...{% endif %}
</p>
{% endif %}
</div>
<div class="application-footer">
{% if application.job %}
<a href="{{ url_for('job_detail', job_id=application.job.id) }}" class="btn btn-outline btn-sm">
<span class="btn-icon">ποΈ</span> View Job
</a>
{% endif %}
{% if application.extracted_features %}
<a href="{{ url_for('interview_page', job_id=application.job.id) }}" class="btn btn-primary btn-sm">
<span class="btn-icon">π€</span> Take Interview
</a>
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class="empty-state">
<div class="empty-state-icon">π</div>
<h3>No Applications Yet</h3>
<p>You haven't applied to any jobs yet. Start exploring opportunities!</p>
<a href="{{ url_for('jobs') }}" class="btn btn-primary">
<span class="btn-icon">π</span> Browse Jobs
</a>
</div>
{% endif %}
</div>
<!-- Stats Section -->
{% if applications %}
<div class="applications-stats">
<div class="stat-card">
<div class="stat-number">{{ applications|length }}</div>
<div class="stat-label">Total Applications</div>
</div>
<div class="stat-card">
<div class="stat-number">{{ applications|selectattr('status', 'equalto', 'pending')|list|length }}</div>
<div class="stat-label">Pending Review</div>
</div>
<div class="stat-card">
<div class="stat-number">{{ applications|selectattr('extracted_features')|list|length }}</div>
<div class="stat-label">Ready for Interview</div>
</div>
</div>
{% endif %}
</section>
<style>
/* Section Header */
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-header h2 {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 0.5rem;
position: relative;
display: inline-block;
}
.section-header h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: linear-gradient(to right, var(--primary), var(--accent));
}
.section-header p {
color: #666;
font-size: 1.1rem;
}
/* Interview Guidelines */
.interview-guidelines {
background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
border-radius: 12px;
padding: 2rem;
margin: 2rem 0;
box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
border: 1px solid rgba(67, 97, 238, 0.1);
}
.guidelines-header {
margin-bottom: 1.5rem;
}
.guidelines-header h3 {
color: var(--primary);
font-size: 1.5rem;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.guidelines-header .icon {
font-size: 1.75rem;
}
.guidelines-content {
display: grid;
gap: 1rem;
}
.guideline-item {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 0.75rem;
background: white;
border-radius: 8px;
transition: all 0.3s ease;
}
.guideline-item:hover {
transform: translateX(5px);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.guideline-icon {
font-size: 1.5rem;
min-width: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
.guideline-text {
flex: 1;
line-height: 1.6;
}
.guideline-text strong {
color: var(--primary);
}
/* Applications Container */
.applications-container {
margin: 3rem 0;
}
/* Applications Grid */
.applications-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1.5rem;
}
/* Application Card */
.application-card {
background: white;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
position: relative;
transition: all 0.3s ease;
overflow: hidden;
display: flex;
flex-direction: column;
}
.application-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
/* Status Badge */
.card-status-badge {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
}
.status-pending {
background-color: #fff3cd;
color: #856404;
}
.status-approved {
background-color: #d4edda;
color: #155724;
}
.status-rejected {
background-color: #f8d7da;
color: #721c24;
}
.status-interview-scheduled {
background-color: #d1ecf1;
color: #0c5460;
}
/* Application Header */
.application-header {
padding: 1.5rem 1.5rem 0;
}
.application-header h3 {
color: var(--primary);
margin: 0 0 0.5rem 0;
font-size: 1.5rem;
}
.company-info {
display: flex;
flex-wrap: wrap;
gap: 1rem;
color: #666;
font-size: 0.95rem;
}
.company-name {
font-weight: 600;
color: var(--dark);
}
/* Application Body */
.application-body {
padding: 1rem 1.5rem;
flex: 1;
}
.application-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.9rem;
color: #666;
}
.meta-item {
display: flex;
align-items: center;
gap: 0.25rem;
}
.meta-item .icon {
font-size: 1rem;
}
.job-description {
color: #495057;
line-height: 1.6;
margin: 0;
}
/* Application Footer */
.application-footer {
padding: 0 1.5rem 1.5rem;
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.btn-sm {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 4rem 2rem;
background: #f8f9fa;
border-radius: 12px;
border: 2px dashed #dee2e6;
}
.empty-state-icon {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}
.empty-state h3 {
color: var(--primary);
margin-bottom: 0.5rem;
}
.empty-state p {
color: #666;
margin-bottom: 2rem;
}
/* Stats Section */
.applications-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
}
.stat-card {
background: white;
padding: 2rem;
border-radius: 12px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
text-align: center;
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 0.5rem;
}
.stat-label {
color: #666;
font-size: 1rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.section-header h2 {
font-size: 2rem;
}
.interview-guidelines {
padding: 1.5rem;
}
.guidelines-header h3 {
font-size: 1.25rem;
}
.guideline-item {
padding: 0.5rem;
}
.guideline-icon {
font-size: 1.25rem;
}
.applications-grid {
grid-template-columns: 1fr;
}
.application-card {
margin-bottom: 1rem;
}
.applications-stats {
grid-template-columns: 1fr;
}
.stat-card {
padding: 1.5rem;
}
}
@media (max-width: 480px) {
.company-info {
flex-direction: column;
gap: 0.5rem;
}
.application-meta {
flex-direction: column;
gap: 0.5rem;
}
.application-footer {
flex-direction: column;
}
.application-footer .btn {
width: 100%;
justify-content: center;
}
}
/* Loading Animation */
@keyframes shimmer {
0% {
background-position: -1000px 0;
}
100% {
background-position: 1000px 0;
}
}
.loading {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 1000px 100%;
animation: shimmer 2s infinite;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Add animation to cards on page load
const cards = document.querySelectorAll('.application-card');
cards.forEach((card, index) => {
setTimeout(() => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
card.style.animation = 'fadeInUp 0.5s ease forwards';
}, index * 100);
});
// Filter functionality (if needed in future)
const statusBadges = document.querySelectorAll('.card-status-badge');
statusBadges.forEach(badge => {
badge.addEventListener('click', function() {
const status = this.textContent.trim();
// Add filter logic here if needed
});
});
});
// Animation keyframes
const style = document.createElement('style');
style.textContent = `
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
`;
document.head.appendChild(style);
</script>
{% endblock %} |