Spaces:
Configuration error
Configuration error
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Achievements - AI Resume Builder</title> | |
| <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| body { | |
| background-color: #f8f9fa; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| .form-container { | |
| max-width: 800px; | |
| margin: 40px auto; | |
| padding: 30px; | |
| background: white; | |
| border-radius: 10px; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .section-title { | |
| color: #2c3e50; | |
| margin-bottom: 30px; | |
| text-align: center; | |
| font-weight: 600; | |
| } | |
| .btn-logout { | |
| position: absolute; | |
| top: 20px; | |
| right: 20px; | |
| } | |
| .form-label { | |
| font-weight: 500; | |
| margin-bottom: 8px; | |
| color: #495057; | |
| } | |
| .form-control:focus { | |
| border-color: #4e73df; | |
| box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25); | |
| } | |
| .navigation-buttons { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-top: 30px; | |
| padding-top: 20px; | |
| border-top: 1px solid #e9ecef; | |
| } | |
| .error-message { | |
| color: #e74c3c; | |
| font-size: 0.875rem; | |
| margin-top: 5px; | |
| } | |
| .progress-indicator { | |
| margin-bottom: 30px; | |
| text-align: center; | |
| color: #6c757d; | |
| font-size: 0.9rem; | |
| } | |
| .progress-indicator span { | |
| display: inline-block; | |
| margin: 0 10px; | |
| } | |
| .progress-indicator span.active { | |
| color: #4e73df; | |
| font-weight: 600; | |
| } | |
| .achievements-display { | |
| background-color: #f8f9fa; | |
| border: 1px solid #e9ecef; | |
| border-radius: 8px; | |
| padding: 20px; | |
| margin-top: 20px; | |
| min-height: 100px; | |
| } | |
| .achievement-item { | |
| display: flex; | |
| align-items: center; | |
| background-color: white; | |
| border: 1px solid #dee2e6; | |
| border-radius: 6px; | |
| padding: 12px 15px; | |
| margin-bottom: 10px; | |
| transition: all 0.3s; | |
| } | |
| .achievement-item:hover { | |
| border-color: #4e73df; | |
| box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | |
| } | |
| .achievement-item .achievement-icon { | |
| color: #ffc107; | |
| margin-right: 15px; | |
| font-size: 1.2rem; | |
| } | |
| .achievement-item .achievement-text { | |
| flex: 1; | |
| margin: 0; | |
| } | |
| .achievement-item .remove-achievement { | |
| color: #dc3545; | |
| cursor: pointer; | |
| opacity: 0.6; | |
| transition: opacity 0.3s; | |
| } | |
| .achievement-item .remove-achievement:hover { | |
| opacity: 1; | |
| } | |
| .empty-achievements { | |
| text-align: center; | |
| color: #6c757d; | |
| font-style: italic; | |
| padding: 20px; | |
| } | |
| .help-text { | |
| font-size: 0.875rem; | |
| color: #6c757d; | |
| margin-top: 5px; | |
| } | |
| .achievements-preview-section { | |
| margin-top: 30px; | |
| } | |
| .achievements-preview-section h5 { | |
| color: #495057; | |
| margin-bottom: 15px; | |
| } | |
| .form-hint { | |
| background-color: #e3f2fd; | |
| border-left: 4px solid #2196f3; | |
| padding: 12px 15px; | |
| margin-bottom: 20px; | |
| border-radius: 4px; | |
| } | |
| .form-hint p { | |
| margin: 0; | |
| color: #1976d2; | |
| font-size: 0.9rem; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | |
| <div class="container"> | |
| <a class="navbar-brand" href="{{ url_for('profile') }}">AI Resume Builder</a> | |
| <div class="ms-auto"> | |
| <a href="{{ url_for('logout') }}" class="btn btn-outline-light"> | |
| <i class="fas fa-sign-out-alt"></i> Logout | |
| </a> | |
| </div> | |
| </div> | |
| </nav> | |
| <div class="container"> | |
| <div class="form-container"> | |
| <div class="progress-indicator"> | |
| <span>Introduction</span> | |
| <span>→</span> | |
| <span>Profile Summary</span> | |
| <span>→</span> | |
| <span>Work Experience</span> | |
| <span>→</span> | |
| <span>Projects</span> | |
| <span>→</span> | |
| <span>Education</span> | |
| <span>→</span> | |
| <span>Skills</span> | |
| <span>→</span> | |
| <span class="active">Achievements</span> | |
| <span>→</span> | |
| <span>Preview</span> | |
| </div> | |
| <h2 class="section-title">Achievements</h2> | |
| {% with messages = get_flashed_messages(with_categories=true) %} | |
| {% if messages %} | |
| {% for category, message in messages %} | |
| <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert"> | |
| {{ message }} | |
| <button type="button" class="btn-close" data-bs-dismiss="alert"></button> | |
| </div> | |
| {% endfor %} | |
| {% endif %} | |
| {% endwith %} | |
| <div class="form-hint"> | |
| <p><i class="fas fa-lightbulb"></i> <strong>Tip:</strong> Highlight your awards, certifications, publications, or other notable accomplishments. These help make your resume stand out!</p> | |
| </div> | |
| <form method="POST" action="{{ url_for('create_achievements') }}" id="achievementsForm"> | |
| <div class="mb-3"> | |
| <label for="achievements" class="form-label">Enter Your Achievements</label> | |
| <textarea class="form-control" id="achievements" name="achievements" rows="5" | |
| placeholder="Enter your achievements separated by commas. For example: Employee of the Year 2023, AWS Certified Solutions Architect, Published research paper on AI ethics...">{{ form_data.achievements if form_data }}</textarea> | |
| <div class="help-text"> | |
| Enter your awards, certifications, publications, honors, or other achievements separated by commas. Each will be displayed as a separate item. | |
| </div> | |
| {% if form_errors.achievements %} | |
| <div class="error-message">{{ form_errors.achievements[0] }}</div> | |
| {% endif %} | |
| </div> | |
| <div class="achievements-preview-section"> | |
| <h5><i class="fas fa-eye"></i> Achievements Preview</h5> | |
| <div class="achievements-display" id="achievementsPreview"> | |
| {% if form_data.achievements_preview %} | |
| {% for achievement in form_data.achievements_preview %} | |
| <div class="achievement-item"> | |
| <i class="fas fa-trophy achievement-icon"></i> | |
| <p class="achievement-text mb-0">{{ achievement }}</p> | |
| <i class="fas fa-times remove-achievement" onclick="removeAchievement(this)"></i> | |
| </div> | |
| {% endfor %} | |
| {% else %} | |
| <div class="empty-achievements"> | |
| Your achievements will appear here as you type them above | |
| </div> | |
| {% endif %} | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <div> | |
| <a href="{{ url_for('create_skills') }}" class="btn btn-outline-secondary"> | |
| <i class="fas fa-arrow-left"></i> Back | |
| </a> | |
| <button type="button" class="btn btn-outline-primary" onclick="skipToPreview()"> | |
| Skip <i class="fas fa-forward"></i> | |
| </button> | |
| </div> | |
| <div> | |
| <button type="submit" class="btn btn-primary"> | |
| Next <i class="fas fa-arrow-right"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </form> | |
| </div> | |
| </div> | |
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> | |
| <script> | |
| const achievementsTextarea = document.getElementById('achievements'); | |
| const achievementsPreview = document.getElementById('achievementsPreview'); | |
| function updateAchievementsPreview() { | |
| const input = achievementsTextarea.value; | |
| const newAchievements = input.split(',').map(achievement => achievement.trim()).filter(achievement => achievement); | |
| // Update preview | |
| if (newAchievements.length === 0) { | |
| achievementsPreview.innerHTML = '<div class="empty-achievements">Your achievements will appear here as you type them above</div>'; | |
| } else { | |
| achievementsPreview.innerHTML = newAchievements.map(achievement => ` | |
| <div class="achievement-item"> | |
| <i class="fas fa-trophy achievement-icon"></i> | |
| <p class="achievement-text mb-0">${achievement}</p> | |
| <i class="fas fa-times remove-achievement" onclick="removeAchievement(this)"></i> | |
| </div> | |
| `).join(''); | |
| } | |
| } | |
| function removeAchievement(element) { | |
| const achievementItem = element.closest('.achievement-item'); | |
| const achievementText = achievementItem.querySelector('.achievement-text').textContent.trim(); | |
| // Remove from textarea | |
| const currentAchievements = achievementsTextarea.value.split(',').map(a => a.trim()).filter(a => a); | |
| const updatedAchievements = currentAchievements.filter(achievement => achievement !== achievementText); | |
| achievementsTextarea.value = updatedAchievements.join(', '); | |
| // Update preview | |
| updateAchievementsPreview(); | |
| } | |
| function skipToPreview() { | |
| document.getElementById('achievementsForm').action = '{{ url_for("create_preview") }}'; | |
| document.getElementById('achievementsForm').submit(); | |
| } | |
| // Update preview as user types | |
| achievementsTextarea.addEventListener('input', updateAchievementsPreview); | |
| // Initialize preview on page load | |
| updateAchievementsPreview(); | |
| </script> | |
| </body> | |
| </html> |