Spaces:
Sleeping
Sleeping
File size: 18,556 Bytes
8098153 0583f91 8098153 f4552a1 0583f91 f4552a1 0583f91 8098153 0583f91 8098153 f4552a1 0583f91 f4552a1 0583f91 f4552a1 8098153 f4552a1 8098153 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 8098153 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 8098153 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 0583f91 f4552a1 8098153 f4552a1 8098153 f4552a1 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 e4d9b49 0583f91 f4552a1 0583f91 8098153 0583f91 8098153 0583f91 8098153 0583f91 8098153 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Student Analyzer</title>
<link rel="stylesheet" href="../static/final.css">
<link rel="stylesheet" href="../static/job_listings.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- Mermaid for flowcharts -->
<script src="https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.min.js"></script>
<!-- svg-pan-zoom for better zoom/drag functionality -->
<script src="https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.6.1/dist/svg-pan-zoom.min.js"></script>
</head>
<body>
<div class="app-container">
<!-- Sidebar -->
<aside class="sidebar">
<header class="app-header">
<h1>Ai</h1>
<p>AI Student Analyzer</p>
</header>
<nav class="main-nav">
<ul>
<li><a href="#dashboard" class="nav-link active">Dashboard</a></li>
<li><a href="#students" class="nav-link">Students</a></li>
<li><a href="#reports" class="nav-link">Reports</a></li>
<li><a href="#job-analysis" class="nav-link">Job Analysis</a></li>
<li><a href="#job-listings" class="nav-link">Job Listings</a></li>
<li><a href="#chat" class="nav-link">Chat</a></li>
</ul>
</nav>
</aside>
<!-- Main Content Area -->
<main class="main-content">
<!-- Top Control Bar -->
<header class="top-bar">
<div class="input-group">
<label for="student-selector">Select Student</label>
<select id="student-selector">
<option value="">-- Select a Student --</option>
</select>
<button id="generate-report-btn" class="btn btn-secondary" disabled>Generate Report</button>
</div>
<div class="input-group">
<label for="job-application-input">Job Application Link</label>
<input type="text" id="job-application-input" placeholder="Paste job application link here...">
<button id="analyze-job-btn" class="btn btn-primary" disabled>Analyze</button>
</div>
</header>
<!-- Loading Spinner -->
<div id="loading-spinner" class="loading-overlay hidden">
<div class="spinner"></div>
<p>Processing...</p>
</div>
<!-- Dashboard / Overview (Simplified) -->
<!-- Dashboard / Class Overview -->
<section id="dashboard" class="content-section active">
<div class="section-header">
<h2>Class Overview</h2>
<div class="header-controls">
<button id="refresh-dashboard-btn" class="btn btn-secondary btn-sm">Refresh Data</button>
</div>
</div>
<!-- Summary Cards -->
<div class="dashboard-grid">
<div class="metric-cards-grid">
<div class="card metric-card">
<div class="metric-icon">π₯</div>
<div class="metric-info">
<h3>Total Students</h3>
<p class="metric" id="total-students-count">--</p>
</div>
</div>
<div class="card metric-card">
<div class="metric-icon">π</div>
<div class="metric-info">
<h3>Class Avg CGPA</h3>
<p class="metric" id="class-avg-cgpa">--</p>
</div>
</div>
<div class="card metric-card">
<div class="metric-icon">π</div>
<div class="metric-info">
<h3>Reports Ready</h3>
<p class="metric" id="reports-ready-count">--</p>
</div>
</div>
</div>
</div>
<!-- Student List Table -->
<div class="card table-container">
<h3>Student Performance & Status</h3>
<div class="table-responsive">
<table class="student-table">
<thead>
<tr>
<th>Student Name</th>
<th>Enrollment No</th>
<th>CGPA</th>
<th>Top Skills</th>
<th>Report Status</th>
<th>Resumes</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="student-table-body">
<!-- Rows will be populated by JS -->
</tbody>
</table>
</div>
</div>
</section>
<!-- Student Report Display Area (Redesigned) -->
<section id="reports" class="content-section hidden">
<!-- Profile Card -->
<div class="student-profile-card card">
<div class="student-header">
<div class="student-photo">
<img id="student-photo" src="/static/default-avatar.png" alt="Student Photo">
</div>
<div class="student-info">
<h2 id="student-name">Student Name</h2>
<p class="student-id" id="student-id">ID: N/A</p>
<div class="student-contact">
<div class="contact-item">
<span class="icon">π±</span>
<span id="student-phone">+91 9876543210</span>
</div>
<div class="contact-item">
<span class="icon">βοΈ</span>
<span id="student-email">student@example.com</span>
</div>
</div>
</div>
</div>
</div>
<!-- AI Analysis Report with Tabs -->
<div class="ai-analysis-report card">
<div class="section-header">
<h2>AI Analysis Report</h2>
<div class="header-controls">
<button id="report-history-btn" class="btn btn-secondary btn-sm">History</button>
<div class="report-tabs">
<button class="tab-btn active" data-tab="summary">Summary</button>
<button class="tab-btn" data-tab="skills">Skills</button>
<button class="tab-btn" data-tab="performance">Performance</button>
</div>
</div>
</div>
<!-- Report History Modal -->
<div id="report-history-modal" class="modal hidden">
<div class="modal-content">
<span class="close-modal">×</span>
<h3>Report History</h3>
<div id="report-history-list">
<!-- List populated by JS -->
</div>
</div>
</div>
<!-- Summary Tab -->
<div id="summary-tab" class="tab-content active">
<div class="summary-content">
<h4>HR Summary</h4>
<p id="hr-summary">Summary will appear here...</p>
</div>
<div class="strengths-weaknesses">
<div class="strengths">
<h4>β Strengths</h4>
<ul id="summary-strengths"></ul>
</div>
<div class="weaknesses">
<h4>β Weaknesses</h4>
<ul id="summary-weaknesses"></ul>
</div>
</div>
</div>
<!-- Skills Tab -->
<div id="skills-tab" class="tab-content">
<div class="skills-table">
<div class="table-header">
<div>Skill</div>
<div>Category</div>
<div>Progress</div>
</div>
<div id="skills-list">
<!-- Skills rows will be populated here -->
</div>
</div>
</div>
<!-- Performance Tab -->
<div id="performance-tab" class="tab-content">
<div class="performance-grid">
<div class="chart-container">
<h4>CGPA Trend</h4>
<canvas id="cgpa-trend-chart"></canvas>
</div>
<div class="chart-container">
<h4>DSA Performance</h4>
<canvas id="dsa-performance-chart"></canvas>
</div>
</div>
</div>
</div>
<!-- AI Suggestion Channel with Tabs -->
<div class="ai-suggestion-channel card">
<div class="section-header">
<h2>AI Suggestion Channel</h2>
<div class="suggestion-tabs">
<button class="tab-btn active" data-tab="action-plan">Actionable Plan</button>
<button class="tab-btn" data-tab="learning-path">Personalized Learning Path</button>
</div>
</div>
<div id="action-plan-tab" class="tab-content active">
<div class="action-plan-content">
<!-- Action items will be populated here -->
</div>
</div>
<div id="learning-path-tab" class="tab-content">
<div class="learning-path-content">
<!-- Learning path items will be populated here -->
</div>
</div>
</div>
</section>
<!-- Job Application Analysis Display Area -->
<section id="job-analysis" class="content-section hidden">
<h2>Job Application Analysis</h2>
<div class="job-analysis-grid">
<div class="job-section job-strengths card">
<h3>Strengths</h3>
<div id="job-strengths-list"></div>
</div>
<div class="job-section job-weaknesses card">
<h3>Weaknesses</h3>
<div id="job-weaknesses-list"></div>
</div>
<div class="job-section job-enhancements card">
<h3>Enhancement Recommendations</h3>
<div id="job-enhancements-list"></div>
</div>
<div class="job-section youtube card">
<h3>Recommended Learning Resources</h3>
<div class="youtube-recommendations" id="job-youtube-recommendations"></div>
</div>
</div>
</section>
<!-- Job Listings Page -->
<!-- Job Listings Section -->
<section id="job-listings" class="content-section hidden">
<div class="section-header">
<h2>Job Market</h2>
<div class="header-controls">
<button id="resume-history-btn" class="btn btn-secondary btn-sm">My Resumes</button>
<div class="job-tabs">
<button class="tab-btn active" data-category="on-campus">On-Campus</button>
<button class="tab-btn" data-category="off-campus">Off-Campus</button>
</div>
</div>
</div>
<div class="job-categories">
<div class="job-category-section" data-category="on-campus">
<h3>Recommended</h3>
<div class="job-listings-grid" id="on-campus-recommended-listings"></div>
<h3>Non-Recommended</h3>
<div class="job-listings-grid" id="on-campus-non-recommended-listings"></div>
</div>
<div class="job-category-section hidden" data-category="off-campus">
<h3>Recommended</h3>
<div class="job-listings-grid" id="off-campus-recommended-listings"></div>
<h3>Non-Recommended</h3>
<div class="job-listings-grid" id="off-campus-non-recommended-listings"></div>
</div>
</div>
</section>
<!-- Resume History Modal -->
<div id="resume-history-modal" class="modal hidden">
<div class="modal-content">
<span class="close-modal" id="close-resume-history-modal">×</span>
<h3>My Resumes</h3>
<div id="resume-history-list">
<!-- List populated by JS -->
</div>
</div>
</div>
<!-- Chatbot Interface -->
<section id="chat" class="content-section hidden">
<h2>Student Q&A</h2>
<div class="chat-layout">
<!-- Sidebar -->
<div class="chat-sidebar">
<button id="new-chat-btn" class="new-chat-btn">+ New Chat</button>
<div id="chat-sessions-list" class="chat-sessions-list">
<!-- Sessions populated by JS -->
</div>
</div>
<!-- Main Chat Area -->
<div class="chat-main">
<div id="chat-history" class="chat-container">
<!-- Messages will appear here -->
<div class="welcome-message">
<p>Select a student to start chatting about their report.</p>
</div>
</div>
<form id="chat-form" class="chat-input-container">
<input type="text" id="chat-input" placeholder="Ask a question about the report..."
autocomplete="off">
<button type="submit" class="btn btn-primary">Send</button>
</form>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Job Details & Application Modal -->
<div id="apply-modal" class="modal hidden">
<div class="modal-content large-modal">
<span class="close-modal" id="close-apply-modal">×</span>
<div class="modal-header">
<h2 id="apply-role">Role Title</h2>
<h3 id="apply-company" class="company-name">Company Name</h3>
<p id="apply-salary" class="salary-tag">Salary</p>
</div>
<div class="modal-body-scroll">
<div class="job-section">
<h4>About the Role</h4>
<p id="apply-description"></p>
</div>
<div class="job-section">
<h4>Key Responsibilities</h4>
<ul id="apply-responsibilities"></ul>
</div>
<div class="job-section">
<h4>Requirements</h4>
<ul id="apply-requirements"></ul>
</div>
<div class="job-section">
<h4>Benefits</h4>
<ul id="apply-benefits" class="benefits-list"></ul>
</div>
</div>
<div class="modal-actions sticky-footer">
<button id="generate-resume-btn" class="btn btn-primary">Generate Best Fit Resume & Apply</button>
</div>
</div>
</div>
<!-- Resume Viewer Modal -->
<div id="resume-modal" class="modal hidden">
<div class="modal-content large-modal">
<span class="close-modal" id="close-resume-modal">×</span>
<h3>Tailored Resume</h3>
<div id="resume-content" class="markdown-content"></div>
<div class="modal-actions">
<button id="download-resume-btn" class="btn btn-secondary">Download Markdown</button>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="{{ url_for('static', filename='final.js') }}"></script>
<script src="{{ url_for('static', filename='job_listings.js') }}"></script>
</body>
</html> |