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>Skills - 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; | |
| } | |
| .skills-display { | |
| background-color: #f8f9fa; | |
| border: 1px solid #e9ecef; | |
| border-radius: 8px; | |
| padding: 20px; | |
| margin-top: 20px; | |
| min-height: 100px; | |
| } | |
| .skill-tag { | |
| display: inline-block; | |
| background-color: #4e73df; | |
| color: white; | |
| padding: 5px 12px; | |
| margin: 5px; | |
| border-radius: 20px; | |
| font-size: 0.9rem; | |
| position: relative; | |
| } | |
| .skill-tag .remove-skill { | |
| margin-left: 8px; | |
| cursor: pointer; | |
| font-size: 0.8rem; | |
| opacity: 0.7; | |
| } | |
| .skill-tag .remove-skill:hover { | |
| opacity: 1; | |
| } | |
| .empty-skills { | |
| text-align: center; | |
| color: #6c757d; | |
| font-style: italic; | |
| padding: 20px; | |
| } | |
| .help-text { | |
| font-size: 0.875rem; | |
| color: #6c757d; | |
| margin-top: 5px; | |
| } | |
| .skills-preview-section { | |
| margin-top: 30px; | |
| } | |
| .skills-preview-section h5 { | |
| color: #495057; | |
| margin-bottom: 15px; | |
| } | |
| </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 class="active">Skills</span> | |
| <span>→</span> | |
| <span>Achievements</span> | |
| <span>→</span> | |
| <span>Preview</span> | |
| </div> | |
| <h2 class="section-title">Skills</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 %} | |
| <form method="POST" action="{{ url_for('create_skills') }}" id="skillsForm"> | |
| <div class="mb-3"> | |
| <label for="skills" class="form-label">Enter Your Skills</label> | |
| <textarea class="form-control" id="skills" name="skills" rows="4" | |
| placeholder="Enter your skills separated by commas. For example: Python, JavaScript, Project Management, Communication, Data Analysis...">{{ form_data.skills if form_data }}</textarea> | |
| <div class="help-text"> | |
| Enter your technical and soft skills separated by commas. Each skill will be displayed as a separate tag. | |
| </div> | |
| {% if form_errors.skills %} | |
| <div class="error-message">{{ form_errors.skills[0] }}</div> | |
| {% endif %} | |
| </div> | |
| <div class="skills-preview-section"> | |
| <h5><i class="fas fa-eye"></i> Skills Preview</h5> | |
| <div class="skills-display" id="skillsPreview"> | |
| {% if form_data.skills_preview %} | |
| {% for skill in form_data.skills_preview %} | |
| <span class="skill-tag"> | |
| {{ skill }} | |
| <span class="remove-skill" onclick="removeSkill(this)">×</span> | |
| </span> | |
| {% endfor %} | |
| {% else %} | |
| <div class="empty-skills"> | |
| Your skills will appear here as you type them above | |
| </div> | |
| {% endif %} | |
| </div> | |
| </div> | |
| <div class="navigation-buttons"> | |
| <div> | |
| <a href="{{ url_for('create_education') }}" class="btn btn-outline-secondary"> | |
| <i class="fas fa-arrow-left"></i> Back | |
| </a> | |
| <button type="button" class="btn btn-outline-primary" onclick="skipToAchievements()"> | |
| 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 skillsTextarea = document.getElementById('skills'); | |
| const skillsPreview = document.getElementById('skillsPreview'); | |
| let skills = []; | |
| // Initialize skills from form data if exists | |
| {% if form_data.skills_preview %} | |
| skills = {{ form_data.skills_preview|tojson }}; | |
| {% endif %} | |
| function updateSkillsPreview() { | |
| const input = skillsTextarea.value; | |
| const newSkills = input.split(',').map(skill => skill.trim()).filter(skill => skill); | |
| // Update preview | |
| if (newSkills.length === 0) { | |
| skillsPreview.innerHTML = '<div class="empty-skills">Your skills will appear here as you type them above</div>'; | |
| } else { | |
| skillsPreview.innerHTML = newSkills.map(skill => ` | |
| <span class="skill-tag"> | |
| ${skill} | |
| <span class="remove-skill" onclick="removeSkill(this)">×</span> | |
| </span> | |
| `).join(''); | |
| } | |
| } | |
| function removeSkill(element) { | |
| const skillTag = element.parentElement; | |
| const skillText = skillTag.textContent.replace('×', '').trim(); | |
| // Remove from textarea | |
| const currentSkills = skillsTextarea.value.split(',').map(s => s.trim()).filter(s => s); | |
| const updatedSkills = currentSkills.filter(skill => skill !== skillText); | |
| skillsTextarea.value = updatedSkills.join(', '); | |
| // Update preview | |
| updateSkillsPreview(); | |
| } | |
| function skipToAchievements() { | |
| document.getElementById('skillsForm').action = '{{ url_for("create_achievements") }}'; | |
| document.getElementById('skillsForm').submit(); | |
| } | |
| // Update preview as user types | |
| skillsTextarea.addEventListener('input', updateSkillsPreview); | |
| // Initialize preview on page load | |
| updateSkillsPreview(); | |
| </script> | |
| </body> | |
| </html> |