|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Skill Sync</title> |
| 7 | + <!-- Bootstrap CSS --> |
| 8 | + <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> |
| 9 | + <!-- FontAwesome Icons for a more polished UI --> |
| 10 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> |
| 11 | + <style> |
| 12 | + body { |
| 13 | + background-color: #f8f9fa; |
| 14 | + } |
| 15 | + h1 { |
| 16 | + font-size: 2.5rem; |
| 17 | + text-align: center; |
| 18 | + margin-bottom: 40px; |
| 19 | + color: #007bff; |
| 20 | + } |
| 21 | + form { |
| 22 | + background-color: #fff; |
| 23 | + padding: 30px; |
| 24 | + border-radius: 8px; |
| 25 | + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); |
| 26 | + } |
| 27 | + .form-group label { |
| 28 | + font-weight: bold; |
| 29 | + } |
| 30 | + .form-check-label { |
| 31 | + font-size: 1rem; |
| 32 | + } |
| 33 | + .btn { |
| 34 | + background-color: #007bff; |
| 35 | + border-color: #007bff; |
| 36 | + color: white; |
| 37 | + font-size: 1.1rem; |
| 38 | + padding: 10px 20px; |
| 39 | + border-radius: 5px; |
| 40 | + } |
| 41 | + .btn:hover { |
| 42 | + background-color: #0056b3; |
| 43 | + border-color: #0056b3; |
| 44 | + } |
| 45 | + .analysis-section { |
| 46 | + text-align: center; |
| 47 | + margin-top: 50px; |
| 48 | + } |
| 49 | + .skill-list { |
| 50 | + list-style: none; |
| 51 | + padding: 0; |
| 52 | + text-align: left; |
| 53 | + } |
| 54 | + .skill-list li { |
| 55 | + padding: 10px 0; |
| 56 | + border-bottom: 1px solid #ddd; |
| 57 | + } |
| 58 | + .form-group .dynamic-skill { |
| 59 | + margin-top: 10px; |
| 60 | + } |
| 61 | + .btn-add-skill { |
| 62 | + background-color: #28a745; |
| 63 | + margin-left: 10px; |
| 64 | + } |
| 65 | + #manualSkillsInput input { |
| 66 | + margin-bottom: 10px; |
| 67 | + } |
| 68 | + .btn-proceed { |
| 69 | + margin-top: 20px; |
| 70 | + background-color: #28a745; |
| 71 | + } |
| 72 | + </style> |
| 73 | +</head> |
| 74 | +<body> |
| 75 | + <div class="container mt-5"> |
| 76 | + <h1><i class="fas fa-sync-alt"></i> Skill Sync</h1> |
| 77 | + <form action="/" method="post"> |
| 78 | + <div class="form-group"> |
| 79 | + <label for="careerGoal"><i class="fas fa-bullseye"></i> Career Goal:</label> |
| 80 | + <input type="text" class="form-control" id="careerGoal" name="careerGoal" placeholder="Enter your career goal"> |
| 81 | + </div> |
| 82 | + |
| 83 | + <div class="form-check mb-3"> |
| 84 | + <input type="checkbox" class="form-check-input" id="manualSkills" name="manualSkills" onchange="toggleSkillsInput()"> |
| 85 | + <label class="form-check-label" for="manualSkills"><i class="fas fa-pencil-alt"></i> Manually add skills</label> |
| 86 | + </div> |
| 87 | + |
| 88 | + <div id="manualSkillsInput" style="display:none;"> |
| 89 | + <div class="form-group"> |
| 90 | + <label for="skill">Skill:</label> |
| 91 | + <input type="text" class="form-control" id="skill" name="skill[]" placeholder="Enter a skill"> |
| 92 | + <button type="button" class="btn btn-add-skill mt-2" onclick="addSkill()"><i class="fas fa-plus-circle"></i> Add Skill</button> |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + |
| 96 | + <div class="form-check mb-3"> |
| 97 | + <input type="checkbox" class="form-check-input" id="linkedinSkills" name="linkedinSkills" onchange="toggleLinkedinInput()"> |
| 98 | + <label class="form-check-label" for="linkedinSkills"><i class="fab fa-linkedin"></i> Import skills from LinkedIn</label> |
| 99 | + </div> |
| 100 | + |
| 101 | + <div id="linkedinInput" style="display:none;"> |
| 102 | + <div class="form-group"> |
| 103 | + <label for="linkedinUsername"><i class="fab fa-linkedin"></i> LinkedIn Username:</label> |
| 104 | + <input type="text" class="form-control" id="linkedinUsername" name="linkedinUsername" placeholder="Enter your LinkedIn username"> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + |
| 108 | + <button type="submit" class="btn btn-primary btn-block mt-4">Submit</button> |
| 109 | + </form> |
| 110 | + |
| 111 | + {% if profile_data %} |
| 112 | + <div class="analysis-section"> |
| 113 | + {% if gemini_response %} |
| 114 | + <h2>Skill Gap Analysis</h2> |
| 115 | + <p>{{ gemini_response }}</p> |
| 116 | + {% endif %} |
| 117 | + {% if courses %} |
| 118 | + <h2>Recommended Courses</h2> |
| 119 | + <ul class="skill-list"> |
| 120 | + {% for course in courses %} |
| 121 | + <li>{{ course }}</li> |
| 122 | + {% endfor %} |
| 123 | + </ul> |
| 124 | + <button class="btn btn-proceed btn-lg" onclick="gotoHome()">Proceed to EduConnect</button> |
| 125 | + {% endif %} |
| 126 | + </div> |
| 127 | + {% endif %} |
| 128 | + </div> |
| 129 | + |
| 130 | + <!-- Bootstrap JS and jQuery --> |
| 131 | + <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> |
| 132 | + <script src=" https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" ></script> |
| 133 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
| 134 | + |
| 135 | + <script> |
| 136 | + function toggleSkillsInput() { |
| 137 | + var manualSkillsInput = document.getElementById("manualSkillsInput"); |
| 138 | + if (document.getElementById("manualSkills").checked) { |
| 139 | + manualSkillsInput.style.display = "block"; |
| 140 | + } else { |
| 141 | + manualSkillsInput.style.display = "none"; |
| 142 | + } |
| 143 | + } |
| 144 | + |
| 145 | + function toggleLinkedinInput() { |
| 146 | + var linkedinInput = document.getElementById("linkedinInput"); |
| 147 | + if (document.getElementById("linkedinSkills").checked) { |
| 148 | + linkedinInput.style.display = "block"; |
| 149 | + } else { |
| 150 | + linkedinInput.style.display = "none"; |
| 151 | + } |
| 152 | + } |
| 153 | + |
| 154 | + function addSkill() { |
| 155 | + var skillInput = document.createElement("input"); |
| 156 | + skillInput.setAttribute("type", "text"); |
| 157 | + skillInput.setAttribute("class", "form-control dynamic-skill"); |
| 158 | + skillInput.setAttribute("name", "skill[]"); |
| 159 | + |
| 160 | + var skill = document.getElementById("skill").value.trim(); |
| 161 | + if (skill !== "") { |
| 162 | + skillInput.value = skill; |
| 163 | + document.getElementById("skill").value = ""; |
| 164 | + document.getElementById("manualSkillsInput").appendChild(skillInput); |
| 165 | + } |
| 166 | + } |
| 167 | + |
| 168 | + function gotoHome(){ |
| 169 | + window.location.href = "http://localhost:5000"; |
| 170 | + } |
| 171 | + </script> |
| 172 | +</body> |
| 173 | +</html> |
0 commit comments