CareerPath / templates /index.html
yasserrmd's picture
Create templates/index.html
950590a verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Career Path Advisor</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Career Path Advisor</h1>
<form method="post" action="/recommend">
<div class="mb-3">
<label for="skills" class="form-label">Skills (comma-separated):</label>
<input type="text" class="form-control" id="skills" name="skills" required>
</div>
<div class="mb-3">
<label for="interests" class="form-label">Interests (comma-separated):</label>
<input type="text" class="form-control" id="interests" name="interests" required>
</div>
<button type="submit" class="btn btn-primary">Get Recommendations</button>
</form>
{% if recommendations %}
<h2 class="mt-5">Career Recommendations:</h2>
<ul class="list-group mt-3">
{% for recommendation in recommendations %}
<li class="list-group-item">{{ recommendation }}</li>
{% endfor %}
</ul>
{% endif %}
</div>
</body>
</html>